[WordPress] 外掛分享: MediaXray – Delete Unused Images & Find Where Media Is Used

首頁 › 外掛目錄 › MediaXray – Delete Unused Images & Find Where Media Is Used
WordPress 外掛 MediaXray – Delete Unused Images & Find Where Media Is Used 的封面圖片
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
3 天前
最後更新
—
問題解決
WordPress 6.2+ PHP 7.4+ v1.0.4 上架:2026-10-18

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「MediaXray – Delete Unused Images & Find Where Media Is Used」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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

Quarantine all unused images at once — no page-by-page selecting. Every file is checked once more first; anything still found somewhere is moved to Needs check instead.
Undo right after a bulk cleanup, or restore any file later.
Keep files that look unused but that you want to hold on to (a print logo, a PDF you email) — they are never offered for cleanup again.
Review files one by one with a large preview and a fresh deep check, then Keep, Quarantine or Skip.
See how much disk space you can free before you delete anything.

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:

Counts every single use, not just “used / unused”. Each occurrence is recorded with the page, product, template or setting it is in, and the exact block, widget, breakpoint or field that uses it.
Understands Elementor at widget level. Image widgets, container backgrounds on every breakpoint, overlays, carousels, dynamic tags, the Global Kit and Theme Builder display conditions (a header shown site-wide makes its logo Global).
Four statuses instead of two. Used, Global (protected), Needs check (not on any live page: only drafts, saved templates, inactive themes, unclear matches) and Unused, so “no reference found” never silently becomes “delete”.
Independent deep verification before cleanup. A brute-force search of the raw database and the active theme’s files double-checks every file before it can be removed.
Restorable quarantine. Files (including WebP/AVIF copies) are moved out of reach, not deleted, so you can check your site and restore with one click.
Built for big sites. Resumable batched scans, an index that updates itself as content changes, and WP-CLI commands.

MediaXray answers two questions, in this order:

Where is this file used? Every individual reference, grouped by page, product, template or setting, with the widget, block or field that uses it.
Is it safe to remove? Only after the first question is answered, and only after an independent deep verification.

Statuses

Used — confirmed references in live (published or private) content.
Global — logo, site icon, active theme settings, Theme Builder templates shown site-wide, Elementor Global Kit, active widgets. Protected from cleanup.
Needs check — not on any live page: only referenced by drafts, unassigned templates, inactive themes or widgets, Elementor’s stored fallback HTML, or uncertain matches.
Unused — no reference found by any supported source.
Kept — you chose to keep the file; it is never offered for cleanup.

How references are counted

A reference is one individual use. The same image twice on a page is 2 references on 1 page.
One image tag with its srcset, wp-image class and a link to its full size is 1 reference.
Unique content counts each page, product, template, term or setting once.

What is scanned

All content types (pages, posts, products, custom post types, Elementor templates, block templates, reusable blocks) in every status except Trash.
Gutenberg blocks (block-aware), classic HTML, galleries and shortcodes, featured images, excerpts.
Elementor: every widget and container — images, backgrounds on every breakpoint, overlays, galleries and carousels, video, links, dynamic tags, page and Global Kit settings, Theme Builder display conditions, embedded templates, atomic elements.
WooCommerce: product images, galleries, variation images (shown on the parent product), category images, downloadable files.
ACF fields (field-type aware when ACF is active), all custom fields, term and user meta, comments, widgets, Customizer, site icon and logo, Yoast SEO images and plugin settings.

Safe cleanup

Deep verification searches the raw database and the active theme’s files for every file name and ID pattern of the attachment, independently of the parsers.
Quarantine (one file, a selection, or every unused file in one click) moves all files of an attachment (including WebP/AVIF copies made by converter plugins) into a protected folder and hides it from the Media Library. One click restores it.
Permanent deletion only works on quarantined items and requires typing DELETE.
Uninstalling the plugin restores everything that is still in quarantine.

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 , verify .
Privacy
MediaXray makes no external requests, sends no data anywhere and adds no tracking. All analysis happens in your own database.

延伸相關外掛

文章
Filter
Mastodon