🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Duplicate Media Guard icon
Actively maintained Tested with WP 7.1 #2 in duplicate images

Duplicate Media Guard

Prevent duplicate media uploads, find duplicate images, and replace WordPress media while keeping attachment IDs intact.

Active installs50+10+ tier
Downloads · 30d552▲ +124.4% vs prev. 30d
Rating5/53 reviews
Health score75/100Good
All-time downloads968Since Sep 2026
Support resolved—No recent threads
RequiresWP 6.2PHP 7.2+
Downloads · 7d287▲ 4.3× week over week
Our verdict

Solid choice

Duplicate Media Guard is a solid plugin choice in 2026, with a few things worth checking first. It runs on 50+ sites, is rated 5/5 and was last updated 3 days ago, and scores 75/100 on our health check.

  • Actively developed — last update 3 days ago
  • Tested with the latest WordPress (7.1)
  • Momentum — downloads up 124.4% vs the previous 30 days
  • Small user base (50+ active installs)
  • Very few reviews so far

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

214263Sep 13Oct 23Dec 2
Yesterday37
Daily average (1y)12
Peak day84Nov 27, 2026
Last 12 months961

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Duplicate Media Guard stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
duplicate images #31 4,666 Best duplicate images plugins →
duplicate media #12 2,826 Best duplicate media plugins →
media replace #45 3,327 Best media replace plugins →
replace image >100 5,466 Best replace image plugins →
replace media #42 3,325 Best replace media plugins →

Version adoption

Share of active sites per release.

  • 2.167.9%
  • 2.332.1%

Rating breakdown

★★★★★★★★★★ 5 from 3 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Duplicate Media Guard

From the official readme · v2.3.1

Description

Duplicate Media Guard helps keep your WordPress Media Library organized by preventing duplicate uploads, identifying duplicate images, and replacing existing media files without creating a new attachment.

Need to replace a media file in your WordPress Media Library? The plugin adds a Replace media action directly in the Media Library. Upload the replacement and choose whether to keep the existing filename and URL or use the new filename and update matching references in supported WordPress content and metadata. The attachment ID is retained in both modes.

Beyond media replacement, Duplicate Media Guard helps prevent accidental re-uploads. Filename checks catch matching names, exact file hashing identifies byte-identical images, and perceptual hashing can identify resized or recompressed images even when filenames differ. When potential image matches are found, the uploader shows previews so you can review them before deciding whether to cancel or continue.

Why use this plugin?

  • Replace media in WordPress without creating a new attachment; keep the existing URL or update supported WordPress references, depending on the selected mode.
  • Prevent accidental duplicate uploads and reduce unnecessary storage use.
  • Review possible image duplicates before uploading.
  • Works with the standard WordPress Media Uploader — no custom upload interface to learn.

How Replace Media works:

Enable Enable Media Replace in the plugin settings. A Replace media link then appears in the Media Library for any file you have permission to edit. Upload the replacement and choose one of two replace modes:

  • Replace file only — keeps the same filename, URL, and folder. The replacement must be the same file type.
  • Replace file and update all links — uses the new filename and updates matching references in supported WordPress content and metadata. Links on external websites are not changed.

The attachment ID is preserved in both modes. The existing URL is retained only when you choose Replace file only.

Duplicate detection examples:

  • logo.png and logo.png → Duplicate
  • logo.png and logo.jpg → Duplicate (when extension check is disabled)
  • banner.webp and banner.webp → Duplicate
  • photo.jpg and a resized or recompressed copy.webp → Possible visual duplicate (when visually similar detection is enabled)

This helps reduce unnecessary duplicates and storage use while still allowing intentional uploads.

Key Features

  • Replace an existing media file while retaining its attachment ID; keep the current URL in Replace file only mode or update supported WordPress references in the other mode.
  • Review possible image duplicates with existing-media previews before uploading.
  • Detect byte-identical images using exact file hashes.
  • Identify resized or recompressed images using perceptual hashes.
  • Match filenames with or without their file extensions.
  • Enable or disable duplicate protection and image hash checks independently in the settings.
  • Use the standard WordPress Media Uploader — no custom upload interface needed.
  • Index existing image fingerprints gradually in the background.
  • Recheck previously uploaded images from Media → Duplicate Media Settings → Duplicate Media if the initial background index missed files.
  • Review exact duplicate image groups in Media → Duplicate Media Settings → Duplicate Media, compare file details, and choose a primary attachment without changing media.

The settings screen has General Settings and Duplicate Media tabs. The Duplicate Media tab uses saved SHA-256 image fingerprints, shows up to 10 attachments per group, and displays 20 duplicate groups per page. Search by filename or title, and sort media within each group. File details are collapsed until View image details is clicked; image dimensions appear centered over each preview. Use Recheck existing media to restart background fingerprinting from the beginning and find older images that were not indexed previously. The page reflects matches as indexing progresses. Free merging is limited to 50 duplicate groups in total, with groups over three images requiring Pro. After the 50th successful Free group merge, an upgrade dialog explains the limit; additional groups are blocked by the server until Pro is active. Before changing references, the plugin re-hashes every selected file and saves a private backup of the source file, generated image sizes, attachment data, and supported references. Backups are kept indefinitely outside the public WordPress directory; merging is blocked if a private writable location and restrictive file permissions cannot be verified.

Merge updates matching media URLs in post content, excerpts, and post metadata (including generated image-size URLs), and updates WordPress _thumbnail_id featured-image metadata. Each reference source is limited to 500 matches; if a source exceeds the limit, the operation stops without deleting the duplicate. The plugin backs up, verifies, and rescans supported references before deleting an attachment. Widgets, plugin-specific attachment-ID fields, external sites, and custom storage locations are not updated. Saved hashes may be stale if files are changed outside WordPress, so selected files are checked again immediately before merge. Bulk operations process one attachment per request and can resume after an interrupted request; failed updates are logged and do not trigger deletion.

Developer Integration

The Free plugin exposes a versioned PHP integration API for compatible add-ons:

  • WDMG_VERSION, WDMG_MINIMUM_WP_VERSION, WDMG_MINIMUM_PHP_VERSION, and WDMG_INTEGRATION_VERSION describe the installed plugin and integration contract.
  • Wdmg_Integration::get_compatibility_info() returns those version values, and Wdmg_Integration::is_compatible( $minimum_version ) checks an add-on’s minimum integration version.
  • Wdmg_Integration::can_manage() and Wdmg_Integration::can_edit_attachment( $attachment_id ) provide server-side capability checks.
  • Wdmg_Integration::get_attachment_data( $attachment_id ) returns attachment details for a user allowed to edit that media item, or a WP_Error when access is denied or the item is invalid.
  • Wdmg_Integration::get_duplicate_groups( $args ) returns paginated exact-image-hash groups and limited post-content / featured-image reference details to administrators, or a WP_Error on denial or query failure. Supported arguments are page, search, sort (filename, date, or size), and order (asc or desc).
  • Wdmg_Integration::start_merge( $primary_id, $duplicate_ids ) and start_bulk_merge( $duplicate_to_primary_map ) create an authorized, server-limited merge operation. Free merging is limited to 50 duplicate groups in total.
  • Wdmg_Integration::process_merge_operation( $operation_id ), get_merge_operation( $operation_id ), and get_pending_merge_operation() process, inspect, and resume the current administrator’s durable operation.
  • The wdmg_register_admin_pages action fires while the Free Media Library submenu is registered and receives the parent slug, required capability, and integration version. Add-ons must still enforce their own authorization on every page and action.
  • The wdmg_admin_tabs filter adds add-on tabs to Media → Duplicate Media Settings. Each tab is keyed by a URL-safe slug and provides a translated label plus a callable callback. The built-in tabs are General Settings and Duplicate Media.
  • Operation lifecycle actions are wdmg_before_merge (operation ID, primary ID, duplicate ID, private backup path), wdmg_merge_after (operation ID, primary ID, duplicate ID, result details), and wdmg_merge_failed (operation ID, primary ID, duplicate ID, WP_Error).

The merge and reference APIs require integration version 2. Only the documented post-content URL and featured-image adapters are supported by this initial merge implementation.

How to Replace Media in WordPress (Step by Step)

  1. Go to Settings → Duplicate Media Guard and turn on Enable Media Replace.
  2. Open your WordPress Media Library.
  3. Click any media item and select Replace media.
  4. Upload the replacement file.
  5. Choose your replace mode and click Update. The attachment ID is preserved; the existing URL stays the same in Replace file only mode, while the other mode updates matching supported WordPress references.

Duplicate Detection

  1. Select an image through the WordPress Media Library.
  2. The plugin checks the filename, exact file hash, and perceptual hash of indexed images.
  3. If potential matches are found, a warning shows previews and lets you cancel or proceed. Files with no matches upload without a confirmation.
  4. Files uploaded outside the standard Media Uploader retain the server-side filename duplicate check.

Use Enable Duplicate Protection to turn duplicate checks on or off. Use Enable Image Hash Checks to control exact and visual image matching. When image hash checks are disabled, filename duplicates use the standard WordPress upload notice and copy-URL action, while other files in the same bulk upload continue normally. Existing images are indexed gradually, so visual matching may be incomplete until indexing has progressed.

Replace Existing Media

Enable Enable Media Replace in the plugin settings to show the Replace media action in the Media Library. Users who can upload files and edit the selected media item can choose a replacement and select how it should be applied:

  • Replace the file only keeps the existing filename, URL, and folder. The replacement must have the same file type.
  • Replace the file, use the new file name, and update all links applies the uploaded filename and updates matching references in WordPress content and metadata. Links on external websites are not changed.

The attachment ID is retained in either mode. Under Upload Destination, choose whether to use today’s date or keep the existing media date. When using a new filename, this choice also determines the upload folder.

Installation

Modern Installation

  1. Go to WordPress Dashboard → Plugins → Add New Plugin.
  2. Search for Duplicate Media Guard.
  3. Click Install Now.
  4. Activate the plugin.

Manual Installation

  1. Upload the plugin folder to the /wp-content/plugins/ directory.
  2. Go to Plugins in your WordPress dashboard.
  3. Activate Duplicate Media Guard.

Changelog

Includes security check updates.

2.3.1 – 2026-11-30

  • Security check updates.

2.3.0 – 2026-11-17

  • Added duplicate media merging.
  • Improved the admin interface.
  • Added Pro add-on integration architecture.
  • Updated the documentation URL.

2.2.0 – 2026-11-12

  • Added safe duplicate merging with verified private backups and reference replacement.
  • Added persistent, resumable merge operations with a server-enforced five-duplicate limit.
  • Added merge integration API version 2 and lifecycle hooks.

2.1.1 – 2026-10-28

  • Minor changes and improvements.

2.1.0 – 2026-10-24

  • Added exact image hashing and perceptual similarity detection.
  • Added pre-upload match previews with cancel or upload-anyway options.
  • Added settings switches for duplicate protection and image hash checks.
  • Restored the standard duplicate-upload notice flow when image hash checks are disabled.
  • Added media replacement features.

1.0.1 – 2026-09-27

  • Fixed color and security issues.

Full changelog on WordPress.org →

Screenshots

