WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by opicron v1.9.2

Image Cleanup

Image Cleanup will index unreferenced images. These can be leftovers from cropping and scaling images. Stop them cluttering your content folder!

Image Cleanup

The facts

Rating
3.5★ from 63
Active installs
1k+
Price
Free
Last updated
28 Nov 2017
Added
Oct 2013
Requires WP
3.0.1
Tested up to
WP 4.8.30
Downloads
129,769

Our analysis

AI-assisted

Image Cleanup is a WordPress plugin designed to help you manage unreferenced images in your media library. It indexes images that are not used in posts or scripts, allowing you to identify and remove clutter from your content folder. The plugin is particularly useful for developers and those who frequently scale or crop images, as it can find images without or with incorrect metadata.

The plugin provides bulk repair and delete functionality, pagination for large result sets, and detailed logs for reviewing indexed images. After indexing, you can temporarily move images to a backup folder for testing, with the option to restore them if needed. This tool is suitable for anyone looking to clean up their media library and save space.

Best for: This plugin is best for developers and site owners who need to manage a large number of images in their WordPress media library.

What it does well

  • Indexes unreferenced images in the media library
  • Bulk repair and delete functionality
  • Detailed logs for reviewing indexed images
  • Configurable to avoid memory and timeout issues
  • Useful for developers managing large media libraries

Where it falls short

  • Only finds images not indexed in the database
  • Does not index images with valid database metadata but not used in posts
  • Last updated in November 2017

Verdict

Image Cleanup offers a practical solution for identifying and managing unreferenced images, though its limitations and lack of recent updates may be a concern for some users.

From the developer

opicron's own description of Image Cleanup, lightly tidied.

Did you ever scale or crop uploaded images in wordpress? Did you ever try various image generating plugins? Did you ever change or add various media image sizes? If yes, chances are that your content folder is full of unused and unreferenced images. These image leftovers will remain cluttering your content folder until the end of days.

Image Cleanup will index these (and many more) unreferenced images. Unreferenced images are not indexed in the wordpress database and also not used by posts, scripts or backup restore meta data. Please note that images which have valid database metadata but are not used in posts are not indexed at this time. This is beyond the scope of this plugin.

Image Cleanup will also find images without meta data and images with incorrect meta data.

  • Save space taken up by unreferenced/backup images!
  • Fix incorrect metadata (sizes)
  • Bulk repair/delete functionality
  • Pagination for extremely large result sets
  • Logs tabs easily visible for reviewing!
  • Detailed information in log tabs!
  • Full restore functionality!
  • Especially useful for developers!
  • Written as class to avoid any conflicts!
  • Highly configurable to avoid memory and/or timeouts on some setups

On my one month old website with 50 files (and 250 attachment size variants) this plugin found 95 unreferenced images which I could remove without any conflicts.

There has been a reported case where this plugin indexed and removed over 23.000 images on a website. See forum/review for details

Image Cleanup workflow details

  • Retrieves all attachment images from the database (including size variants);
  • Finds all images in the wp-content folder;
  • Subtracts the attachment (and size variants) from physical found images;

The above will result in an list of invalid images which are not referenced by the database

  • Posts will be searched for images and found images will be subtracted from the invalid files (if any);
  • Scripts in wp-content will be searched for images and they will be subtracted from the invalid files (if any);
  • Backup images (for restoring images after scale/crop) will be subtracted from the invalid images;
  • Found unreferenced files will be checked against the meta data to see if the database meta entry still exist;

This results in various image lists in which the images can be reviewed, repaired or removed.

After indexing

After indexing you are able to (temporary) move the images to a backup folder to check the site without the images in the wp-content folder. You could also check the logs in the ../wp-content/uploads/image-cleanup/ID/logs folder for full information about the index.

If any problems are found you can revert the move of images by restoring them to their original locations.

When no problems arrise after moving the images to another location it is possible to permanently remove the images.

Future planned additions

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for backups.

All-in-One WP Migration and Backup

Trusted by 60M+ sites: The gold standard for WordPress migration and backup. Migrate, backup, and restore your...

Free 5M+ installs 4.5★ (7,664)
Duplicator

The best WordPress backup and migration plugin. Quickly and easily backup ,migrate, copy, move, or clone your...

Free 1M+ installs 4.9★ (4,929)
WPvivid

WPvivid

93

All-in-one WordPress backup, migration and staging plugin — schedule automatic backups, restore in one click,...

Free 900k+ installs 4.9★ (1,536)
Disable Gutenberg

Disable Gutenberg Block Editor and restore the Classic Editor and original Edit Post screen (TinyMCE, meta box...

Free 500k+ installs 5★ (733)
WP STAGING

WordPress backup plugin: backups, restore & migration in minutes. Clone or duplicate your site, test updat...

Free 100k+ installs 4.8★ (2,464)