90% yep-youtube-embed

Code Review | Youtube Embed Performance

WordPress plugin Youtube Embed Performance scored90%from 54 tests.

About plugin

  • Plugin page: yep-youtube-embed
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.3-5.3.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2019
  • Latest release: Feb 24, 2020
  • Number of updates: 17
  • Update frequency: every 15.7 days
  • Top authors: webamator (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /1,539 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼0.04ms] Passed 4 tests

An overview of server-side resources used by Youtube Embed Performance
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.0847.08 ▲3.13
Dashboard /wp-admin3.71 ▲0.1557.38 ▲0.95
Posts /wp-admin/edit.php3.76 ▲0.0859.61 ▲6.96
Add New Post /wp-admin/post-new.php6.23 ▲0.0891.32 ▼10.22
Media Library /wp-admin/upload.php3.57 ▲0.0843.13 ▲5.98
WA plugins /wp-admin/admin.php?page=wa-plugins3.5434.54
YouTube Embed /wp-admin/options-general.php?page=yep_youtube_embed3.5444.80
YouTube Embed /wp-admin/admin.php?page=yep_youtube_embed3.5431.85

Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
yep_version
can_compress_scripts
yep_date_install
yep_settings
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Youtube Embed Performance
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.72 ▲0.041.78 ▲0.0142.40 ▼2.97
Dashboard /wp-admin2,227 ▲565.66 ▲0.0385.79 ▼4.4841.08 ▼7.22
Posts /wp-admin/edit.php2,126 ▲262.04 ▲0.0538.24 ▼1.3535.51 ▲1.43
Add New Post /wp-admin/post-new.php1,564 ▲1923.24 ▼0.13651.40 ▼55.5758.74 ▲4.90
Media Library /wp-admin/upload.php1,429 ▲264.20 ▼0.00107.85 ▼0.9347.08 ▲1.55
WA plugins /wp-admin/admin.php?page=wa-plugins7952.0625.0725.58
YouTube Embed /wp-admin/options-general.php?page=yep_youtube_embed9572.0325.4226.42
YouTube Embed /wp-admin/admin.php?page=yep_youtube_embed9602.0322.5228.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png)
The official readme.txt is a good inspiration

yep-youtube-embed/yep-youtube-embed.php Passed 13 tests

"Youtube Embed Performance" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
64 characters long description:
This plugin make your video in publications fast and responsive.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin585 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP317640360
PO File25254171
JavaScript15045
CSS1209

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity5.50
▷ Minimum class complexity4.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png32.61KB15.63KB▼ 52.07%
screenshot-2.png41.41KB20.22KB▼ 51.17%