v3.21.42Support v1.5.12
MEDIAHEALTH

Clean up your media library without deleting something you need

Every WordPress media library quietly fills with files nobody can see: a dozen preview images per PDF, image sizes left behind when a theme changed, orphaned uploads, byte-identical duplicates, and stray files with no library entry at all. MediaHealth finds all of it, tells you what's genuinely safe to remove, and removes it reversibly. SiteHealth flags that you're carrying media bloat for free; MediaHealth, the tool that scans it in detail and cleans it up, is Pro. Cleanups are never permanent, because everything moves to a recoverable trash can instead of being deleted. SiteHealth diagnoses media bloat for free; MediaHealth itself is a Pro tool. It's part of SiteHealth's one coordinated care system, sitting in the "Run clean" pillar alongside email and the performance and database tools.

WHAT IT FINDS

The clutter accumulates silently; MediaHealth surfaces all of it

Run any scan on its own tab. Every scan is read-only, detection never touches a file.

  • PDF previews. WordPress generates roughly fourteen preview images for every PDF you upload. MediaHealth counts them across your library and reports the total wasted space.
  • Library audit. A full read-only pass that classifies every attachment into safety tiers, from "protected / in use" through "likely safe to delete," and exports a per-file CSV so you can review the reasoning.
  • Duplicates. Finds byte-identical files uploaded more than once. Groups them by set and ranks by wasted space, sizing first and only hashing within size-matched candidates so the scan stays fast.
  • Image sizes. Finds leftover "-WIDTHxHEIGHT" files on disk that are no longer in the attachment's registered sizes, the orphans a theme or plugin left behind when its image sizes changed.
  • Filesystem. Finds media files sitting in your uploads folder with no attachment record at all: FTP drops, leftovers from removed plugins, stray exports. Offers reimport as well as removal.

DEEP REFERENCE INDEX

Six sources checked before anything is ever called unused

The reason MediaHealth can be trusted to remove files is that it doesn't guess from filenames. Before classifying anything as unused, it builds a reference index from every place a file can be used:

  • Post content and excerpts across all post types.
  • Postmeta, including featured images (_thumbnail_id) and bare attachment-ID fields written by ACF and page builders.
  • The options table (theme_mods like custom_logo, block-theme site_logo, and similar).
  • Slider tables (Revolution Slider, WP Slider, and similar custom tables).
  • ID patterns inside JSON builders (Elementor, Gutenberg blocks) and shortcodes (Avada/Fusion "ID|size" notation).
  • Filename patterns normalized across resizes, so a reference to photo-300×200.jpg correctly counts as a use of photo.jpg.

Classification is conservative on purpose. Fonts and gated files are never offered for deletion, documents and graphics are flagged review-only, and only one tier, raster images referenced absolutely nowhere, is ever eligible for one-click removal. Anything ambiguous is kept.

REVERSIBLE TRASH CAN

Every cleanup moves files to a recoverable quarantine, with undo

MediaHealth has no hard-delete path. Every removal, merge, and size cleanup moves the files into a protected quarantine folder under your uploads directory and records a restore ledger of exactly what moved and what metadata changed.

  • Undo restores it all. Each cleanup tab has an undo that puts the files back and rewrites the attachment metadata exactly as it was.
  • The quarantine is sealed. The folder denies direct web access, and a restore can only write back into the attachment's own original location, so a tampered ledger can't be used to overwrite unrelated media.
  • Smart Merge keeps content intact. For duplicate sets you can keep one survivor and have MediaHealth repoint every reference to it, in post content, featured images, and builder/ACF ID fields, before trashing the copies. The entire merge is one reversible operation, and it refuses to run when two attachments share the same file on disk.

PDF-PREVIEW PREVENTION

Stop the bloat at the source, on by default

Cleaning up existing files is half the job; the other half is not re-creating the mess. When MediaHealth is enabled, it stops WordPress from generating the stack of intermediate preview images for new PDF uploads, keeping a single full-page preview and dropping the rest. That prevents the large majority of PDF bloat from ever landing, and it's on by default, so newly uploaded PDFs stay lean without you doing anything. It only governs new uploads; your existing media is left untouched until you choose to scan and clean it.

SCHEDULED AUDITS

Optional weekly or monthly audit with an emailed summary

Libraries drift. Turn on a scheduled audit (Off / Weekly / Monthly) and MediaHealth re-runs the read-only library audit on that cadence and emails a plain-text summary, the run date, how many files were scanned, and how much "likely safe to delete" space has built up, to the address you choose or your site admin. It's an internal heads-up, not a client-facing report, and it never deletes anything on its own.

TIER

SiteHealth flags media bloat for free; MediaHealth is Pro

SiteHealth's diagnosis tells you for free that your library is carrying bloat. MediaHealth, the tool itself, is Pro: every scan, audit, duplicates, image sizes, filesystem, PDF previews, along with PDF-preview prevention and all the cleanups, run on Pro and up.

And the gate is real: authorization comes from the Link Flow Hub as a signed, verified bundle carrying your tier, not from the local license. Patching the plugin to report Pro doesn't produce a valid bundle, so the tool stays locked until a genuine Pro license signs off. It's the same "detect locally, authorize centrally" model the rest of SiteHealth's fixes use.

Ready when you are

Get a Free Diagnosis on your site