Sajib Media Cleanup & Storage Manager is a WordPress media cleaner that helps administrators audit unused media, duplicate images, orphan files and stale generated thumbnails before anything is permanently removed. It builds a reference index across WordPress content and metadata, supports Elementor, ACF and WooCommerce workflows, identifies preliminary unused and duplicate-unused media, and applies multiple verification steps before cleanup. Because WordPress sites can include third-party or dynamically generated references, no automated scan can guarantee that every possible media reference is discoverable.
Key features:
- Reference-aware Media Library audit.
- Exact second-pass cleanup plans before destructive operations.
- Final live verification immediately before cleanup.
- Safety Vault delayed-purge hold with cancellation and fresh verification before permanent deletion.
- Duplicate-unused detection using file hashes.
- Orphan-file discovery within standard WordPress date-based upload folders.
- Media Family inspection for original, generated and optimized variants.
- Stale derivative auditing with current-reference protection.
- Incremental scan fingerprints, storage insights and audit history.
- Background jobs designed to work reliably in shared-hosting environments.
Sajib Media Cleanup & Storage Manager does not treat an unattached image as automatically unused. Candidates must pass the plugin’s verification workflow before they can become cleanup-ready.
Author
Developed by Mohamed Sajib.
Portfolio: sajib.dev.cv
Privacy
Sajib Media Cleanup & Storage Manager performs media analysis inside the WordPress site. The plugin does not require an external account and does not intentionally transmit media-library contents to the author.
Source Code
This plugin does not use compiled, minified, transpiled, or generated application code.
- The distributed
assets/admin.jsfile is the human-readable JavaScript source used directly by WordPress. - A matching source copy is also included at
assets/src/admin.js. - The distributed
assets/admin.cssfile is the human-readable stylesheet used directly by WordPress. - A matching source copy is also included at
assets/src/admin.css. - PHP source is included in the plugin root and
includes/. - No npm, webpack, bundler, minifier, transpiler, or proprietary build tool is required.
- Rebuilding the distributed assets only requires copying source files unchanged:
cp assets/src/admin.js assets/admin.jsandcp assets/src/admin.css assets/admin.css.
All maintainable source required to inspect and reproduce the distributed assets is included in this plugin package.