Plugin settings page showing duplicate detection options.
Plugin settings page showing duplicate detection options.
Example showing a duplicate media upload being detected and skipped (when disable hash check).
Example showing a duplicate media upload being detected and skipped (when disable hash…
Example warning showing matching images with cancel and upload options (when enable hash check).
Example warning showing matching images with cancel and upload options (when enable hash…
Example showing replace media first step.
Example showing replace media first step.
Example showing replace media processing.
Example showing replace media processing.

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Duplicate Media Guard alternatives

All duplicate images plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Media Purge – Unused Media Cleaner & Duplicate Finder Media Purge – Unused Media Cleaner & Duplicate Finder Find unused media, see where each file is used, trash safely with restore, and spot exact… by Naqeeb Ul Rehman 100+ ★★★★★★★★★★ 5 (2) 2 weeks ago 79
3 Mediapapa – Your WordPress Media Library Manager & Copilot Mediapapa – Your WordPress Media Library Manager & Copilot WordPress media library manager: track usage, find duplicates, remove unused files, fix… by The Mediapapa Team 50+ ★★★★★★★★★★ 5 (1) 1 month ago 70
4 MediaVoom – Image Optimizer & Media Cleaner MediaVoom – Image Optimizer & Media Cleaner Safely clean your Media Library, find duplicates and orphan files, and generate local… by Youssef Medlej 30+ ★★★★★★★★★★ No reviews 2 months ago 63
5 AVAR Media Optimizer AVAR Media Optimizer Find unused images and duplicate files, clean your Media Library, compress images and… by AVAR Solutions 10+ ★★★★★★★★★★ No reviews 2 months ago 51
6 MediaPilot AI – Media Library Folders, Cleanup & AI Metadata MediaPilot AI – Media Library Folders, Cleanup & AI Metadata Organize WordPress media with folders, safely clean unused and duplicate files, replace… by brainstudioz 10+ ★★★★★★★★★★ 5 (2) 3 months ago 69
7 Librizent – Media Library Audit & Missing Alt Text Finder Librizent – Media Library Audit & Missing Alt Text Finder Audit your Media Library: missing alt text, oversized and heavy images, missing files… by Muhammad Mujahid Sarfraz <10 ★★★★★★★★★★ No reviews 5 days ago 64
8 Sweepify – Images Cleaner Sweepify – Images Cleaner Safely scan, detect, and clean unused, orphaned, duplicate, and oversized media files… by ExertPro <10 ★★★★★★★★★★ No reviews 4 months ago 49
9 Sajib Media Cleanup & Storage Manager Sajib Media Cleanup & Storage Manager WordPress media cleaner for auditing unused media, duplicate images, orphan files and stale… by Mohamed Sajib <10 ★★★★★★★★★★ No reviews 2 months ago 60
10 Wisnoob Media Cleanup Wisnoob Media Cleanup Find unused and duplicate media, see exactly where every file is used, and clean up your… by wisnoob <10 ★★★★★★★★★★ No reviews 2 months ago 60
11 MediaRef Cleanup Auditor MediaRef Cleanup Auditor Find media references, filesystem orphans, duplicate files, and unused thumbnails with… by Chintan Acharya <10 ★★★★★★★★★★ No reviews 4 months ago 49

FAQ

Duplicate Media Guard: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Duplicate Media Guard free?

Yes. Duplicate Media Guard is free to download and use from the official WordPress.org plugin directory.

Is Duplicate Media Guard safe to use in 2026?

Duplicate Media Guard is a solid plugin choice in 2026, with a few things worth checking first. It runs on 50+ sites, is rated 5/5 and was last updated 3 days ago, and scores 75/100 on our health check.

How many websites use Duplicate Media Guard?

Duplicate Media Guard is active on 50+ WordPress websites and has been downloaded 968 times since it launched in September 2026. It was downloaded 552 times in the last 30 days.

Does Duplicate Media Guard work with WordPress 7.1?

Yes. The developer has tested Duplicate Media Guard up to WordPress 7.1.5, the latest release. It requires WordPress 6.2 or newer.

What PHP version does Duplicate Media Guard need?

Duplicate Media Guard requires PHP 7.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Duplicate Media Guard last updated?

The latest version, 2.3.1, was released on November 30, 2026 (3 days ago).

Who makes Duplicate Media Guard?

Duplicate Media Guard is developed and maintained by Rashed Uzzaman.

What are the best alternatives to Duplicate Media Guard?

The most popular alternatives to Duplicate Media Guard are Media Purge (100+ installs), Mediapapa (50+ installs) and MediaVoom (30+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open