Linux 软件免费装
Banner图

Mediaspy – Unused Media Cleaner, Image Optimizer, WebP & Safe SVG

开发者 masum52
更新时间 2026年11月14日 23:53
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

image optimizer svg webp unused media unused images

下载

1.4.0 1.3.1 1.0.0 1.0.1 1.3.0 1.4.1

详情介绍:

👉 Support & questions 👉 Feature requests & bug reports 👉 Contact the developer Mediaspy is the all-in-one media plugin for WordPress. It finds and deletes unused media, optimizes images, serves WebP and AVIF, allows safe SVG uploads, fixes broken media and keeps your media library healthy, every week, on its own. Most media cleaners only check post content and delete images your site still uses. Mediaspy checks everything first: page builders, widgets, theme files, settings, code snippets and other plugins' tables. When it is not sure, it says so. Clean unused media safely Optimize images and serve WebP/AVIF Upload autopilot Library tools Media health and monitoring Works with Gutenberg and the Site Editor, Elementor, Divi, WPBakery, Oxygen, Bricks, Beaver Builder, Brizy, Kadence Blocks, GenerateBlocks, Spectra, Cornerstone, Thrive Architect, SiteOrigin, Avada/Fusion, ACF, WooCommerce, Slider Revolution, MetaSlider, Envira, Soliloquy, and the code snippet plugins FluentSnippets, WPCode and Code Snippets. Mediaspy matches images by URL (including every generated size), by file name and by attachment ID, so builders that store a resized copy or an ID-only shortcode are detected too. For developers WP-CLI commands: wp mediaspy scan, wp mediaspy duplicates, wp mediaspy orphans, wp mediaspy sizes and wp mediaspy alt. Light and private Mediaspy runs on your own site. No account, no external service, no upsells and no request to Google Fonts. Scans run in small steps so large libraries never time out. Every screen can be translated.

安装:

  1. Go to Plugins › Add New in your WordPress admin
  2. Search for Mediaspy
  3. Click Install Now, then Activate
  4. Open Mediaspy in the admin menu (right below Media) and click Scan library
Manual install
  1. Download the ZIP file
  2. Go to Plugins › Add New › Upload Plugin
  3. Upload the ZIP, click Install Now, then Activate
  4. Open Mediaspy in the admin menu and click Scan library

屏幕截图:

  • Unused media: review unused images and files, filter, search, then download or delete what you select
  • Image optimization: images optimized, space saved and failed images to retry
  • Before/after slider: drag to compare the original and the optimized image
  • Broken media: pages and settings that point to files that no longer exist
  • Duplicates: identical copies grouped, pick the one to keep
  • Image sizes: every size with file counts and disk use, turn sizes off and regenerate
  • Alt text: images without alt text, edit in place or fill from file names
  • Settings: upload autopilot, optimization, front-end loading and reports in one place

升级注意事项:

1.4.1 Maintenance release: code quality checks only, no feature changes. 1.4.0 Big update: more accurate scan, new image optimizer with WebP/AVIF and lazy loading, upload autopilot, library tools and a redesigned admin. Back up your site before updating. 1.3.1 Fixes the deactivation feedback box not appearing. Recommended. 1.3.0 Major accuracy fix. Images used through Oxygen, WPBakery, Brizy, Slider Revolution, MetaSlider, or at any specific/resized size are no longer falsely reported as unused. Strongly recommended. 1.2.0 Adds Upload Guard (upload-time duplicate detection, oversize alerts, missing-alt attention list) and the Foreign Media Resolver. Recommended update. 1.1.0 Adds the Broken Media Detector. Recommended update. 1.0.1 Recommended update. Internal refactor (MVC + Vue + REST) plus security hardening of the ZIP import. Same features and scan accuracy as 1.0.0. 1.0.0 Initial release.

常见问题:

Is it safe to delete unused images?

Mediaspy checks every file against your whole database and your theme files before calling it unused, and files it is not sure about are marked Uncertain and never deleted in bulk. Still, take a site backup before deleting many files, and use Download to save a ZIP of the files first. Deleting is permanent.

What if a file shows unused but I can see it on my site?

