🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Conta Get it free
Duplicate Media Guard icon
Manutenção ativamente Testado com 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.

Instalações ativas50+10+ nível
Downloads · 30d577▲ +131.7% vs prev. 30d
Classificação5/53 comentários
Pontuação da saúde75/100Bom
Downloads de todos os tempos991Desde setembro de 2026
Suporte resolvido—Sem tópicos recentes
RequerWP 6.2Php 7.2+
Downloads · 7d231▲ +60.4% week over week
Nosso veredicto

Escolha sólida

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

  • Desenvolvido ativamente — última atualização 5 dias atrás
  • Testado com as últimas WordPress (7.1)
  • Momentum — downloads up 131.7% vs the previous 30 days
  • Pequena base de usuários (mais de 50 instalações ativas)
  • Muito poucos comentários até agora

Como ele se acumula?

Lado a lado em instalações, atualizações, avaliações e suporte

Downloads diários

214263Sep 13Oct 24Dec 4
Ontem20
Média diária (1y)12
Dia de pico84Nov 27, 2026
Últimos 12 meses997

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where Duplicate Media Guard stands today

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
duplicate images #31 4,688 Best duplicate images plugins →
duplicate media #11 2,843 Best duplicate media plugins →
media replace #45 3,351 Best media replace plugins →
replace image >100 5,493 Best replace image plugins →
replace media #42 3,350 Best replace media plugins →

Adoção da versão

Compartilhamento de sites ativos por lançamento.

  • 2.154.4%
  • 2.345.6%

Divisão de classificação

★★★★★ ★★★★★ 5 de 3 comentários

  • 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

Descrição

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.

Por que usar este 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.

Instalação

Modern Installation

  1. Go to WordPress Dashboard → Plugins → Add New Plugin.
  2. Search for Duplicate Media Guard.
  3. Clique em Instale agora.
  4. Ative o plugin.

Manual Installation

  1. Carregue a pasta de plugins no diretório /wp-content/plugins/.
  2. Go to Plugins in your WordPress dashboard.
  3. Activate Duplicate Media Guard.

Log de Changes

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.

Registro de change completo em WordPress.org →

Capturas de tela

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.

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

Best Duplicate Media Guard alternatives

All duplicate images plugins →
Alternativas
Classificação Plugin Instalações ativas Classificação Atualizada Saúde
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) 3 semanas atrás 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 mês atrás 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+ ★★★★★★★★★★ Sem comentários 2 meses atrás 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+ ★★★★★★★★★★ Sem comentários 2 meses atrás 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 meses atrás 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 ★★★★★★★★★★ Sem comentários 7 dias atrás 64
8 Sweepify – Images Cleaner Sweepify – Images Cleaner Safely scan, detect, and clean unused, orphaned, duplicate, and oversized media files… by ExertPro <10 ★★★★★★★★★★ Sem comentários 4 meses atrás 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 ★★★★★★★★★★ Sem comentários 2 meses atrás 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 ★★★★★★★★★★ Sem comentários 2 meses atrás 60
11 MediaRef Cleanup Auditor MediaRef Cleanup Auditor Find media references, filesystem orphans, duplicate files, and unused thumbnails with… by Chintan Acharya <10 ★★★★★★★★★★ Sem comentários 4 meses atrás 49

FAQ

Duplicate Media Guard: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

Fonte: 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 5 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 991 times since it launched in September 2026. It was downloaded 577 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 (5 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).

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir