Embed Optimizer
Optimizes the performance of embeds through lazy-loading, adding dns-prefetch links, and reserving space to reduce layout shifts.
Solid choice
Embed Optimizer is a solid plugin choice in 2026, with a few things worth checking first. It runs on 50K+ sites, is rated 3/5 and was last updated 1 month ago, and scores 71/100 on our health check.
- Proven at scale on 50K+ active sites
- Tested with the latest WordPress (7.1)
- Momentum — downloads up 16.4% vs the previous 30 days
- Very few reviews so far
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Embed Optimizer stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| Embeds | #6 |
| optimization-detective | #3 |
| performance | #56 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 3 from 2 reviews
About Embed Optimizer
From the official readme · v1.0.0-beta6Description
This plugin’s purpose is to optimize the performance of embeds in WordPress, such as Tweets, YouTube videos, TikToks, and others.
The current optimizations include:
- Lazy loading embeds just before they come into view.
- Adding dns-prefetch links for embeds in the initial viewport.
- Reserving space for embeds that resize to reduce layout shifting.
Lazy loading embeds improves performance because embeds are generally very resource-intensive, so lazy loading them ensures that they don’t compete with resources when the page is loading. Lazy loading of IFRAME-based embeds is handled simply by adding the loading=lazy attribute. Lazy loading embeds that include SCRIPT tags is handled by using an Intersection Observer to watch for when the embed’s FIGURE container is going to enter the viewport, and then it dynamically inserts the SCRIPT tag.
This plugin also recommends that you install and activate the Optimization Detective plugin, which unlocks several optimizations beyond just lazy loading. Without Optimization Detective, lazy loading can actually degrade performance when an embed is positioned in the initial viewport. This is because lazy loading such viewport-initial elements can degrade LCP since rendering is delayed by the logic to determine whether the element is visible. This is why WordPress Core tries its best to avoid lazy loading IMG tags which appear in the initial viewport, although the server-side heuristics aren’t perfect. This is where Optimization Detective comes in since it detects whether an embed appears in any breakpoint-specific viewports, like mobile, tablet, and desktop. (See also the Image Prioritizer plugin which extends Optimization Detective to ensure lazy loading is correctly applied based on whether an IMG is in the initial viewport.)
When Optimization Detective is active, it will start keeping track of which embeds appear in the initial viewport based on actual visits to your site. With this information in hand, Embed Optimizer will then avoid lazy loading embeds which appear in the initial viewport. Furthermore, for such above-the-fold embeds Embed Optimizer will also add dns-prefetch links for resources known to be used by those embeds. For example, if a YouTube embed appears in the initial viewport, Embed Optimizer with Optimization Detective will omit loading=lazy while also adding a dns-prefetch link for https://i.ytimg.com which is the domain from which YouTube video poster images are served. Such links cause the initial-viewport embeds to load even faster.
The other major feature in Embed Optimizer enabled by Optimization Detective is the reduction of layout shifts caused by embeds that resize when they load. This is seen commonly in WordPress post embeds or Tweet embeds. Embed Optimizer keeps track of the resized heights of these embeds. With these resized heights stored, Embed Optimizer sets the appropriate height on the container FIGURE element as the viewport-specific min-height so that when the embed loads it does not cause a layout shift.
Since Optimization Detective relies on page visits to learn how the page is laid out, you’ll need to wait until you have visits from a mobile and desktop device to start seeing optimizations applied. Also, note that Optimization Detective does not apply optimizations by default for logged-in admin users.
Please note that the optimizations are intended to apply to Embed blocks. So if you do not see optimizations applied, make sure that your embeds are not inside a Classic Block.
Your site must have the REST API accessible to unauthenticated frontend visitors since this is how metrics are collected about how a page should be optimized. There are currently no settings and no user interface for this plugin since it is designed to work without any configuration.
Installation
Installation from within WordPress
- Visit Plugins > Add New.
- Search for Embed Optimizer.
- Install and activate the Embed Optimizer plugin.
Manual installation
- Upload the entire
embed-optimizerfolder to the/wp-content/plugins/directory. - Visit Plugins.
- Activate the Embed Optimizer plugin.
Frequently asked 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.
Changelog
1.0.0-beta6
Enhancements
- Add
declare( strict_types = 1 )to all PHP files. (2424) - Bump minimum required WordPress version to 6.9. (2517)
- Bump minimum required PHP version from 7.2 to 7.4. (2469)
- Improve code quality with native property types and stricter static analysis. (1729)
1.0.0-beta5
Bug Fixes
- Switch initial viewport embeds from preconnect to dns-prefetch links. (2256)
1.0.0-beta4
Security
- Add escaping for ID selector in styles added to reduce layout shifts. This fixes an XSS security vulnerability which required an authenticated user with at least a contributor role. Props to duc193 for responsible disclosure. (2397)
1.0.0-beta3
Enhancements
- Add URL Metric mutation helpers to extension initialization API. (1951)
- Improve construction of inline scripts with
sourceURL, hardened JSON encoding, and exporting JSON in separate script. (2169)
1.0.0-beta2
Enhancements
- 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)
1.0.0-beta1
Enhancements
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Embed Optimizer alternatives
All Embeds plugins →FAQ
Embed Optimizer: quick answers
Straight answers, pulled from live WordPress.org data.
Live data from WordPress.org · checked Sep 26, 2026
Is Embed Optimizer free?
Yes. Embed Optimizer is free to download and use from the official WordPress.org plugin directory.
Is Embed Optimizer safe to use in 2026?
Embed Optimizer is a solid plugin choice in 2026, with a few things worth checking first. It runs on 50K+ sites, is rated 3/5 and was last updated 1 month ago, and scores 71/100 on our health check.
How many websites use Embed Optimizer?
Embed Optimizer is active on 50K+ WordPress websites and has been downloaded 421,414 times since it launched in March 2024. It was downloaded 23,181 times in the last 30 days.
Does Embed Optimizer work with WordPress 7.1?
Yes. The developer has tested Embed Optimizer up to WordPress 7.1.2, the latest release. It requires WordPress 6.9 or newer.
What PHP version does Embed Optimizer need?
Embed Optimizer requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Embed Optimizer last updated?
The latest version, 1.0.0-beta6, was released on August 26, 2026 (1 month ago).
Who makes Embed Optimizer?
Embed Optimizer is developed and maintained by WordPress Performance Team.
What are the best alternatives to Embed Optimizer?
The most popular alternatives to Embed Optimizer are Disable Embeds (10K+ installs), Simple Like Page (10K+ installs) and Responsive Video Embeds (2K+ installs).
Powered by PageForge
Want thousands of pages that rank like these? Build them in an afternoon.
This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.
- CSV, Google Sheets & API data sources
- AI content, schema & internal links per page
- Works with Elementor, Gutenberg, Yoast & Rank Math
- Free on WordPress.org — no credit card