Linux 软件免费装
Banner图

Janitorix Media Audit

开发者 kstmonowar
更新时间 2026年10月31日 00:28
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

media media library cleanup alt text unused images

下载

1.1.0 1.0.0 1.0.1 1.0.2 1.0.4 1.0.3 1.0.5 1.1.1

详情介绍:

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: 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): 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 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.

安装:

  1. Upload the plugin through Plugins > Add New, or upload the ZIP via Plugins > Add New > Upload.
  2. Activate it through the Plugins menu.
  3. Open the new Janitorix menu in your WordPress admin sidebar.
  4. Click Start the first scan on the Dashboard. Nothing is deleted until you decide to act on a recommendation, and nothing is ever removed permanently without first going through the Trash.

屏幕截图:

  • Every unused image with its confidence, its risk, and what to do about it. A row that cannot be trashed has no checkbox
  • Why an image scored what it did — where the plugin looked, what it found, and how the risk was reached
  • An image that is in use, with every reference that proves it, and the rule that refuses to trash it
  • The behaviour you cannot switch off, stated rather than offered
  • Every scan kept as a snapshot a later one never rewrites
  • The alt text audit — every image missing or weakening its alt text, with a suggestion ready
  • Optional AI suggestions with one-click provider presets and test connection (off by default)

升级注意事项:

1.1.1 Compatibility release for WordPress 7.1.4. No settings change needed. 1.1.0 New Alt Text screen with rule-based and optional AI suggestions. Nothing changes about existing scans or settings; AI stays off unless you enable it with your own key. 1.0.5 Review notice added; uninstall and performance fixes. No settings change needed. 1.0.4 New SEO image detection may change some verdicts. Rescan after updating. 1.0.3 Closes a case where an image still in use could be judged unused. Rescan after updating. 1.0.2 Scanner accuracy, safety gate, and Plugin Check fixes. Rescan after updating. 1.0.1 Corrects the author link on the Plugins screen. No functional changes. 1.0.0 First stable release. Several Risk Engine and ACF detection fixes change what a small number of images are priced or recognised as — rescan after updating to pick them up. 0.6.0 This release can move images to Trash. Everything before it only reported.

常见问题:

Can it delete an image my site is using?

That is the failure mode the entire design exists to prevent, and it is why coverage floors, risk ceilings, and never-delete rules all sit between a scan and any action. But no scanner can see a URL assembled at runtime, or an image embedded in a newsletter you sent last year. Trash first, and check before emptying it.

Does it support my page builder?

Elementor is supported directly. For builders that are not — Divi, Bricks, Oxygen — a fallback scanner sweeps for image references it does not understand. It will not raise your confidence score, because it cannot prove it searched thoroughly. It can and does prevent deletions.

Why is my confidence score low?

Open the dashboard. If a scanner failed, it is named. If coverage is below 70%, it says so. The score is never lowered without a reason you can read.

Is anything deleted automatically?

No. Nothing is ever deleted without you clicking, and nothing is deleted in one step.

What happens when I uninstall it?

Every table and option the plugin created is removed. Your media is not touched.

How do I find unused images in WordPress?

The Media Library's "Unattached" filter is not the answer — see below. Check post content, post meta (ACF fields, page builders, featured images), options (logo, Customizer, widgets), and theme files, by filename and by attachment ID. Or run a scan here: every image gets a confidence score with the evidence behind it.

Is it safe to delete unused media in WordPress?

Only after two conditions: the image is proven unused (not merely unattached), and deletion goes through Trash first so a mistake is reversible. This plugin enforces both — it refuses Trash for anything at Medium risk or above, and nothing is ever deleted in one step.

Why does my media library keep growing?

Every upload stays unless someone removes it, and WordPress generates several resized copies per upload. Unused originals plus their thumbnails accumulate silently. A periodic scan keeps it flat.

Does deleting images hurt SEO?

It can, in ways no database scan sees. An image can be unused on your site and still rank in Google Images or be hotlinked elsewhere — check Search Console, Performance, Images before a bulk delete. Deleted URLs return 404, which loses any signal they had; redirect if they mattered. Sitemaps list images too, and take time to regenerate. When in doubt, Trash and wait before emptying.

What is the difference between "unattached" and "unused"?

"Unattached" only means the image was not uploaded inside a post. It says nothing about whether anything references it — a logo, a Customizer image and most page-builder images are all "unattached" and all in use. Unused means no reference anywhere, which takes a real search to establish.

Does the AI feature send my images anywhere?

Only when you ask it to, image by image. Enabling AI and saving your own key sends nothing by itself. Each "Suggest with AI" click sends that one image (resized to at most 1024px), its filename and its parent post's title to the service you configured — see "External services" above for exactly what goes where. Rule-based suggestions never leave your site.

Does alt text change on its own?

No. Nothing is applied until you click Save or Apply on that image, and every change keeps an undo. Marking decorative, editing the suggestion by hand, or dismissing an AI suggestion all work the same way — your call, reversible.

Is the alt text shown here the same as on the page?

Not always. This screen reads the alt text stored on the image itself; a theme or page builder may override it where the image is shown, so what a visitor actually hears can differ. Fix the stored text here first — that is the source everything else falls back to.

更新日志:

1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0