Title: YEP: Optimize YouTube Embeds
Author: Webamator
Published: <strong>June 3, 2019</strong>
Last modified: May 22, 2026

---

Search plugins

![](https://ps.w.org/yep-youtube-embed/assets/banner-772x250.png?rev=2099528)

![](https://ps.w.org/yep-youtube-embed/assets/icon-256x256.png?rev=2099556)

# YEP: Optimize YouTube Embeds

 By [Webamator](https://profiles.wordpress.org/webamator/)

[Download](https://downloads.wordpress.org/plugin/yep-youtube-embed.1.1.3.zip)

 * [Details](https://en-ca.wordpress.org/plugins/yep-youtube-embed/#description)
 * [Reviews](https://en-ca.wordpress.org/plugins/yep-youtube-embed/#reviews)
 *  [Installation](https://en-ca.wordpress.org/plugins/yep-youtube-embed/#installation)
 * [Development](https://en-ca.wordpress.org/plugins/yep-youtube-embed/#developers)

 [Support](https://wordpress.org/support/plugin/yep-youtube-embed/)

## Description

YouTube iframe embeds often load many unnecessary resources, which slows down your
page. YEP: Optimize YouTube Embeds is a lightweight WordPress plugin that replaces
YouTube iframes with a clickable preview image.
 The actual video loads only when
the user clicks the play button, improving page load times and reducing initial 
page size.

### External services

This plugin uses the external YouTube thumbnail service (https://i.ytimg.com) to
display preview images of YouTube videos.
 When a page with a YouTube embed is loaded,
the plugin requests the thumbnail image directly from YouTube servers. No personal
data is sent from your site to YouTube, only the video ID (already public in the
YouTube URL).

Privacy Policy: https://policies.google.com/privacy
 Terms of Service: https://www.
youtube.com/t/terms

## Screenshots

[⌊screenshot-1.png - Plugin settings page in WordPress admin.⌉⌊screenshot-1.png -
Plugin settings page in WordPress admin.⌉[

screenshot-1.png – Plugin settings page in WordPress admin.

[⌊screenshot-2.png - Example of a YouTube embed before and after the plugin.⌉⌊screenshot-
2.png - Example of a YouTube embed before and after the plugin.⌉[

screenshot-2.png – Example of a YouTube embed before and after the plugin.

## Installation

Installation via WP Dashboard is very easy. Just use the ‘Plugins’ -> ‘Add New’ 
screen, put “YEP: Optimize YouTube Embeds” in the search form and click “Install
Now”. Manual installation via FTP is very straightforward as well: 1. Upload the
plugin files to the /wp-content/plugins/ directory. 2. Activate the plugin through
the ‘Plugins’ screen in WordPress. 3. Use the ‘Settings’ -> ‘YouTube Embed’ menu
to change default options. 4.1 Just insert Youtube URL in post (example https://
www.youtube.com/watch?v=5Fv19KVVya8) 4.2 Or use shortcode (example [yep_youtube 
width=”XXX” height=”XXX” nocookie=”0″ controls=”1″ start=”03:45″]5Fv19KVVya8[/yep_youtube])

## FAQ

### Does this plugin guarantee a 100% Google PageSpeed score?

This plugin only improves PageSpeed for pages with YouTube videos. If your page 
already scores 100% without videos, this plugin will maintain that score. Remember,
to achieve 100% you need a fast theme, proper caching, image optimization, and other
performance tweaks.

### Is this plugin responsive?

Yes. By default (shortcodes without “width” and “height” attributes) it is responsive.

### Can I contribute translations for this plugin?

Yes. You can contribute via the [plugin page on my blog](https://www.helper-wp.com/plugins/youtube-embed-plugin-wordpress/)
or [create a new topic on the wordpress.org forum](https://wordpress.org/support/plugin/yep-youtube-embed/)
or [help improve the translation](https://translate.wordpress.org/projects/wp-plugins/yep-youtube-embed/).

### I found a bug

Please report it via the [Plugin page on my blog](https://www.helper-wp.com/plugins/youtube-embed-plugin-wordpress/),
[leave a comment in a post about YEP: Optimize YouTube Embeds](https://wordpress.org/plugins/yep-youtube-embed/)
or [create a new topic on the wordpress.org forum](https://wordpress.org/support/plugin/yep-youtube-embed/).

### I would like a feature added

You can contact me. You can use the [Plugin page on my blog](https://www.helper-wp.com/plugins/youtube-embed-plugin-wordpress/).
If you wish some premium feature, you can [hire me on Upwork](https://www.upwork.com/freelancers/~01be316f1125fbe965).
In this case mark your message please, for example “premium YEP for WP”.

### I want to help

 * Report any bugs you find
 * [Confirm compatibility with your WP version on wordpress.org](https://wordpress.org/plugins/yep-youtube-embed/)
 * [Rate the plugin on wordpress.org](https://wordpress.org/plugins/yep-youtube-embed/)
 * [Help improve translations](https://translate.wordpress.org/projects/wp-plugins/yep-youtube-embed/)

## Reviews

![](https://secure.gravatar.com/avatar/e59ff7ad2eaba60082c06a24c1dfd006ce20ce128849b41130827fef91bd15a6?
s=60&d=retro&r=g)

### 󠀁[Top plugin!](https://wordpress.org/support/topic/top-plugin-295/)󠁿

 [ncschulze](https://profiles.wordpress.org/ncschulze/) February 3, 2021

Useful plugin to help the website get good Google Pagespeed despite embedded Youtube
videos.

![](https://secure.gravatar.com/avatar/54ce28728b83be054ba5227922f7044740defec3db380f86a87640f538536bad?
s=60&d=retro&r=g)

### 󠀁[Best Youtube Embed ever](https://wordpress.org/support/topic/best-youtube-embed-ever/)󠁿

 [windantara](https://profiles.wordpress.org/windantara/) May 22, 2020

i hope you always update if needed

![](https://secure.gravatar.com/avatar/b7f76f2217e4726f2eb56a42d7a5365c109690799a99613ffd9720c7a9da149f?
s=60&d=retro&r=g)

### 󠀁[Awesome, it did the trick in the best way](https://wordpress.org/support/topic/awesome-it-did-the-trick-in-the-best-way/)󠁿

 [alaaalshamey](https://profiles.wordpress.org/alaaalshamey/) April 14, 2020

Awesome, it did the trick in the best way

![](https://secure.gravatar.com/avatar/d29c3693af6b33bc343806edeb0f46d178e69c9ffe69e80df49786699ea83925?
s=60&d=retro&r=g)

### 󠀁[Awesome and simple plugin that gets the job done!](https://wordpress.org/support/topic/awesome-and-simple-plugin-that-gets-the-job-done/)󠁿

 [artembychkov](https://profiles.wordpress.org/artembychkov/) September 9, 2019

This cute little plugin solved my issue with Google PageSpeed for all pages that
have YouTube videos! Get 98-100 performance scores now!

![](https://secure.gravatar.com/avatar/cded472020e6ea16411d625ffa1f9c76fb8a32f6286be95a663287dfa9a38760?
s=60&d=retro&r=g)

### 󠀁[This plugin works better than WP YouTube Lyte](https://wordpress.org/support/topic/this-plugin-works-better-than-wp-youtube-lyte/)󠁿

 [baksteendegeweldige](https://profiles.wordpress.org/baksteendegeweldige/) August
9, 2019

This plugin does it job better than WP YouTube Lyte. If you use WP YouTube Lyte,
Google pagespeed says you need to remove or defer the youtube css www-player-sprite-
mode… If you use this plugin everything runs smooth. If you use autoptimize together
with this plugin you need to exclude yep.js from being optimized by autoptimize

![](https://secure.gravatar.com/avatar/e4d4beba0be70c8499be0c376c3424896ef1dbb719782ff17f126cc6726667fa?
s=60&d=retro&r=g)

### 󠀁[“5 stars”](https://wordpress.org/support/topic/5-stars-343/)󠁿

 [svetlanadoroshina](https://profiles.wordpress.org/svetlanadoroshina/) July 12,
2019

Real helpfull. Thank you!

 [ Read all 6 reviews ](https://wordpress.org/support/plugin/yep-youtube-embed/reviews/)

## Contributors & Developers

“YEP: Optimize YouTube Embeds” is open source software. The following people have
contributed to this plugin.

Contributors

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

“YEP: Optimize YouTube Embeds” has been translated into 2 locales. Thank you to 
[the translators](https://translate.wordpress.org/projects/wp-plugins/yep-youtube-embed/contributors)
for their contributions.

[Translate “YEP: Optimize YouTube Embeds” into your language.](https://translate.wordpress.org/projects/wp-plugins/yep-youtube-embed)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/yep-youtube-embed/),
check out the [SVN repository](https://plugins.svn.wordpress.org/yep-youtube-embed/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/yep-youtube-embed/)
by [RSS](https://plugins.trac.wordpress.org/log/yep-youtube-embed/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.3

 * NEW: tested for WP 7.0
 * IMPROVED: plugin settings

#### 1.1.2

 * NEW: added support for alt and title attributes in the shortcode (applied to 
   the preview image).

#### 1.1.1

 * FIX: minor fixes and improvements (e.g., better handling of old embeds)
 * IMPROVED: compatibility checks and admin notices

#### 1.1.0

 * NEW: tested for WP 6.8
 * NEW: Gutenberg compatibility
 * IMPROVED: Enhanced sanitization and escaping for improved security
 * IMPROVED: Refactored code for better performance and readability
 * SECURITY: Enhanced sanitization and escaping for safer output.

#### 1.0.4

 * NEW: tested for WP 5.3.2
 * FIX: rename classes and translations

#### 1.0.3

 * Solved small JS issue (addEventListener).

#### 1.0.2

 * Added shortcode.

#### 1.0.1

 * Write simple plugin.

## Meta

 *  Version **1.1.3**
 *  Last updated: **5 months ago**
 *  Active installations: **80+**
 *  WordPress Version: ** 6.0 or higher **
 *  Tested up to: **7.0.7**
 *  PHP Version: ** 7.4 or higher **
 *  Language:
 * [English (US)](https://wordpress.org/plugins/yep-youtube-embed/), [Russian](https://ru.wordpress.org/plugins/yep-youtube-embed/),
   and [Ukrainian](https://uk.wordpress.org/plugins/yep-youtube-embed/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/yep-youtube-embed)
 * Tags:
 * [lazy load](https://en-ca.wordpress.org/plugins/tags/lazy-load/)[Optimize](https://en-ca.wordpress.org/plugins/tags/optimize/)
   [performance](https://en-ca.wordpress.org/plugins/tags/performance/)[video](https://en-ca.wordpress.org/plugins/tags/video/)
   [YouTube embed](https://en-ca.wordpress.org/plugins/tags/youtube-embed/)
 *  [Advanced View](https://en-ca.wordpress.org/plugins/yep-youtube-embed/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  6 5-star reviews     ](https://wordpress.org/support/plugin/yep-youtube-embed/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/yep-youtube-embed/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/yep-youtube-embed/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/yep-youtube-embed/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/yep-youtube-embed/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/yep-youtube-embed/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/yep-youtube-embed/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/yep-youtube-embed/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/donate/?hosted_button_id=E3PFX4WXM3BMN)