StaticQ Media

StaticQ Media

توسط

StaticQ Media is a complete image processing pipeline for WordPress. Upload once — StaticQ handles resizing, WebP conversion, cloud offloading, and front-end delivery in the background via WordPress cron. No external API. No per-image fees. Processing runs on your server, files live in your own cloud bucket.

Actively maintained in 2026. Latest release: v3.3.4.

What makes StaticQ different

Most image optimization plugins compress and deliver. StaticQ Media also audits and cleans up — three scanners catch what other plugins miss:

  • Media Library Scanner — finds missing thumbnails, broken metadata, missing WebP variants, and cloud sync gaps; regenerates thumbnails after a theme change in one pass.
  • Post Content Scanner — finds stale image URLs baked into your posts after a CDN migration, domain change, or filename rename, and fixes broken images automatically.
  • Orphan Detection — finds files in your uploads folder and cloud bucket that no attachment references, so you can reclaim disk space safely.

All three are free in StaticQ Media. No competing image optimization plugin offers this combination.

Common use cases

  • Switched themes and your images look wrong Media Library Scanner detects deprecated sizes and regenerates current ones.
  • Migrated from another CDN or domain Post Content Scanner finds stale URLs baked into your posts and fixes them.
  • Cleaning up an old site Orphan Detection surfaces files no attachment references and lets you quarantine them safely.
  • First-time WordPress site on Cloudflare R2 offload, WebP delivery, and Cloudflare Worker fallback wired up from one plugin.

How It Works

  1. Upload — image enters the processing queue
  2. WordPress cron generates all registered sizes + WebP variants
  3. Processed files are uploaded to your Cloudflare R2 bucket
  4. Front-end delivery rewrites <img> tags to <picture> elements with CDN URLs and WebP sources

Media Library Scanner

Change your image sizes, switch themes, enable WebP — your media library drifts out of sync. The Media Library Scanner realigns everything in one pass across local disk and cloud bucket. Acts as a free regenerate thumbnails alternative when your theme’s image sizes change.

  • Metadata check — detects corrupted metadata, missing thumbnails, wrong dimensions, deprecated sizes, and missing WebP entries
  • File check — verifies every file exists in the correct storage location and flags sync gaps between local and cloud
  • One-click repair per attachment — fixes metadata first, then generates missing files, uploads, or downloads as needed
  • Batch Fix All — resolve every issue across your entire library at once
  • Retroactive registration — index your existing media library for processing after install
  • Regenerate mode — force re-process all sizes from the original file

Post Content Scanner

Switched CDN providers, migrated domains, cloned a site for staging, changed image sizes — your post content may still reference old URLs or outdated filenames, leaving broken images scattered across your site. The Post Content Scanner inspects every post for stale image references baked into your database and fixes broken images automatically. Handles post-migration URL rewriting that other offload plugins leave behind.

  • Scans all posts, pages, and custom post types regardless of status
  • Wrong domain detection — finds CDN or foreign domain URLs that should point to your local site
  • Stale size references — detects image filenames that no longer match current attachment metadata
  • Deleted attachment references — flags images linked to attachments that no longer exist (info only)
  • Broken URL detection — identifies image URLs that cannot be resolved to any attachment (info only)
  • One-click fix per post — rewrites wrong domain URLs and updates stale size references in post content
  • Batch Fix All — resolve every fixable issue across all posts at once
  • Table backup — back up wp_posts before applying fixes as an extra safety measure

Orphan Detection

Deleted posts, removed theme sizes, failed uploads — files pile up with no attachment record. The Orphan Detection tool finds them across local disk and cloud bucket. No false-positive deletion: every candidate is reviewed and quarantined before anything is permanently removed.

  • Scans local uploads directory and cloud bucket for files with no WordPress attachment
  • Folder exclusions — skip known third-party directories to avoid false positives
  • Quarantine — move orphans to an isolated folder for review before permanent deletion
  • Restore from quarantine — bring files back if needed
  • Export orphan list as CSV for external review
  • Built for libraries other scanners can’t finish — cron-batched, retryable, no stuck-at-X% timeouts

Run the Media Library Scanner first to fix metadata issues, then the Post Content Scanner to clean up stale references in your posts, then Orphan Detection to catch leftover files. Nothing is deleted without your review.