If a plugin builds an image address in code at runtime, no scanner can see it. If you see a file on your site, do not delete it, and open View Details: it shows every place the scan found the file.

What does "Uncertain" mean?

The file is not used by live content, but a post in the Trash uses it, or its name appears in data Mediaspy could not fully read (a very large or damaged setting). Mediaspy never deletes Uncertain files in bulk.

Why can I not delete right after editing a page?

Deleting uses your last scan. When posts, widgets or theme settings change after the scan, a file that was unused may now be used, so Mediaspy asks you to scan again first.

Does it work with Elementor, Divi, Oxygen and other page builders?

Yes. Mediaspy reads the data builders store in post meta, options and their own tables, including JSON-escaped and base64 data, and background images set in the Site Editor.

Does Mediaspy make my site faster?

Yes, for images, which are usually the heaviest part of a page. It compresses images, serves smaller WebP/AVIF versions, lazy loads images, iframes and videos, and preloads the main image. It does not cache pages or minify JavaScript and CSS, so it works next to your caching plugin.

How are WebP and AVIF served?

Copies are saved next to the original with the new extension added: photo.jpg gets photo.jpg.webp and photo.jpg.avif. The original is never replaced, so every link keeps working, and a copy is only kept when it is smaller. In Settings › Optimization choose:

  • Picture tags (recommended) – images are wrapped in a picture tag that lists AVIF, then WebP, then the original. Works on every server and with page caching
  • Server rules (Apache, LiteSpeed) – rules in wp-content/uploads/.htaccess, tested with a real request before they are kept. If the server ignores them, picture tags are used instead
  • Off – copies are made but not served
Background images and theme and plugin images have their own switches in the same section. On nginx, the Optimize screen shows a snippet for your server configuration.

Can I undo optimization?

Yes. With "Keep originals" on (Settings › Optimization), each original is saved in a private folder before it is changed. Restore puts it back and removes the WebP and AVIF copies.

Is SVG upload safe?

SVG uploads are off until you turn them on in Settings › Uploads. Then every SVG is cleaned with an allowlist before it is saved: scripts, event handlers, external references and unsafe links are removed, and only known drawing elements are kept.

Does Mediaspy change my files?

Only new uploads, and only for the autopilot options you leave on: clean file names, removing photo location and shrinking huge uploads. Files already in your library change only when you optimize, rename or replace them yourself.

Is renaming a file safe?

Mediaspy uses your last scan to find every place the file is used and updates saved data without breaking it (serialized and JSON data are rebuilt, not search-and-replaced). A preview shows each place first, places it cannot update are listed, and you can undo for 30 days. If you use a page cache, clear it after renaming.

I replaced an image but still see the old one. Why?

With "Keep the file name and URL" the address does not change, so your browser, a page cache or a CDN may show the old copy until its cache expires. Clear your cache.

How does Mediaspy find duplicate images?

It compares the exact contents of each file, and also finds the same picture saved at another size, quality or format. The same product in another colour, crops and rotated copies are not grouped. Merging never deletes anything and can be undone.

Will turning an image size off break my site?

It only stops WordPress making that size for new uploads; existing files are not touched. A theme that asks for a size that is off gets the full-size image instead, so only turn off sizes your theme and plugins do not use.

Does Mediaspy scan on its own?

Yes, once a week in the background, in small steps a minute apart, so visitors never wait. Turn it off in Settings › Reports & monitoring.

Does Mediaspy send emails?

Only if you turn on the weekly report or the broken media alert. Every email has a link to turn it off.

What happens to my images when I delete Mediaspy?

Optimized images stay as they are. WebP and AVIF copies are deleted, because only Mediaspy serves them. The backups of your originals (the uploads/mspy-backups-... folder) are kept so you can reinstall and restore them; delete that folder yourself if you do not need it.

Does it support Multisite?

Not yet. Mediaspy is designed for single sites.

更新日志:

1.4.1 1.4.0 Big update: Mediaspy now keeps your media library clean, fast and healthy, not just finds unused files. Unused media scan: 1.3.1 1.3.0 Accuracy overhaul for page builders, plus new builder coverage and a deactivation feedback box. New: 1.2.0 1.1.0 1.0.1 1.0.0