WordPress Media Cleanup Pro Plugin
Media Cleanup Pro — Full Details
What it is: A safety-first tool that finds images in your Media Library that aren't actually being used anywhere on your WordPress site, so you can reclaim storage without risking broken content. Nothing is ever deleted automatically — every scan produces a report you review first.
The detection engine
Rather than relying on WordPress's own "attached to post" flag (which is often wrong or missing), it independently scans every place an image could realistically be referenced, each individually toggleable in Settings → Detection:
- Posts, Pages, and Custom Post Types (post content, Gutenberg blocks, and the classic editor)
- Post meta / custom fields — including a generic detector for arbitrary plugin data, plus dedicated handling for WooCommerce product galleries, Elementor's page-builder data, and (as of the latest fix) the Add Multiple Images plugin's gallery images
- Site options (Customizer settings: site logo, site icon, header/background images)
- Widgets and Navigation Menus
- Theme files, plugin files, CSS files, and JavaScript files (catching images referenced in background-image or hardcoded paths, not just database content)
Every match is weighted by confidence and attributed with why it was flagged — which post, which field, which file — so a decision to delete something is never a guess.
Classification, not a binary flag
Each image lands in one of five states based on the strength of the evidence found: Definitely Used (a direct, certain reference — a featured image, a gallery assignment), Probably Used, Possibly Used, Unused, or Unknown. This graded confidence — rather than a flat "used/unused" — is what makes the results trustworthy enough to act on.
Safety defaults baked in
- Images must be at least 30 days old by default before they're even eligible for scanning, so something you uploaded five minutes ago is never flagged — it hasn't had a chance to actually get placed into content yet.
- A separate "ignore uploads from the last N days" window on top of that.
- A minimum file-size threshold and specific ignored-folder paths, for excluding things like known-safe generated assets.
- Deletion always defaults to Trash first, with an optional "require confirmation" step before anything permanent happens.
- An ignore list lets you permanently exempt specific images from ever being flagged again.
- Your Media Library is never touched by uninstalling the plugin — even the opt-in "delete plugin data on uninstall" setting only removes the plugin's own scan history/settings, explicitly never your images.
How scanning actually runs
Scans are chunked and resumable — batched into small time-boxed steps rather than one long request, so it works on large media libraries without timing out or exhausting memory. You can pause, resume, or cancel an in-progress scan. Every completed scan is kept in Scan History, and results can be exported to CSV.
Automation, still hands-off
An optional scheduled scan (daily/weekly/monthly, via WP-Cron) can run unattended with an admin-notice summary afterward — but scheduled scans only ever generate a report, never delete anything, regardless of settings.
Smart about thumbnails and SVGs
Every image's auto-generated thumbnail/size variants are grouped with the original as one "Image Family" rather than listed as separate unused images. SVGs are scanned for references too, but flagged in their own category rather than mixed in with raster images, since WordPress doesn't generate size variants for them.
Admin structure
A dedicated Media Cleanup Pro top-level menu with five sections: Dashboard (overview), Unused Images (the review/bulk-action list, with search and per-page controls), Scan Website (run a new scan), Scan History, and Settings (five tabs: General, Detection, Integrations, Safety, Advanced). A REST API is also available for programmatic access, and the required capability is filterable (suif_capability) if you want finer-grained access control than the default Administrator-only.