Media Tracker – Track Unused, Duplicate & Used Media source code

By Rejuan Ahamed, on WordPress.org since 2024. 1,000+ active installs.

Browse code Download zip

Media Tracker is a powerful WordPress plugin designed to help you identify and remove unused media files, manage duplicate images, and streamline your media library for better site performance and storage efficiency. Below is its source code for every one of its 26 releases, what changed in the latest one, and how often it ships.

What changed in 1.4.1

Released Oct 7, 2026, 2 days after 1.4.0
  • Performance: Unused media scan is now much faster on large sites — attachment URL to post ID lookups rewritten from one database query per file (O(n²)) to a single batched query (up to 500 URLs per query)
  • Fixed: Unused Media page no longer shows everything hidden on first visit — the “Scan Unused Media” and “Remove all unused media” buttons are now always visible, even before the first scan
  • Fixed: Scan progress can no longer hang at 99% — if the background scan process dies (host timeout, disabled cron), the scan is automatically re-scheduled and closes gracefully if it cannot continue
  • Fixed: Duplicate media footer action buttons now display white icons correctly

12 files changed since 1.4.0: 11 modified, 1 added, 0 removed.

And 2 more.

Compare 1.4.0 with 1.4.1

Release history

26 releases since August 2026
  1. 1.4.1 Oct 7, 2026 Performance: Unused media scan is now much faster on large sites — attachment URL to post ID lookups rewritten from one database query per file (O(n²)) to a single batched query (up to 500 URLs per query)
  2. 1.4.0 Oct 4, 2026 New: Media Tracker now has its own top-level admin menu (no longer under the Media menu)
  3. 1.3.7 Aug 24, 2026 Fixed: Unused media list bug fixed
  4. 1.3.6 Aug 16, 2026 Fixed: Unused media list bug fixed
  5. 1.3.5 Aug 16, 2026 Fixed: Screenshot option CSS issue fixed
Full Media Tracker – Track Unused, Duplicate & Used Media changelog with diffs

Source of 1.4.1

51 files
Browse all Media Tracker – Track Unused, Duplicate & Used Media 1.4.1 files Browse trunk