Linux 软件免费装
Banner图

Discounly Unused Image Cleaner

开发者 discounly
更新时间 2026年10月22日 18:37
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

media library cleanup disk space unused images media cleaner

下载

4.2.0 4.3.0

详情介绍:

Highlights Fast on large sites. Discounly Unused Image Cleaner reads your database once, in chunks, and builds an index of every image reference, then checks each image against that index in a single pass. Measured on real sites: Every feature is free. No Pro version, no limits on how many images you can scan or clean, no sign-up, no ads. The careful matching, the "Where is it used?" check, CSV export and the Trash view are all included. You stay in control. Nothing is deleted by the scan. You check results 10 at a time, look up any image with "Where is it used?", and removal always goes to the Trash first, with each file re-checked right before it moves. How it works Over the years a WordPress site collects images that are no longer used: replaced product photos, old page designs, duplicate uploads, images from deleted posts. They take up disk space, bloat backups and make the Media Library hard to work with. Discounly Unused Image Cleaner finds them carefully and lets you stay in control:
  1. Scan – reads every place your site can use an image and lists the images nothing points to. Scanning only reads your site; nothing is changed.
  2. Check them yourself, 10 at a time – see a preview, the file path, size and upload date, open the image or its Media Library page, and ask "Where is it used?" for any image.
  3. Full list – every unused image, largest first, with a CSV download.
  4. Move to Trash – removal always goes to the Trash first, and each file is re-checked right before it is moved. Restore anything from the plugin's own Trash view.
Where it looks How it decides Built for large sites The scan reads your database in chunks and works for about 20 seconds per request, so even a database with almost 2 million custom-field rows needs only a handful of requests. If you close the tab, the scan picks up where it left off when you come back. What it can't see No scanner can see images used only outside your WordPress database and theme files – in emails, newsletters, social posts, other websites, or code in regular plugin files. Always review the list, keep a recent backup, and use the 10-at-a-time check before moving images to the Trash.

安装:

  1. Upload the plugin through Plugins → Add New → Upload Plugin, or install it from the plugin directory.
  2. Activate it.
  3. Go to Media → Unused Images and click Scan for unused images.

屏幕截图:

  • Step 2 – Check them yourself: 10 images at a time with preview, path, size, links to the image and its Media Library page.
  • "Where is it used?" for an image in use – every place it was found, with links.
  • "Where is it used?" for an unused image.
  • Step 3 – The full list, largest first, with CSV download and Move to Trash.
  • The plugin's Trash view – restore an image or delete it permanently.

升级注意事项:

4.3.0 Adds a "Rate this plugin" link and a one-time, dismissible review request. No changes to scanning. 4.2.0 First WordPress.org release. Previous scan results are cleared; run a new scan after updating.

常见问题:

Does scanning change anything on my site?

No. Scanning only reads your site. Nothing changes until you choose to move images to the Trash.

Is it safe to delete what it finds?

The plugin is careful and keeps an image whenever it isn't sure, but it cannot see images used outside your site (emails, social posts, other websites). Use "Where is it used?" and the 10-at-a-time check, keep a backup, and move images to the Trash rather than deleting them.

Where do trashed images go? Can I get them back?

They go to the WordPress Trash. Open View Trash on the plugin page to restore them or delete them permanently. Note: WordPress empties the Trash automatically after 30 days (the EMPTY_TRASH_DAYS setting).

Why does "Where is it used?" say an image is used when I don't see it on the page?

It may be used on a draft or private page, in a template, a product gallery, a quiz question, a setting, or a page-builder layout. The result lists the exact place, with a link where possible.

An image I need was listed as unused. What should I do?

Don't move it to the Trash, and please report it in the support forum with how the image is used (for example which plugin or page builder), so the scan can learn that place.

Why are photo.jpg and photo.webp treated separately?

They are separate uploads in your Media Library. If a page shows photo.webp, the separate photo.jpg upload is not used by that page. Copies made automatically by WebP converters (photo.jpg.webp) are recognised as belonging to the original.

My site is large. Will the scan slow it down?

The scan runs one request at a time, only while you have the page open, and only when you click Scan. Each request works for up to about 20 seconds. To make requests shorter, add define( 'DISCOUNLY_UIC_STEP_SECONDS', 10 ); to wp-config.php.

Does it work with page builders?

It reads the data Elementor and similar builders store (JSON and serialized settings, including image IDs and URLs). It has been tested on Elementor sites. Other builders that store image URLs or IDs in post content or custom fields are covered by the same rules; please report any that aren't.

Does it support multisite?

It scans the current site only. Network-wide scanning is not supported yet.

What does the plugin store?

Its scan results and a reference index in three database tables, removed when you delete the plugin. It sends no data anywhere.

更新日志:

4.3.0 4.2.0 4.1.1 4.1.0 4.0.0