跳到内容

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

v1.4.2

Masum · 2026年6月15日 上架

Delete unused images safely, compress images, serve WebP/AVIF, upload SVG safely, and fix broken media. One plugin for a clean, fast media library.

正在使用
60+
评分
4.0 / 5
累计下载
1,237
最近更新
2026年11月23日
4 条评价需要 WordPress 5.8+已测试到 7.1.5PHP 7.4+

贡献者

截图

Overview: media health score, a to-do list, library numbers and recent activity
Overview: media health score, a to-do list, library numbers and recent activity
Unused media: review unused images and files, filter, search, then download or delete what you select
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
Image optimization: images optimized, space saved and failed images to retry
Before/after slider: drag to compare the original and the optimized image
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
Broken media: pages and settings that point to files that no longer exist
Duplicates: identical copies grouped, pick the one to keep
Duplicates: identical copies grouped, pick the one to keep
Image sizes: every size with file counts and disk use, turn sizes off and regenerate
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
Alt text: images without alt text, edit in place or fill from file names

👉 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

  • Find unused images and files – images, videos, audio, PDFs, archives and documents that no page, post, setting or theme uses
  • Three honest results – Used, Unused and Uncertain. View Details shows every place a file is used
  • Checks everything – post content, featured images, custom fields, ACF, page builders, widgets, Customizer, site logo and icon, theme files and theme.json, code snippets, user avatars, comments and other plugins’ tables
  • Every version of a file – resized sizes, the original behind a “-scaled” copy, edited copies, WebP/AVIF copies and CDN URLs
  • Delete only what you select – download a ZIP backup first. Deleting is blocked when the site changed after the last scan
  • Broken media – find pages and settings that point to files that no longer exist, regenerate missing sizes, remove orphan records

Optimize images and serve WebP/AVIF

  • Compress JPEG, PNG and WebP on upload or in bulk. Auto quality picks the lowest quality that still looks the same, for each image
  • WebP and AVIF for every image on your pages – Media Library images, CSS and page builder backgrounds, theme and plugin images and stylesheets. The original stays as a fallback for older browsers
  • Works on every server – picture tags (no server setup, works with page caching), or Apache/LiteSpeed rules that are tested before they are kept. An nginx snippet is included
  • Lazy loading for images, iframes and videos, missing width and height added, and the main image preloaded for a better LCP score
  • Theme and plugin images – optimize the images that ship with your theme and plugins
  • Safe originals – originals are backed up, one click restores them, and a before/after slider shows the difference
  • Bulk optimize does used images first, retries failures, and skips animated GIF/WebP and CMYK images

Upload autopilot

  • Clean file names – “Café Photo (1)_FINAL.JPG” becomes “cafe-photo-1-final.jpg”
  • Remove photo location – GPS data is removed from phone photos without any quality loss
  • Shrink huge uploads to a maximum size
  • Safe SVG uploads – SVG files are cleaned with an allowlist: scripts, event handlers, external references and unsafe links are removed, the drawing is kept. SVGs get proper width and height in the Media Library
  • Duplicate and large upload alerts – warn or block when a file is uploaded twice or is too big

Library tools

  • Safe rename for SEO – rename “IMG_2041.jpg” to “red-leather-wallet.jpg”: every size and copy is renamed and every page, setting and plugin table that uses it is updated. Preview first, undo for 30 days
  • Replace media – upload a new version of a file and keep its URL, title and alt text. Undo for 30 days
  • Duplicate images – find identical uploads and the same picture saved at another size or format. Keep one copy and every use moves to it, nothing is deleted
  • Alt text – list images without alt text, edit them in place, or fill them from readable file names in one click
  • Image sizes – see every size WordPress, your theme and plugins make, with disk use. Turn off sizes you do not need and clean leftover size files
  • Files not in the Media Library – find files added by FTP or restored backups, then add them to the library or remove the unused ones

Media health and monitoring

  • Media health score from 0 to 100, with a to-do list and a WordPress Dashboard widget
  • Weekly background check – a scan and broken media check every week, in small steps, so the numbers stay current
  • Opt-in emails – a weekly media report and an alert when media links break. Off until you turn them on
  • Activity log – uploads, optimizations and scans in one place

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.

Privacy and external services

Mediaspy runs entirely on your own site and does not phone home during normal use.

The only outbound request is optional deactivation feedback: if you click “Submit & Deactivate” in the feedback box shown when deactivating the plugin, your selected reason, your optional message, your site URL, and your plugin/WordPress/PHP versions are sent to the developer’s feedback endpoint. Clicking “Skip & Deactivate” sends nothing.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums