Find potentially unused images in your WordPress Media Library and clean them up safely.
This WordPress plugin scans posts, pages, ACF fields, WooCommerce products, Elementor data, widgets, and settings to build a reference index, then flags media with no detectable references. Review everything before delete. No auto-deletion.
- Site owners cleaning Media Library bloat
- Agencies maintaining WordPress and WooCommerce sites
- Teams that want safer unused-image detection across Elementor and ACF
- Builds a reference index of images in use across content and meta
- Flags media with no detectable references as Potentially Unused
- No auto-deletion — admins review and delete manually
- Batch scanning designed for large media libraries
- Automatic rescans when content changes
- Coverage for posts, ACF, WooCommerce, Elementor, widgets, and settings
- WordPress 5.6+
- PHP 7.4+
- Download or clone this repository into
wp-content/plugins/codecaste-unused-media-usage-audit - Activate Unused Media Usage Audit by CodeCaste in WordPress
- Open Tools → Unused Images to scan and review results
- GitHub: https://github.com/code-caste/codecaste-unused-media-usage-audit
- Organization: code-caste
- Maintainer: Bhushan-Gohel
- Website: CodeCaste
- Public rebrand to Unused Media Usage Audit by CodeCaste
- Text domain / slug:
codecaste-unused-media-usage-audit - Internal option prefix moved to
codecaste_mcs_*
See readme.txt for the full changelog.
GPLv2 or later — see LICENSE.
