Add audit tool to identify media attachments missing local original files

Ouverte
#1,231 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
php, wordpress
Domaine
backend

Piste de recherche

Start by locating the Optimole admin settings code and the code that reads WordPress Media Library attachment metadata and local upload paths. Check how existing settings tools report results and whether they support exports. Done means a bulk scan identifies missing local originals, shows a summary and detailed list, and exports the missing paths or IDs.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

customer report feature-request-triage

Impact: 65 · Confidence: 90 · Complexity: 50

Description

Problem: When image offloading was enabled or plugins were disconnected, site owners who wish to restore local files or check media library health have no automated way to determine which Media Library entries are missing local physical files in /wp-content/uploads/.

Desired Behavior: Provide a bulk diagnostic check/audit tool in Optimole settings (or Media Library) that scans Media Library attachments, verifies local file existence on the server, and outputs a list/CSV of missing files to streamline targeted backup restoration.

Acceptance Criteria:

  • A scanner tool in Optimole admin settings that checks attachment metadata against server disk paths.
  • Displays a summary and detailed report of attachments whose local original files return 404 / file not found.
  • Allows exporting the list of missing file paths/IDs to assist with selective manual or backup restoration.

Customer Context

The customer has offloaded images that were deleted from cloud storage after account expiration. They have standalone image backups but need a quick automated method to figure out which specific image files are missing locally so they don't have to check thousands of product images manually.

Root Cause Analysis

The customer needs to repair broken image paths on their site by restoring only the missing files from local backups. Optimole currently lacks any built-in diagnostic scan or missing-file inventory tool to check WordPress Media Library attachments against local physical disk availability. Site owners must manually inspect file paths or use third-party tools to identify missing originals.


Source: HelpScout #3344740257
Generated by feature-request-triage workflow (ID: feature-request-triage_6aee4e0852bbc5.14091123)

Langage dominant
PHP
Étoiles
74
Forks
14
Merge moyen
1 j 20 h
PR mergées (30 j)
39

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Codeinwp/optimole-wp

Toutes les issues de Codeinwp/optimole-wp

Issues similaires

Plus d'issues PHP

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.