
內容簡介
Janitorix Media Audit 是一款專注於媒體清理的外掛,能夠精確判斷圖片是否未使用,並提供刪除的風險評估。它不僅能檢查圖片的使用情況,還能進行替代文字的審核,確保網站的媒體管理更為安全有效。
【主要功能】
• 檢查圖片使用情況及信心評分
• 評估刪除圖片的風險
• 替代文字審核及建議功能
• 支援 AI 建議的替代文字生成
• 追蹤替代文字覆蓋率的儀表板卡片
• 支援多種媒體來源的掃描
外掛標籤
開發者團隊
原文外掛簡介
Most cleanup plugins tell you an image is unused. This one tells you how sure it is, and why.
That difference matters, because the cost of being wrong is not symmetric. Leaving an unused image costs you a few kilobytes. Deleting a used one breaks your site — and you may not find out for weeks.
Version 1.1.0 adds an alt text audit with rule-based and optional AI suggestions — see below.
Read the full guide — why “unattached” is not the same as “unused”, the places a reference hides, and how to check by hand · Plugin page · Development on GitHub — report issues or contribute.
What it actually does
Scanners search every place an image can hide: featured images and post attachments, post content, Gutenberg blocks and synced patterns, full-site-editing templates, the Customizer, theme options, widgets, menus, Elementor, ACF, WooCommerce, and your theme’s PHP, CSS, and JavaScript files.
Then two independent judgements are made about every image:
Confidence — how sure we are the image is unused
Risk — how much damage deleting it would cause if we are wrong
These are never blended into one score. A site logo nobody references and a stray upload nobody references look identical to a confidence score, and demand opposite actions.
Alt text audit
A separate screen lists every image missing alt text (or carrying a weak one like “IMG_2034”), suggests a replacement built from the filename, title, or parent post, and applies it only when you say so — with undo. The suggestion is editable: apply it as-is or write your own words. Images can be marked decorative, a Dashboard card tracks your coverage, and wp janitorix alt stats reports coverage for scripting. Nothing here affects confidence, risk, or any deletion recommendation.
Optional AI suggestions
The alt text screen can also ask an AI model — but only if you enable it under Settings and add your own API key. One-click presets for Gemini, OpenAI, Groq, and OpenRouter fill in the endpoint and a working default model, so setup is “pick yours, paste the key” — and a test-connection button confirms it works before you spend anything. The plugin ships no key and makes no AI calls on its own. Each suggestion is reviewed in the textbox before anything is saved, exactly like a rule-based one, with rate-limit handling and cached answers so you never pay twice for the same image.
External services
AI suggestions are off by default. When you enable them and save a key, each image you ask about is sent — resized to at most 1024px — together with its filename and its parent post’s title, to the service at the base URL you configured. The plugin itself stores nothing externally; what the service does with that data is governed by its own terms, which you accept when you create your key. Providers differ — some train on API data, some do not — so read your chosen service before enabling. Examples (your own service’s terms apply, not these examples):
OpenAI — Terms · Privacy
Anthropic — Legal · Privacy
Google Gemini — Terms · Privacy
Groq — Terms · Privacy
OpenRouter — Terms · Privacy
No other part of this plugin contacts any external service. Scans, suggestions, and reports all run on your own site.
What it refuses to do
It will not recommend deleting anything if it could not search enough of your site. Below 70% coverage, it says so and recommends a rescan instead.
It will not offer Trash for anything at Medium risk or above, no matter how confident it is.
It will never delete your site logo, icon, or header — those are refused outright, not merely scored low.
It will not touch an image uploaded in the last 24 hours, because you probably have plans for it.
It never deletes anything in one step. Trash first, always, and only from the Trash can anything be permanently removed.
It never contacts any external service on its own. The only network call the plugin can ever make is an AI suggestion you explicitly ask for, after enabling it with your own key.
Every number shows its work
Open any image and you can see which scanner found what, how strong each piece of evidence was, and exactly why the plugin reached its conclusion. A confidence score you cannot inspect is a number you have no reason to trust.
Honest about its limits
A perfect scan reports 97%, not 100%. Proving an image is used takes one piece of evidence; proving it is unused means proving the absence of evidence everywhere — and “everywhere” is not somewhere you can finish visiting. Theme frameworks store images in ways nobody can fully predict, and page builders can assemble URLs at render time.
The plugin reports the honest number rather than a comfortable one.
