Linux 软件免费装
Banner图

MGCora Unused Media Cleaner

开发者 madan1gc
rainynewt
更新时间 2026年8月21日 18:28
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

media library unused media unused images media cleaner media cleanup

下载

1.0.2 1.0.0 1.0.1 1.0.3

详情介绍:

Deleting unused media is easy. Deleting it without breaking your site is the hard part, and that is what this plugin is built for. Most cleanup tools call a file unused if they cannot find it in your post content. That misses media stored by page builders, custom fields, product galleries, taxonomy thumbnails, widgets, and theme settings, which is how cleanup tools end up deleting images that were still on your pages. MGCora Unused Media Cleaner checks all of those places, and then checks again at the moment you delete, so a file that is still referenced anywhere is not removed. Nothing is deleted without your confirmation, removals are backed up by default, and anything you remove can be restored. It covers your entire media library, not just images: video, audio, PDFs, and other documents are classified the same way. Works on personal blogs, business sites, WooCommerce stores, and agency portfolios alike. Features Why Use MGCora Unused Media Cleaner? Safe by Design MGCora Unused Media Cleaner never assumes a file is safe to delete without checking where it is being used. Every scan is designed to minimize false positives by verifying media references before a file is marked as unused. You stay in complete control and can review the results before deleting anything. Perfect For Source Code The admin interface (build/index.js) is a compiled JavaScript bundle built with @wordpress/scripts. Its human-readable source ships with the plugin in the src/ directory, and assets/css/admin.css is compiled from assets/css/admin.scss. To rebuild both from source, run npm install followed by npm run build (see package.json for the exact build scripts). Privacy MGCora Unused Media Cleaner runs entirely on your own server. It does not make any external HTTP requests, does not collect or transmit any data, and does not "phone home." All scan data is stored in your site's own database and is removed when you uninstall the plugin. Roadmap Future releases will add support for:

安装:

  1. Upload the mgcora-unused-media-finder folder to the /wp-content/plugins/ directory, or install the plugin through the Plugins screen in WordPress.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Go to Media → Unused Media to run your first scan.

屏幕截图:

  • Scanner with selectable scan depth (Quick, Standard, Deep) and live progress.
  • Media List showing used/unused status with filtering and bulk actions.
  • Media detail view listing exactly where a file is used.
  • Trash with restore and permanent-delete actions.
  • Settings: Safe Mode, scan depth, post types, backup, email report, and scheduled scan options.

升级注意事项:

1.0.3 Confirms compatibility with WordPress 7.1 and fixes scheduled scans: changing the frequency now takes effect, and pending scans are cleared on deactivate/uninstall. 1.0.2 Closes false-positive gaps for WooCommerce product galleries, ACF Gallery/Relationship fields, and Yoast/RankMath social images; adds CSV export, optional scheduled scans, and fixes two settings that previously had no effect. 1.0.1 Fixes a false positive where media used as a taxonomy term (category, tag, or custom taxonomy) thumbnail or in a term description could be wrongly marked as unused. 1.0.0 Initial release of MGCora Unused Media Cleaner.

常见问题:

Is this safe to use on a production site?

Yes. Every deletion requires explicit confirmation, and deleted files are moved to a trash folder where they can be restored. You can also enable Safe Mode in Settings to block bulk deletion entirely, and Backup Before Delete (on by default) keeps a copy of each removed file.

How does the scan work?

The scanner analyzes your post content, featured images, post meta (including page builders and ACF fields), WooCommerce product galleries, SEO plugin social images (Yoast and Rank Math), taxonomy term thumbnails and descriptions (categories, tags, and custom taxonomies), widgets, menus, and theme customizations to build a complete picture of which media files are in use. Files not found in any of these sources are flagged as unused. Whatever the scan concluded, the same checks run again against the live database at the moment you delete a file. So even if a scan is old, or something started using a file after the scan finished, that file is not removed.

Will it work with my page builder?

Page builders such as Elementor, WPBakery, and Beaver Builder store their media references in post meta, which the scanner reads, matching both attachment IDs and file paths (including resized versions such as image-300x200.jpg and CDN-rewritten URLs). If a builder or plugin stores references in an unusual way, the honest answer is that no tool can promise to recognize every possible format. That is exactly why this plugin re-checks at delete time, keeps a backup of every removed file, offers restore-from-trash, and has a Safe Mode that blocks bulk deletion entirely. Review the flagged list before deleting, and start with a small batch if you are unsure.

Can I export the scan results?

Yes. The Media List screen has an Export CSV button that exports the current scan, honoring whichever status filter you have applied, including the file name, status, size, type, and where each file was found in use.

Can scans run automatically on a schedule?

Yes. In Settings you can set scans to run daily or weekly via WP-Cron, in addition to running them manually. Pair it with the email report to get a summary after each run.

I turned on email reports but no email arrives

That is almost always the site's mail configuration rather than the plugin. WordPress sends mail through PHP's built-in mail() function by default, which many hosts do not deliver reliably. Use the Send Test Email button in Settings to check. It reports the actual result, and Settings also shows whether the last report was sent or failed, along with the error. If sending fails, install an SMTP plugin to route mail through a real mail service.

Does it work with files other than images?

Yes. MGCora Unused Media Cleaner scans your entire media library (images, video, audio, PDFs, and other documents) and classifies each file as used or unused the same way.

Will it delete files automatically?

No. MGCora Unused Media Cleaner only flags unused media. You review the results and choose what to remove, and removed files can be restored from the trash.

更新日志:

1.0.3 1.0.2 1.0.1 1.0.0