Linux 软件免费装
Banner图

MediaXray – Delete Unused Images & Find Where Media Is Used

开发者 fixitusman
更新时间 2026年10月30日 13:30
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

media library unused media unused images media cleaner media cleanup

下载

1.0.4 1.0.0 1.0.1 1.0.2 1.0.3

详情介绍:

MediaXray finds unused images, videos and documents in your WordPress Media Library and shows exactly where every file is used — so you can delete unused media and free disk space without breaking a single page. It reads Gutenberg blocks, Elementor (down to each widget and breakpoint), WooCommerce products and galleries, ACF fields, theme settings and more. Then it lets you clean up in one click — safely, through a quarantine you can undo. Clean up your Media Library in one click What makes MediaXray different Most media cleaners give you a yes/no "unused" list. MediaXray builds a full usage map first and treats deletion as the last, reversible step: MediaXray answers two questions, in this order:
  1. Where is this file used? Every individual reference, grouped by page, product, template or setting, with the widget, block or field that uses it.
  2. Is it safe to remove? Only after the first question is answered, and only after an independent deep verification.
Statuses How references are counted What is scanned Safe cleanup Built for large sites Scans run in short, resumable batches, keep the previous results visible until the new scan is complete, and the index updates itself when content, terms, uploads or settings change. WP-CLI: wp mediaxray scan, status, list, usage <id>, verify <id>. Privacy MediaXray makes no external requests, sends no data anywhere and adds no tracking. All analysis happens in your own database.

安装:

  1. Upload the plugin through Plugins → Add New → Upload Plugin, or install it from the plugin directory.
  2. Activate it.
  3. Go to Media → MediaXray and click Start scan.

屏幕截图:

  • Usage details: every page, template and setting where an image is used.
  • Quarantine: restore unused media with one click, or delete it permanently.
  • Media Library integration: see where each image is used right in the Media Library.

升级注意事项:

1.0.4 Small update: the author name is now written as Usman. Nothing else changes. 1.0.3 One-click cleanup of all unused images, Undo, and Keep for files you want to hold on to.

常见问题:

How do I find unused images in WordPress?

Install MediaXray, go to Media → MediaXray and click Start scan. When it finishes, the Unused filter lists every image, video and document that is not used anywhere MediaXray can see, with the disk space you can free.

Is it safe to delete unused images?

Yes, because MediaXray never deletes straight away. Files are first moved to a quarantine (out of public reach, hidden from the Media Library). Check your site, and restore anything with one click. Permanent deletion only happens from the quarantine, after you type DELETE.

Does it work with Elementor, WooCommerce and Gutenberg?

Yes. It reads Elementor widgets, backgrounds on every breakpoint, Global Kit and Theme Builder templates; WooCommerce product images, galleries, variations and downloads; Gutenberg blocks; ACF fields; widgets, Customizer and theme settings.

Will it slow down my site?

No. Scans and cleanups run only in the admin, in small batches, and nothing is loaded on the front end of your site.

Can I keep a file that MediaXray marks as unused?

Yes. Click Keep on the file and it gets the Kept status — it is never included in a bulk cleanup again. Click Don't keep to undo that.

Will it delete anything automatically?

No. Nothing is ever deleted automatically. Unused files are only moved to quarantine when you choose to, after a fresh deep verification, and you can restore them at any time.

Why is a file marked Needs check instead of Unused?

Something still mentions it, but not in live content — for example a draft, a saved Elementor template that is not placed anywhere, an inactive theme's settings, or Elementor's stored fallback copy of a page. Open the file's usage details to see exactly where.

Can it detect every possible use?

No tool can. Files referenced only from PHP code outside the active theme, external websites, JavaScript-built URLs or plugins that keep their own database tables cannot be detected. That is why cleanup goes through quarantine: check your site, then delete.

Does it work with page caches and CDNs?

Yes. File URLs on other hosts (CDNs) are matched by their uploads path, and MediaXray's own admin requests opt out of page caching.

更新日志:

1.0.4 1.0.3 1.0.2 1.0.1 1.0.0