Processing

  • Queue-based via WordPress cron — your upload completes instantly, processing runs in the background
  • Configurable batch size and time budget per cron tick
  • Automatic retry on failure
  • Works on shared hosting — no memory spikes, no timeouts
  • Cloudflare Image Resizing support (optional)
  • WebP conversion with quality control
  • EXIF metadata stripping for privacy
  • Big image scaling control
  • Non-image media support (PDFs, documents, etc.)

Storage

  • Cloudflare R2 — included free at every feature level. No Pro tier required, no per-site fees.
  • Three modes: Local only / Local + Cloud / Cloud only
  • Chunked uploads for large files
  • Credentials via wp-config.php constants or settings page

Front-End Delivery

  • HTML5 <picture> elements with WebP <source> fallbacks
  • Automatic srcset generation from registered image sizes
  • Lazy loading with eager-first-image option
  • Works with Elementor, Divi, Gutenberg, Bricks, and any caching plugin (output buffer-based)
  • Per-class and per-size exclusions

Cloudflare Worker Deployment

Deploy a Cloudflare Worker to serve media directly from your R2 bucket with automatic fallback to your origin server. The built-in wizard handles deployment, testing, and configuration.

Developer Configuration

Key wp-config.php constants for fine-tuning:

  • SQMEDIA_CRON_BATCH_SIZE — attachments per cron tick (default: 1)
  • SQMEDIA_CRON_MAX_SECONDS — time budget per cron tick (default: 25)
  • SQMEDIA_SCAN_BATCH_SIZE — attachments per scanner batch (default: 50)
  • SQMEDIA_R2_ACCESS_KEY_ID — R2 API credentials
  • SQMEDIA_R2_SECRET_ACCESS_KEY — R2 API credentials
  • SQMEDIA_R2_BUCKET — R2 bucket name
  • SQMEDIA_R2_ACCOUNT_ID — Cloudflare account ID

External services

This plugin connects to the following third-party services when configured by the user. No data is sent to any external service unless the user explicitly enables and configures the corresponding feature.

Cloudflare R2 (Object Storage)

When the user configures Cloudflare R2 as their storage provider, the plugin uploads processed media files (resized images and WebP variants) to the user’s own Cloudflare R2 bucket. Files are uploaded, downloaded, and deleted via the S3-compatible API.

  • Data sent: media files (images), bucket credentials (API token, account ID)
  • When: during cron-based queue processing, scanner repair operations, and orphan quarantine/restore
  • Service provider: Cloudflare, Inc.
  • Terms of Service
  • Privacy Policy

Cloudflare Image Resizing (optional)

When enabled, the plugin sends original images to Cloudflare’s Image Resizing API to generate resized and WebP variants. This requires the user’s domain to be proxied through Cloudflare. The resized images are stored locally or in the user’s bucket — they are not hosted by Cloudflare.

  • Data sent: image files via Cloudflare-proxied URL
  • When: during cron-based queue processing, when Cloudflare Image Resizing is enabled in settings
  • Service provider: Cloudflare, Inc.
  • Terms of Service
  • Privacy Policy

Cloudflare Workers API (optional)

When the user deploys a Cloudflare Worker fallback via the plugin’s setup wizard, the plugin communicates with the Cloudflare API to create and configure the Worker script on the user’s own Cloudflare account.

  • Data sent: Worker script source code, Cloudflare API token, account ID, zone ID
  • When: only during the one-time Worker deployment wizard
  • Service provider: Cloudflare, Inc.
  • Terms of Service
  • Privacy Policy
  1. Install and activate from Plugins > Add New, or upload the staticq-media folder to /wp-content/plugins/.
  2. Go to StaticQ > Settings.

Cloudflare R2 setup:

  1. Create an R2 bucket in the Cloudflare dashboard.
  2. Create an API token with R2 read/write permissions.
  3. Add credentials to wp-config.php (recommended) or the settings page.
  4. Set a custom domain or enable the R2.dev public URL.
  5. Click “Test Connection.”

After storage is configured:

  1. Use Media Manager > Register to index your existing media library.
  2. New uploads are registered automatically.
  3. Run the Media Library Scanner to detect and repair any issues.

سوالات متداول

How does the processing queue work?

Images are not processed on upload. They enter a queue and are processed in batches by WordPress cron. Batch size and time budget are configurable. This avoids CPU spikes and timeouts, especially on shared hosting.

Is this an alternative to Smush, Imagify, or WP Offload Media?

