🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
Duplicate Media Guard icon
Activement maintenu Testé avec 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.

Installations actives50+10+ niveaux
Téléchargements · 30D568▲ +106.5% vs prev. 30d
Évaluation5/53 avis
Score de santé75/100Bon
Téléchargements de tous les temps1KDepuis septembre 2026
Support résolu—Aucun fil de discussion récent
A besoin deWP 6.2PHP 7.2+
Téléchargements · 7j219▲ +37.7% week over week
Notre verdict

Choix solide

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 6 days ago, and scores 75/100 on our health check.

  • Développé activement — Dernière mise à jour il y a 6 jours
  • Testé avec le dernier WordPress (7.1)
  • Momentum — downloads up 106.5% vs the previous 30 days
  • Petite base d'utilisateurs (plus de 50 installations actives)
  • Très peu de critiques jusqu'à présent

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

214263Sep 13Oct 24Dec 5
Hier19
Moyenne quotidienne (1 ans)12
Jour de pointe84Nov 27, 2026
12 Derniers mois1K

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where Duplicate Media Guard stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
duplicate images #31 4,697 Best duplicate images plugins →
duplicate media #11 2,851 Best duplicate media plugins →
media replace #45 3,358 Best media replace plugins →
replace image >100 5,508 Best replace image plugins →
replace media #42 3,357 Best replace media plugins →

Adoption de version

Part de sites actifs par version.

  • 2.154.4%
  • 2.345.6%

Répartition des notes

★★★★★ ★★★★★ 5 sur 3 avis

  • 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.

Principales caractéristiques

  • 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. Cliquez sur Installer maintenant.
  4. Activez le plugin.

Installation manuelle

  1. Téléchargez le dossier du plugin dans le répertoire /wp-content/plugins/.
  2. Go to Plugins in your WordPress dashboard.
  3. Activate Duplicate Media Guard.

Journal de modifications

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.

Journal des modifications complet sur WordPress.org →

Captures d'écran

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.

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best Duplicate Media Guard alternatives

All duplicate images plugins →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Purge des médias – Nettoyant multimédia et recherche de doublons inutilisés Purge des médias – Nettoyant multimédia et recherche de doublons inutilisés Trouvez des médias inutilisés, voyez où chaque fichier est utilisé, corrigez en toute sécurité avec la restauration et repérez exactement… Par Naqeeb ul Rehman 100+ ★★★★★★★★★★ 5 (2) 3 semaines plus tôt 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) il y a 1 mois 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+ ★★★★★★★★★★ Aucun avis Il y a 2 mois 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+ ★★★★★★★★★★ Aucun avis Il y a 2 mois 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) Il y a 3 mois 69
7 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 ★★★★★★★★★★ Aucun avis Il y a 2 mois 60
8 MediaRef Cleanup Auditor MediaRef Cleanup Auditor Find media references, filesystem orphans, duplicate files, and unused thumbnails with… by Chintan Acharya <10 ★★★★★★★★★★ Aucun avis il y a 4 mois 49
9 Lucid Lab Media & Products Cleanup Lucid Lab Media & Products Cleanup Safe media cleanup, WebP conversion, usage reports and thumbnail regeneration. Pro adds… by Lucid Lab <10 ★★★★★★★★★★ Aucun avis 3 semaines plus tôt 64
10 ZEJ Mediatidy – Media Library Cleanup: Unused Images, Duplicates, WebP & Compression ZEJ Mediatidy Find unused images, catch duplicates, convert to WebP and compress. Runs on your own… by Muhammad Zeeshan Ejaz <10 ★★★★★★★★★★ Aucun avis il y a 4 mois 49
11 FBC Image Utility: Image Optimiser, Duplicate Finder and Media Folders FBC Image Utility: Image Optimiser, Duplicate Finder and Me… Compress images on your own server, add WebP/AVIF where your host supports it, find… by FBC iBusiness <10 ★★★★★★★★★★ Aucun avis Il y a 2 semaines 64

FAQ

Duplicate Media Guard: quick answers

Réponses directes, extraites des données en direct WordPress.org.

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 6 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 1,002 times since it launched in September 2026. It was downloaded 568 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 (6 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).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir