Title: Media Reference Inspector
Author: rejoyan9009
Published: <strong>14. august, 2026</strong>
Last modified: 14. august, 2026

---

Søk i utvidelser

![](https://ps.w.org/media-reference-inspector/assets/banner-772x250.png?rev=3647213)

![](https://ps.w.org/media-reference-inspector/assets/icon.svg?rev=3647213)

# Media Reference Inspector

 Av [rejoyan9009](https://profiles.wordpress.org/rejoyan9009/)

[Last ned](https://downloads.wordpress.org/plugin/media-reference-inspector.1.1.0.zip)

 * [Detaljer](https://nb.wordpress.org/plugins/media-reference-inspector/#description)
 * [Omtaler](https://nb.wordpress.org/plugins/media-reference-inspector/#reviews)
 *  [Installering](https://nb.wordpress.org/plugins/media-reference-inspector/#installation)
 * [Utvikling](https://nb.wordpress.org/plugins/media-reference-inspector/#developers)

 [Brukerstøtte](https://wordpress.org/support/plugin/media-reference-inspector/)

## Beskrivelse

Media Reference Inspector is a small, read-only admin tool for checking where an
individual Media Library item is referenced.

The plugin focuses on standard WordPress locations and intentionally does not delete
files, change content, create database tables, track users, or call external services.

Supported reference checks in version 1.1.0:

 * Post, page, and custom post type content or excerpts that contain the original
   media URL, a generated image-size URL, or the WordPress `wp-image-ID` class.
 * Core WordPress media blocks that store attachment IDs: Image, Gallery, Cover,
   Media & Text, File, Audio, and Video.
 * Featured images stored with WordPress core `_thumbnail_id` metadata.
 * Navigation menu custom URLs that exactly match the original media URL or a generated
   image-size URL.
 * WordPress Site Icon and Site Logo settings.
 * Active theme Custom Logo, Header Image, and Background Image settings, including
   generated image-size URL variants where applicable.

Scan results include the post ID for content references to make follow-up checks
easier.

The results are advisory. A result of «no references found» does not prove that 
a file is unused. Themes, page builders, custom database tables, external systems,
custom code, or plugin-specific storage can reference media in other ways.

#### Privacy

Media Reference Inspector does not send data to external services and does not add
tracking or analytics. It stores no plugin settings or scan history.

## Installasjon

 1. Upload the `media-reference-inspector` folder to `/wp-content/plugins/`, or install
    the ZIP through Plugins > Add New > Upload Plugin.
 2. Activate Media Reference Inspector.
 3. Go to Media > Media References.
 4. Choose a media item and select «Find References».

## Ofte stilte spørsmål

### Does this plugin delete media files?

No. The plugin is intentionally read-only. It does not delete, detach, rename, replace,
or modify media.

### Does «no references found» mean the file is safe to delete?

No. The plugin checks a focused set of standard WordPress locations. Custom builders,
plugins, themes, custom tables, external applications, and custom code may store
references elsewhere.

### Which WordPress blocks are detected by attachment ID?

Version 1.1.0 recognizes the core Image, Gallery, Cover, Media & Text, File, Audio,
and Video blocks when their saved block attributes reference the selected Media 
Library item.

### Does the plugin detect resized image URLs?

Yes. For image attachments, version 1.1.0 also checks URLs for generated image sizes
recorded in WordPress attachment metadata, in addition to the main attachment URL.

### Does the plugin use an external service or API?

No. All checks run locally in the WordPress admin area against the site’s own WordPress
data.

### Who can use the scanner?

Version 1.1.0 requires the `manage_options` capability because scan results can 
reveal references to content that is not publicly visible.

### Does uninstalling the plugin remove anything?

The plugin stores no settings or scan history, so there is no plugin data to remove.

## Vurderinger

Det er ingen omtaler av denne utvidelsen.

## Bidragsytere og utviklere

«Media Reference Inspector» er programvare med åpen kildekode. Følgende personer
har bidratt til denne utvidelsen:

Bidragsytere

 *   [ rejoyan9009 ](https://profiles.wordpress.org/rejoyan9009/)

[Oversett «Media Reference Inspector» til ditt språk.](https://translate.wordpress.org/projects/wp-plugins/media-reference-inspector)

### Interessert i utvikling?

[Bla gjennom koden](https://plugins.trac.wordpress.org/browser/media-reference-inspector/),
sjekk ut [SVN-repositoriet](https://plugins.svn.wordpress.org/media-reference-inspector/),
eller abonner på [utviklingsloggen](https://plugins.trac.wordpress.org/log/media-reference-inspector/)
med [RSS](https://plugins.trac.wordpress.org/log/media-reference-inspector/?limit=100&mode=stop_on_copy&format=rss).

## Endringslogg

#### 1.1.0

 * Added detection for generated image-size URLs recorded in WordPress attachment
   metadata, including HTTP/HTTPS URL variants.
 * Added attachment-ID-aware detection for core Image, Gallery, Cover, Media & Text,
   File, Audio, and Video blocks.
 * Extended navigation menu, header image, and background image checks to recognize
   generated image-size URL variants.
 * Added post IDs to content-reference labels for faster follow-up checks.
 * Preserved the plugin’s read-only behavior, existing security checks, and existing
   standard WordPress reference checks.

#### 1.0.2

 * Restructured direct database reads so prepared SQL is passed directly to the 
   query methods, satisfying Plugin Check prepared-SQL analysis.
 * Read search and pagination values through validated PHP input filters, removing
   false-positive nonce warnings for read-only navigation.
 * Kept nonce verification on attachment scan actions and preserved all existing
   security, responsive-layout, and accessibility behavior.

#### 1.0.1

 * Fixed media-list layout on narrow screens and browsers using a desktop-sized 
   mobile viewport.
 * Prevented the search form and Find References buttons from clipping or overlapping
   content.
 * Added a compact responsive card layout while preserving accessible table semantics.
 * Bumped the asset version to refresh cached admin CSS.

#### 1.0.0

 * Initial release.
 * Added read-only media reference checks for post content, excerpts, featured images,
   menu URLs, Site Icon, Site Logo, Custom Logo, Header Image, and Background Image.
 * Added nonce-protected individual scans and administrator capability checks.
 * Added explicit warnings that an empty result is not proof that a media file is
   unused.
 * Added responsive admin tables, horizontal pagination, accessible action labels,
   and a file-type fallback for media without generated previews.

## Meta

 *  Versjon **1.1.0**
 *  Sist oppdatert **23 timer siden**
 *  Aktive installasjoner **Færre enn 10**
 *  WordPress-versjon ** 6.2 eller nyere **
 *  Testet opp til **7.0.4**
 *  PHP-versjon ** 7.4 eller nyere **
 *  Språk
 * [English (US)](https://wordpress.org/plugins/media-reference-inspector/)
 * Stikkord
 * [Admin Tools](https://nb.wordpress.org/plugins/tags/admin-tools/)[attachments](https://nb.wordpress.org/plugins/tags/attachments/)
   [media library](https://nb.wordpress.org/plugins/tags/media-library/)[media usage](https://nb.wordpress.org/plugins/tags/media-usage/)
   [references](https://nb.wordpress.org/plugins/tags/references/)
 *  [Avansert visning](https://nb.wordpress.org/plugins/media-reference-inspector/advanced/)

## Vurderinger

No reviews have been submitted yet.

[Din omtale](https://wordpress.org/support/plugin/media-reference-inspector/reviews/#new-post)

[Se alle omtalene](https://wordpress.org/support/plugin/media-reference-inspector/reviews/)

## Bidragsytere

 *   [ rejoyan9009 ](https://profiles.wordpress.org/rejoyan9009/)

## Brukerstøtte

Har du noe å si? Trenger du hjelp?

 [Vis brukerstøtteforumet](https://wordpress.org/support/plugin/media-reference-inspector/)