Optimization Detective
Provides a framework for leveraging real user metrics to detect optimizations for improving page performance.
Choix solide
Optimization Detective is a solid plugin choice in 2026, with a few things worth checking first. It runs on 50K+ sites, is rated 4.3/5 and was last updated 3 months ago, and scores 69/100 on our health check.
- Prouvé à grande échelle sur plus de 50 000 sites actifs
- Testé avec le dernier WordPress (7.1)
- 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 supportTéléchargements quotidiens
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 Optimization Detective stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| optimisation | #5 |
| performance | #46 |
| rum | #1 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★★★★★★ 4.3 from 3 reviews
About Optimization Detective
From the official readme · v1.0.0-beta7Description
This plugin captures real user metrics about what elements are displayed on the page across a variety of device form factors (e.g. desktop, tablet, and phone) in order to apply loading optimizations which are not possible with WordPress’s current server-side heuristics.
This plugin is a framework dependency which does not provide optimization functionality on its own. For that, please install the Image Prioritizer and Embed Optimizer dependent plugins (among others to come from the WordPress Core Performance team). There are currently no settings and no user interface for this plugin since it is designed to work without any configuration.
Your site must currently have the REST API accessible to unauthenticated frontend visitors since this is how real user metrics are collected about pages on your site; nevertheless, exploration is underway for providing alternative mechanisms for collecting the metrics. Also, please note that no metrics are currently collected from Safari since it does not yet support the Largest Contentful Paint metric, but support for this Core Web Vitals metric is coming this year via Interop 2025.
Please refer to the full plugin documentation for a technical introduction, filter/action hooks, and extensions that show use cases and examples. You can also watch the talk from WordCamp Asia 2025: Boosting Performance with Optimization Detective.
Installation
Installation from the directory within WordPress
- Visit Plugins > Add New in the WordPress Admin.
- Search for Optimization Detective.
- Install and activate the Optimization Detective plugin.
Installation manuelle
- Download the plugin ZIP from WordPress.org or, after following the Getting Started instructions, create a ZIP build from a clone of the GitHub repo via
npm run build:plugin:optimization-detective --env zip=true. - Visit Plugins > Add New Plugin in the WordPress Admin.
- Click Upload Plugin
- Select the
optimization-detective.zipfile on your system from step 1 and click Install Now. - Click the Active Plugin button.
Journal de modifications
Image loading optimizations have been moved to a new dependent plugin called Image Prioritizer. The Optimization Detective plugin now serves as a dependency.
1.0.0-beta7
Améliorations
- Ajoutez
declare( strict_types = 1 )à tous les fichiers PHP. (2424) - Bump Minimum requis WordPress Version à 6.9. (2517)
- Bump minimum requis Version PHP de 7,2 à 7,4. (2469)
- Améliorez la qualité du code avec des types de propriétés natives et une analyse statique plus stricte. (1729)
- Bump the bundled web-vitals library from 5.1.0 to 6.1.0, including its 6.0.0 major release. (2606, 2629)
- Ship the source maps for the bundled web-vitals library, which it began publishing in 6.0.0.
- Move URL Metrics storage HMAC validation into the REST endpoint callback so it runs once all parameters have been validated and sanitized, returning a
rest_invalid_paramerror. (2436) - Remove the deprecated constants along with the
deprecated.phpfile that contained them.
1.0.0-beta6
La sécurité
- Add validation of the SCRIPT element containing the detection args JSON. This fixes a DOM clobbering vulnerability in which an injected element with a colliding
idcould shadow the script and cause an arbitrary module to be imported, which required an authenticated user with at least a contributor role. Props to Asaf Mozes (amosec) for responsible disclosure.
1.0.0-beta5
Correction de bugs
- Prevent fatal error in
od_get_current_url_metrics_etag()when$wp_query->postsisnull. (2347)
Améliorations
- Add support for dns-prefetch links. (2256)
1.0.0-beta4
Améliorations
- Add URL Metric mutation helpers to extension initialization API. (1951)
- Add gzip compression for URL metrics using Compression Streams API. (1959)
- Allow disabling timestamp-based freshness checks by using negative TTL values. (1940)
- Bump web-vitals from 5.0.3 to 5.1.0. (2116)
- Change default garbage collection TTL of
od_url_metricsposts from 1 month to 3 months and add the filter to customize expiration. (1950) - Enhance Optimization Detective meta generator tag with all disabled reasons. (1979)
- Amend URL metrics to the generator meta tag content. (1954)
- Improve construction of inline scripts with
sourceURL, hardened JSON encoding, and exporting JSON in separate script. (2169) - Improve discoverability and user guidance for Optimization Detective extensions. (2261)
- Remove deprecated
url_metrics_group_collectionand class aliases and bump required OD version in Image Prioritizer. (1943)
Correction de bugs
- Avoid possible error when reading groups in debug mode. (2108)
- Delay loading detect module until page is loaded and idle. (2017)
- Ensure URL Metric is initially constructed with all elements prior to initializing extensions. (1968)
- Short-circuit detection when page is opened in background tab since web-vitals.js will not report LCP. (1927)
1.0.0-beta3
Améliorations
- Fire actions before and after Optimization Detective processes a document. (1919)
- Update
OD_HTML_Tag_Processor::next_tag()to allow$queryarg and prepare to skip visiting tag closers by default. (1872) - Expose the logging functions to client-side extensions and automatically account for the value of
isDebug. (1895) - Update URL Metric storage REST API endpoint to return status code
423 Lockedinstead of403 Forbidden. (1863) - De-duplicate logic between REST API and URL Metrics post type. (1867)
Correction de bugs
- Fix URL encoding in Link HTTP response header. (1907)
- Fix triggering post update actions after storing a URL Metric and refactor REST API endpoint logic into class. (1865)
- Fix unpredictable LCP element being identified in a URL Metric Group. (1903)
- Handle missing Web Crypto API in non-HTTPS contexts when generating the already-submitted
sessionStoragekey. (1911)
1.0.0-beta2
Améliorations
- Account for 64 KiB limit for sending beacon data. (1851)
- Add post ID for the
od_url_metricspost to the tag visitor context. (1847) - Change minimum viewport width to be exclusive whereas the maximum width remains inclusive. (1839)
- Disable URL Metric storage locking by default for administrators. (1835)
- Include active plugins in ETag data and increase default freshness TTL from 1 day to 1 week. (1854)
- Make ETag a required property of the URL Metric. (1824)
- Use CSS range syntax in media queries. (1833)
- Use
IFRAMEto display HTML responses for REST API storage request failures in Site Health test. (1849)
Correction de bugs
- Prevent URL in
Linkheader from including invalid characters. (1802) - Prevent optimizing post previews by default. (1848)
Documentation
- Improve Optimization Detective documentation. (1782)
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.
Best Optimization Detective alternatives
All optimization plugins →FAQ
Optimization Detective: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Optimization Detective free?
Yes. Optimization Detective is free to download and use from the official WordPress.org plugin directory.
Is Optimization Detective safe to use in 2026?
Optimization Detective is a solid plugin choice in 2026, with a few things worth checking first. It runs on 50K+ sites, is rated 4.3/5 and was last updated 3 months ago, and scores 69/100 on our health check.
How many websites use Optimization Detective?
Optimization Detective is active on 50K+ WordPress websites and has been downloaded 520,649 times since it launched in March 2024. It was downloaded 10,645 times in the last 30 days.
Does Optimization Detective work with WordPress 7.1?
Yes. The developer has tested Optimization Detective up to WordPress 7.1.5, the latest release. It requires WordPress 6.9 or newer.
What PHP version does Optimization Detective need?
Optimization Detective requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Optimization Detective last updated?
The latest version, 1.0.0-beta7, was released on August 26, 2026 (3 months ago).
Who makes Optimization Detective?
Optimization Detective is developed and maintained by WordPress Performance Team.
What are the best alternatives to Optimization Detective?
The most popular alternatives to Optimization Detective are AMP (300K+ installs), Performance Lab (100K+ installs) and CompressX (40K+ 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
