Media Mage WordPress Plugin | Codefreex Skip to content
Media Mage icon

WordPress plugin

Media Mage

Find duplicate and unused media, check every reference before deleting, and send removals to the trash so a mistake stays reversible.

By Lincoln Tracy
Version
1.0.0
Last updated
Aug 31, 2026
Tested up to
WordPress 7.1.5
Requires
WP 5.5 · PHP 7.4

Health check

Is Media Mage safe to rely on?

Our reading of the public WordPress.org data: maintenance, compatibility, ratings and support.

Actively maintained

Last updated on August 31, 2026. Regular updates usually mean bugs and security reports get fixed.

Tested with current WordPress

The author has tested it up to WordPress 7.1.5.

Requires PHP 7.4 or newer

Check your hosting PHP version before installing. Modern PHP is faster and receives security fixes.

Rank tracker

Where Media Mage ranks in WordPress.org search

Its position in WordPress.org plugin search for its tags and name, refreshed weekly so you can see how its visibility changes.

WordPress.org search positions for Media Mage
KeywordPositionChangeTrendCurrent #1
cleanup
duplicate images
media library
unused media
wp-cli
media mage

Checked against the top 100 WordPress.org search results.

Overview

What Media Mage does

Media Mage scans your media library for two kinds of clutter:

Duplicate files – the same image uploaded more than once under different names. Matched on MD5 content hash, so a renamed copy is still caught.

Unused media – attachments that nothing on the site appears to reference.

A tool that deletes files is only as good as the search it runs first, because anything the search misses gets reported as unused and then deleted. Most of the work in this plugin is in that search, and in the guards that sit between the search result and the delete.

What counts as a reference

Media Mage checks all of the following before it will call a file unused:

Post content of any post, page or custom post type, including trashed posts

Description from the author's listing. Read the full listing on WordPress.org

Screenshots

Media Mage in action

Duplicate groups, matched on file content rather than filename. The reference count is there because it is the number you weigh up when choosing which copy to keep.
Duplicate groups, matched on file content rather than filename. The reference count is there…
The unused list. Every file here was checked against twelve places first, and the notice is a standing reminder that a database scan cannot read your theme's PHP.
The unused list. Every file here was checked against twelve places first, and the…
Nothing is deleted without naming the files first. Cancel leaves the library untouched.
Nothing is deleted without naming the files first. Cancel leaves the library untouched.

FAQ

Media Mage: questions and answers

What is Media Mage?

Media Mage is a WordPress plugin by Lincoln Tracy. Find duplicate and unused media, check every reference before deleting, and send removals to the trash so a mistake stays reversible.

Is Media Mage free?

Media Mage is listed in the WordPress.org plugin directory, so the version there is free to download and use. Some authors also sell paid add-ons or a premium edition with more features and support.

Is Media Mage still maintained?

Media Mage was last updated on August 31, 2026. The current version is 1.0.0. Check the changelog on WordPress.org and test updates on a staging site before applying them to a live site.

What does Media Mage require?

Media Mage requires WordPress 5.5 or newer and PHP 7.4 or newer. It has been tested up to WordPress 7.1.5.

Can Codefreex set up or customize Media Mage?

Yes. Codefreex installs, configures and customizes WordPress plugins including Media Mage, fixes conflicts and performance problems, and builds custom features when a plugin does not do exactly what you need. Send your site URL for a free review.

Free expert review

Need Media Mage set up, customized or fixed?

Tell us about your site and what you need this plugin to do. A senior WordPress developer replies within one business day with a plan and a quote.

Built this plugin yourself? We help WordPress product teams with development, support load and growth. Talk to us