StaticQ Media overlaps with all three but isn’t a drop-in replacement for any of them. The pipeline (resize, WebP, offload, deliver) covers what Smush and Imagify do for image optimization, plus what WP Offload Media does for cloud storage — but only for Cloudflare R2. Where StaticQ Media adds something none of those offer is the three media library scanners (Media Library Scanner, Post Content Scanner, Orphan Detection). If you’re on Cloudflare and want the full pipeline in one plugin with no monthly fees, StaticQ Media is a fit. If you’re locked into AWS or use a different optimization workflow, those plugins may serve you better.

Do I need a Cloudflare account?

No — Cloudflare is optional. The plugin is optimized for Cloudflare workflows (R2 offload, Cloudflare Image Resizing, and the optional Worker fallback), but it runs fully on your own server without any cloud account. In local-only mode, StaticQ uses WordPress’s native image editor (GD or Imagick) for resizing and WebP generation, files stay in your uploads directory, and the Media Library Scanner, Post Content Scanner, and Orphan Detection all work as a pure audit-and-cleanup toolkit. Cloudflare comes in when you want offsite storage, edge-based image resizing, or CDN fallback. R2’s free tier (10 GB storage, 10 million reads/month) is generous for most WordPress sites if you decide to enable it.

Will it slow down uploads?

No — your upload completes instantly. Processing happens in the background via WordPress cron, fully decoupled from the upload request.

Can I process my existing media library?

Yes. The Media Manager registration tool indexes your entire existing library. Then run the Media Library Scanner to detect issues and repair them — missing sizes, WebP variants, and cloud sync gaps are all handled.

What happens if I deactivate the plugin?

Your original files remain untouched. Cloud copies stay in your bucket. Front-end delivery stops — WordPress falls back to local URLs. No data is deleted on deactivation.

Does it work with page builders?

Yes. Front-end delivery uses output buffering, so it works with Elementor, Divi, Gutenberg, Bricks, and any caching plugin that outputs standard HTML.

How do I monitor processing progress?

The Media Manager page shows queue status, processed counts, and per-attachment state. Scanner results show issue breakdowns by category.

What does the Media Library Scanner do?

It checks every attachment against your current settings in one pass. Metadata is validated for missing sizes, wrong dimensions, deprecated entries, and missing WebP variants. Files are verified across local disk and cloud bucket to ensure they exist in the correct storage location. Issues are categorized by type and severity. You can repair individual attachments with one click, or use Batch Fix All to resolve everything at once. After a theme change with new image sizes, it acts as a free regenerate thumbnails replacement.

What does the Post Content Scanner do?

It inspects every post, page, and custom post type for image references baked into the content. It detects URLs pointing to wrong domains (e.g. old CDN or migration leftovers), stale size references that no longer match current attachment metadata, deleted attachments still referenced in content, and broken URLs that cannot be resolved. Wrong domain and stale size issues can be fixed automatically — the scanner rewrites the URLs directly in the database. Deleted attachment and broken URL issues are reported for manual review.

How does Orphan Detection work?

Orphan Detection lists all files in your local uploads directory and cloud bucket, then compares them against the WordPress database. Any file with no matching attachment record is flagged as an orphan. You can exclude specific folders to avoid false positives. Orphans can be quarantined for safe review before permanent deletion. Run the Media Library Scanner first to fix metadata issues, then Orphan Detection to catch leftover files.

Does it strip EXIF data?

Yes. EXIF metadata (GPS coordinates, camera info, timestamps) is stripped during processing. This reduces file size and removes potentially sensitive location data.

Is StaticQ useful if I don’t use cloud storage?

Absolutely. Cloud offloading is just one part of the pipeline. The Media Library Scanner audits your entire library and lets you repair everything in one pass. Orphan Detection cleans up leftover files. The Post Content Scanner fixes stale image references in your posts. And the queue-based processing prevents CPU spikes on upload — all without moving a single file off your server.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
بازخورد (Feedback) های اینلاین
مشاهده همه دیدگاه ها
هیچ نسخه‌ای برای این آیتم موجود نیست.
بدون امتیاز

قیمت:

رایگان

نگارش

آخرین انتشار

21 خرداد 1405

آخرین بروزرسانی

5 روز پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 6.0+

تست شده از نسخه

وردپرس 7.0

نگارش PHP

PHP 7.4+

نسخه ها

0 نسخه