MediaSleuth

Description

MediaSleuth helps administrators identify media files that are not being used anywhere on the website. It works with any installed plugin by scanning all posts, custom post types, post meta, term meta, user meta, comments, widgets, theme options, wp_options, menus, and serialized/JSON data from page builders and third-party plugins.

Key Features:

  • Comprehensive media usage detection
  • Safe delete with 30-day trash retention
  • Batch processing for large sites (10,000+ media files)
  • Real-time scan progress
  • Storage analytics
  • CSV export
  • Scheduled scans with email reports
  • Bulk actions (delete, restore, rescan)

Safety First:

Files are never permanently deleted immediately. When deleted, files are moved to a plugin trash folder and can be restored within the retention period. Files that cannot be confirmed as unused are marked as “Possibly Used” instead of “Unused”.

Installation

  1. Upload the mediasleuth folder to /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Media Scanner in the admin menu
  4. Click “Start New Scan” to analyze your media library

FAQ

Will this delete my files permanently?

No. Deleted files are moved to a plugin trash folder and kept for the configured retention period (default 30 days) before permanent deletion. You can restore files at any time during this period.

What does “Possibly Used” mean?

When the scanner cannot guarantee a file is unused (e.g., complex serialized data or third-party plugin references), it marks the file as “Possibly Used” rather than “Unused” to prevent accidental deletion.

Does it work with all plugins?

Yes. The scanner uses universal detection across post meta, options, JSON, and serialized data. It automatically recognizes data from Elementor, Divi, Beaver Builder, WPBakery, Bricks, ACF, WooCommerce, and many other plugins. Developers can extend detection using WordPress filters: media_sleuth_infer_plugin_label, media_sleuth_is_excluded_option, and media_sleuth_rescan_detectors.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“MediaSleuth” is open source software. The following people have contributed to this plugin.

Contributors

Translate “MediaSleuth” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.0

  • Initial release