Janitorix Media Audit

Janitorix Media Audit

Details
View on WordPress

Most cleanup plugins tell you an image is unused. This one tells you how sure it is, and why.

That difference matters, because the cost of being wrong is not symmetric. Leaving an unused image costs you a few kilobytes. Deleting a used one breaks your site — and you may not find out for weeks.

Read the full guide — why “unattached” is not the same as “unused”, the places a reference hides, and how to check by hand · Development on GitHub — report issues or contribute.

What it actually does

Eleven scanners search the places images hide: post content, Gutenberg blocks and synced patterns, full-site-editing templates, the Customizer, theme options, widgets, menus, Elementor, ACF, WooCommerce, and your theme’s PHP, CSS, and JavaScript files.

Then two independent judgements are made about every image:

  • Confidence — how sure we are the image is unused
  • Risk — how much damage deleting it would cause if we are wrong

These are never blended into one score. A site logo nobody references and a stray upload nobody references look identical to a confidence score, and demand opposite actions.

What it refuses to do

  • It will not recommend deleting anything if it could not search enough of your site. Below 70% coverage, it says so and recommends a rescan instead.
  • It will not offer Trash for anything at Medium risk or above, no matter how confident it is.
  • It will never delete your site logo, icon, or header — those are refused outright, not merely scored low.
  • It will not touch an image uploaded in the last 24 hours, because you probably have plans for it.
  • It never deletes anything in one step. Trash first, always, and only from the Trash can anything be permanently removed.

Every number shows its work

Open any image and you can see which scanner found what, how strong each piece of evidence was, and exactly why the plugin reached its conclusion. A confidence score you cannot inspect is a number you have no reason to trust.

Honest about its limits

A perfect scan reports 97%, not 100%. Proving an image is used takes one piece of evidence; proving it is unused means proving the absence of evidence everywhere — and “everywhere” is not somewhere you can finish visiting. Theme frameworks store images in ways nobody can fully predict, and page builders can assemble URLs at render time.

The plugin reports the honest number rather than a comfortable one.

Details

Plugin code:
janitorix-media-audit
Plugin version:
1.0.1
Outdated:
No
WP version:
6.2 or higher
PHP version:
7.4 or higher
Test up to WP version:
7.1
Total installations:
0
Last updated:
2026-08-22
Rating:
Times rated:
2
cleanup
media
media-library
storage
unused-images