Linux 软件免费装
Banner图

fraew Broken Media Inspector

开发者 fraew
更新时间 2026年7月25日 11:36
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

media images cleanup broken orphaned

下载

1.0.0

详情介绍:

Broken Media Inspector is a fast, free media-maintenance tool for WordPress. It does two jobs exceptionally well — and unlike many alternatives, there is no paid tier, no row limit, and no external service. 🩺 Broken Media After a migration, backup restore, or hosting change, images go missing. Broken Media Inspector scans every item in your Media Library and tells you: Missing files are grouped by folder, so a whole missing directory shows up as a single line instead of hundreds — the fastest way to spot a migration that dropped a folder. Results export to CSV. The scan runs in two phases: a fast pass that checks every file on disk, then a background pass that works out usage only for the broken items. Thousands of images scan in seconds. 🧹 Orphaned Files Over time your wp-content/uploads folder collects files that are no longer in the Media Library — leftovers from deleted posts, failed imports, and manual uploads. Broken Media Inspector finds them, shows you how much space they take, and lets you either: Archiving is a safe, reversible cleanup. Nothing is deleted straight away: you archive the files you think you don't need, check your site still looks right, and only then empty the archive. Changed your mind about a file? Restore it back to uploads in one click. This "archive, verify, then delete" workflow means you never lose a file you actually needed. Generated thumbnails are recognised and never mistaken for orphans. Every file action is validated to stay inside your uploads folder and is limited to administrators. Why choose this plugin

安装:

  1. Upload the plugin folder to /wp-content/plugins/
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Navigate to Tools > Broken Media Inspector
  4. Click "Scan Media Library"

屏幕截图:

  • Orphaned Files tab — unregistered files in wp-content/uploads with Add to Library / Archive actions
  • Archive tab — review archived files, then Restore or permanently delete to reclaim space
  • Scanning the Media Library, with live progress you can cancel at any time

升级注意事项:

1.0.0 Initial release of Broken Media Inspector.

常见问题:

Is the Orphaned Files feature safe? Any risk?

Use it at your own risk, and always take a backup first. "Orphaned" only means a file is not registered in the Media Library — it does not guarantee the file is unused. Themes, page builders, sliders, custom code, and other plugins (including WebP and image-optimisation plugins) can reference files directly in ways WordPress cannot detect from its database. Treat the orphan list as a strong hint, not a certainty. That is exactly why the plugin does not delete orphans outright. Instead you Archive them — they are moved to wp-content/uploads/fbmi-archive, so your site behaves as if they were gone, but you can Restore any file instantly if something breaks. Only empty the archive once you have confirmed everything still works.

Can the plugin fix broken images automatically?

No. The broken-media scan is diagnostic — it tells you what's broken, where, and why, but restoring missing files is up to you (usually from a backup). This keeps it simple and safe.

Will this plugin modify my files or database?

The broken-media scan is strictly read-only. The Orphaned Files tool can change things, but only when you ask it to. Archiving and restoring simply move files between wp-content/uploads and wp-content/uploads/fbmi-archive; permanent deletion happens only when you empty the archive. Every path is validated to stay inside the uploads folder.

How long does a scan take?

The broken-media scan checks every file on disk in a fast first pass, so even large libraries finish quickly — typically a few seconds for a few thousand images, with usage details filled in afterwards.

Can I run this on a production site?

Yes. The broken-media scan only reads data. The orphan tools act only on the files you explicitly select.

Are generated thumbnails flagged as orphans?

No. The orphan scanner builds a list of every file WordPress knows about — originals, scaled versions, and all generated thumbnail sizes — so legitimate thumbnails are never mistaken for orphans.

Does this plugin require any external services?

No. Everything runs inside WordPress. No API calls, no cloud services, no data sent anywhere. Works on any hosting, including shared hosting.

Can I see which posts use a broken image?

Yes. For each broken image, the report shows which pages/posts reference it, with direct links to edit them.

I have 10,000+ images. Can this handle it?

Yes. The plugin processes images in batches and tracks progress. Even massive libraries are supported.

What if all images check out as healthy?

Congratulations! No action needed. The report shows detailed counts and can be exported as proof for your team or clients.

Does this work with image optimization or WebP plugins?

The broken-media scan works alongside any optimisation, lazy-load or CDN plugin — it checks whether the real file exists on disk. Note that WebP/optimiser plugins often create extra files (such as photo.jpg.webp) that aren't in the Media Library, so those will appear in the Orphaned Files list. They're usually in active use, so review before archiving.

Does this work with multisite?

Version 1.0 supports single-site installations. Multisite is a candidate for a future release.

Can I schedule automatic scans?

Not in Version 1.0. Scheduled scanning is a candidate for a future release based on user feedback.

How do I interpret the "likely cause" suggestions?

The "likely cause" is a best guess based on the type of failure:

  • Missing — the file isn't on disk. Usually the uploads folder (or a sub-folder) wasn't copied during a migration or restore, or the file was deleted manually.
  • Metadata issue — the file exists but WordPress has no size/metadata for it, typically from an incomplete upload or import.

更新日志:

1.0.0