73% ultimate-youtube-video-player

Code Review | Ultimate YouTube Video Player

WordPress plugin Ultimate YouTube Video Player scored 73% from 54 tests.

About plugin

  • Plugin page: ultimate-youtube-...
  • Plugin version: 2.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.2
  • WordPress version: 5.9.2
  • First release: Sep 27, 2020
  • Latest release: Jan 2, 2022
  • Number of updates: 55
  • Update frequency: every 8.4 days
  • Top authors: codelizarplugs (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 1,494 total downloads

Benchmarks

Plugin footprint 65% 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.11MB] [CPU: ▼323.68ms] Passed 4 tests

This is a short check of server-side resources used by Ultimate YouTube Video Player
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1355.12 ▼7.84
Dashboard /wp-admin3.54 ▲0.1437.90 ▲0.46
Posts /wp-admin/edit.php3.77 ▲0.1341.29 ▲3.45
Add New Post /wp-admin/post-new.php7.01 ▲0.0493.32 ▼1,284.00
Media Library /wp-admin/upload.php3.43 ▲0.1325.83 ▼3.35
YT Help /wp-admin/admin.php?page=ytv_help3.4025.86
Upgrade To Pro /wp-admin/admin.php?page=ytv_gopro3.4128.80
How to use /wp-admin/admin.php?page=cdlzr_yt_plug3.4023.87
Single YT Video /wp-admin/admin.php?page=ytv_singlevideo3.4330.15
Rich YT Playlist /wp-admin/admin.php?page=ytv_richvideo3.4126.53
YT Settings /wp-admin/admin.php?page=ytv_settings3.4624.54

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 66 new files
Database: 4 new tables, 1 new option
New tables
wp_ytube_themedata
wp_ytube_richpldata
wp_ytube_singviddata
wp_ytube_setting
New WordPress options
widget_cdlzr_yt_video_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate YouTube Video Player
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,829 ▲7515.60 ▲0.015.58 ▼1.382.21 ▼1.08
Dashboard /wp-admin2,955 ▲976.04 ▼0.12132.39 ▼4.32193.56 ▲31.49
Posts /wp-admin/edit.php2,749 ▲583.14 ▼0.2263.10 ▲1.78141.68 ▲1.52
Add New Post /wp-admin/post-new.php1,711 ▼6217.99 ▼3.90397.42 ▼58.19188.87 ▲14.09
Media Library /wp-admin/upload.php1,766 ▲685.54 ▲0.08126.02 ▼25.87237.93 ▼0.64
YT Help /wp-admin/admin.php?page=ytv_help1,2122.8565.27169.12
Upgrade To Pro /wp-admin/admin.php?page=ytv_gopro1,3433.4263.48167.12
How to use /wp-admin/admin.php?page=cdlzr_yt_plug1,1142.8360.74164.21
Single YT Video /wp-admin/admin.php?page=ytv_singlevideo1,4363.3976.56180.97
Rich YT Playlist /wp-admin/admin.php?page=ytv_richvideo1,3953.1877.63193.81
YT Settings /wp-admin/admin.php?page=ytv_settings1,7042.9062.31193.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables detected upon uninstall: 4 tables
    • wp_ytube_singviddata
    • wp_ytube_richpldata
    • wp_ytube_setting
    • wp_ytube_themedata
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_cdlzr_yt_video_widget

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ytv_gopro
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://www.youtube.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots lack descriptions #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in ultimate-youtube-video-player/assets to your readme.txt
You can look at the official readme.txt

ultimate-youtube-video-player/ultimate-youtubevideo.php 77% from 13 tests

The main PHP file in "Ultimate YouTube Video Player" ver. 2.7 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 260 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("ultimate-youtube-video-player.php" instead of "ultimate-youtubevideo.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin11,697 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,445
PHP30209641,400
JavaScript54140508
CSS65033344

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.86
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods37
▷ Static methods3081.08%
▷ Public methods3491.89%
▷ Protected methods00.00%
▷ Private methods38.11%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 compressed PNG files occupy 1.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/help/img2.PNG20.24KB20.27KB0.00%
assets/img/help/img5.PNG19.80KB19.83KB0.00%
assets/img/youtube.png0.34KB0.22KB▼ 35.47%
assets/img/help/img1.PNG40.03KB40.78KB0.00%
assets/img/help/img6.PNG13.49KB13.51KB0.00%