84% responsive-youtube-vimeo-popup

Code Review | WP Video Popup – WordPress Video Lightbox for YouTube & Vimeo

WordPress plugin WP Video Popup – WordPress Video Lightbox for YouTube & Vimeo scored84%from 54 tests.

About plugin

  • Plugin page: responsive-youtub...
  • Plugin version: 2.9.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 14, 2016
  • Latest release: Dec 1, 2023
  • Number of updates: 95
  • Update frequency: every 27.4 days
  • Top authors: davidvongries (100%)

Code review

54 tests

User reviews

37 reviews

Install metrics

20,000+ active /227,213 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by WP Video Popup – WordPress Video Lightbox for YouTube & Vimeo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0944.53 ▲6.53
Dashboard /wp-admin3.40 ▲0.0549.82 ▼9.81
Posts /wp-admin/edit.php3.51 ▲0.1552.15 ▲5.82
Add New Post /wp-admin/post-new.php6.00 ▲0.1096.20 ▲3.24
Media Library /wp-admin/upload.php3.32 ▲0.0936.79 ▲2.18
WP Video Popup /wp-admin/options-general.php?page=wp-video-popup3.3135.31

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
wp_video_popup_install_date
widget_recent-posts
widget_recent-comments
wp_video_popup_plugin_activated
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

WP Video Popup – WordPress Video Lightbox for YouTube & Vimeo: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲18213.74 ▼0.618.68 ▲6.9131.34 ▼6.83
Dashboard /wp-admin2,251 ▲745.55 ▼0.1292.08 ▼6.4686.38 ▲42.03
Posts /wp-admin/edit.php2,160 ▲602.15 ▲0.2138.80 ▲0.1033.87 ▼0.74
Add New Post /wp-admin/post-new.php1,587 ▲5825.17 ▲1.94753.05 ▲161.1853.66 ▲6.16
Media Library /wp-admin/upload.php1,456 ▲534.12 ▼0.0798.68 ▲0.8884.68 ▲42.38
WP Video Popup /wp-admin/options-general.php?page=wp-video-popup1,3812.3447.6854.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/responsive-youtube-vimeo-popup/templates/metaboxes/review.php
    • > /wp-content/plugins/responsive-youtube-vimeo-popup/templates/settings.php
    • > /wp-content/plugins/responsive-youtube-vimeo-popup/inc/settings.php
    • > /wp-content/plugins/responsive-youtube-vimeo-popup/responsive-youtube-vimeo-popup.php
    • > /wp-content/plugins/responsive-youtube-vimeo-popup/inc/init.php
    • > /wp-content/plugins/responsive-youtube-vimeo-popup/inc/class-wp-video-popup-parser.php
    • > /wp-content/plugins/responsive-youtube-vimeo-popup/templates/metaboxes/documentation.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
Please take inspiration from this readme.txt

responsive-youtube-vimeo-popup/responsive-youtube-vimeo-popup.php Passed 13 tests

Analyzing the main PHP file in "WP Video Popup – WordPress Video Lightbox for YouTube & Vimeo" version 2.9.6
89 characters long description:
Add beautiful responsive YouTube & Vimeo Video lightbox popups to your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,399 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS412936611
PHP8201292600
JavaScript44244124
Sass38660
Ruby16154

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity12.50
▷ Minimum class complexity11.00
▷ Maximum class complexity14.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods15100.00%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/wp-video-popup-close.png19.90KB0.59KB▼ 97.05%
assets/img/wp-video-popup-logo-1.png8.94KB4.42KB▼ 50.54%