sandywp / plugins / optimization-detective

Optimization Detective

4.3 out of 5 stars. 4.3 3 reviews

Provides a framework for leveraging real user metrics to detect optimizations for improving page performance.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v1.0.0-beta7 60,000+ installs WP 6.9+ PHP 7.4+

your-sandbox.sandywp.com/wp-admin
Optimization Detective running inside a SandyWP sandbox

About this plugin

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.

Questions

Where can I submit my plugin feedback?

Feedback is encouraged and much appreciated, especially since this plugin may contain future WordPress core features. If you have suggestions or requests for new features, you can submit them as an issue in the WordPress Performance Team’s GitHub repository. If you need help with troubleshooting or have a question about the plugin, please create a new topic on our support forum.

Where can I report security bugs?

The Performance team and WordPress community take security bugs seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.

To report a security issue, please visit the WordPress HackerOne program.

How can I contribute to the plugin?

Contributions are always welcome! Learn more about how to get involved in the Core Performance Team Handbook.

The plugin source code is located in the WordPress/performance repo on GitHub.

4.3

3 reviews

  • 5 ★ 2
  • 4 ★ 0
  • 3 ★ 1
  • 2 ★ 0
  • 1 ★ 0

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

  • AMP

    3.8 · 400K+ installs

    An easier path to great Page Experience for everyone. Powered by AMP.

  • Performance Lab

    4.3 · 100K+ installs

    Performance plugin from the WordPress Performance Team, which is a collection of standalone performance features.

  • Image Prioritizer

    5.0 · 40K+ installs

    Prioritizes the loading of images and videos based on how they appear to actual visitors: adds fetchpriority, preloads,…

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.