Media Cleaner is a tool that detect unused and useless files from your WordPress. It cleans clean your Media Library and your Uploads Directory.
You can choose to check your Media Library or your Uploads Directory. Then the plugin will check if the file (or files, in the case of a media) is used anywhere in your WordPress install depending on the options you have chosen. Here are a few examples of what can be checked:
Basically, by playing with the options, you can discover a lot about how your system is used and how much (in term of weight) of images became useless.
The files (or media) is then added to the Media Cleaner Dashboard. From there, you can choose to move then in the trash. The next step is to test your website, maybe for a few days or more; if nothing is missing, if all is working well, it means none of those images were actually in use. Then you can decide to trash them completely.
Personally, I have one website on which I use my images in posts only (http://jordymeow.com). I set the Method on Media Library and the only options I check is “Posts”. I usually get very interesting results of Media I actually don’t use or stop using.
I have another website which is all made with galleries (WP Gallery). Again, I use the Media Library method but this time I only check “Galleries”. I realized this way that there are images I forgot to include in my galleries.
The way I love to use this plugin is every time I switch theme. When I do so, I need to regenerate my thumbnails and my alternative images (with a plugin such as Regenerate Thumbnails) and by doing this you end up with a lot of new images being created; however, the old ones are still here! They aren’t registered in your Media Library (the Media exists, but the alternative size is not part of the metadata), it’s actually a mess. Media Cleaner is safe and will mark them as being used if you scan with “Posts”. However, there is a way to find those files which are actually disconnected from your WordPress. Method “Filesystem”, and check only “Media Library”. You will probably discover a huge amount of files which are completely garbage, but be careful, they might still be used in the “Posts”. You need to update your articles (that can do it by editing your posts, clicking on those images and edit, and Update; the HTML will be updated by WordPress with the proper alternative image).
Let me know how you use it, it’s always good to know 🙂 Enjoy the plugin!