89% youtube-playlist-player

Code Review | YouTube Playlist Player

WordPress plugin YouTube Playlist Player scored89%from 54 tests.

About plugin

  • Plugin page: youtube-playlist-...
  • Plugin version: 4.6.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Nov 27, 2013
  • Latest release: Oct 26, 2023
  • Number of updates: 69
  • Update frequency: every 52.5 days
  • Top authors: butterflymedia (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active /52,630 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.26ms] Passed 4 tests

This is a short check of server-side resources used by YouTube Playlist Player
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.30 ▲2.57
Dashboard /wp-admin3.38 ▲0.0345.16 ▼15.52
Posts /wp-admin/edit.php3.43 ▲0.0744.54 ▼5.56
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.00 ▲0.16
Media Library /wp-admin/upload.php3.30 ▲0.0734.62 ▼0.12
YouTube Playlist Player /wp-admin/options-general.php?page=ytpp3.2829.88

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 12 new options
New WordPress options

Browser metrics Passed 4 tests

YouTube Playlist Player: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.19 ▼0.341.72 ▼0.1642.49 ▼0.50
Dashboard /wp-admin2,201 ▲205.62 ▼0.1083.02 ▼16.9438.68 ▼0.49
Posts /wp-admin/edit.php2,106 ▲62.01 ▲0.0535.83 ▼1.1833.56 ▼3.92
Add New Post /wp-admin/post-new.php1,531 ▼423.36 ▼1.66631.61 ▲3.5054.81 ▼4.15
Media Library /wp-admin/upload.php1,409 ▲94.19 ▲0.01105.40 ▲5.3344.17 ▲0.75
YouTube Playlist Player /wp-admin/options-general.php?page=ytpp8472.0324.9445.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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


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
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Front-end player #1), #2 (Front-end player #2), #3 (Dashboard), #4 (General Settings), #5 (YouTube API), #6 (Help/Usage)
You can look at the official readme.txt

youtube-playlist-player/youtube-playlist-player.php Passed 13 tests

The main PHP script in "YouTube Playlist Player" version 4.6.9 is automatically included on every request by WordPress
98 characters long description:
Display a YouTube player (with an optional playlist) on any post or page using a simple shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin724 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions10100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 1.36MB with 0.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png82.60KB29.52KB▼ 64.26%
screenshot-4.png68.69KB21.24KB▼ 69.08%
screenshot-3.png101.52KB35.75KB▼ 64.78%
screenshot-5.png51.07KB13.93KB▼ 72.73%
screenshot-2.png519.46KB134.03KB▼ 74.20%