90% youtube-playlist-thumbs

Code Review | Youtube Playlist Thumbs

WordPress plugin Youtube Playlist Thumbs scored90%from 54 tests.

About plugin

  • Plugin page: youtube-playlist-...
  • Plugin version: 0.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.2.3
  • WordPress version: 6.3.1
  • First release: Feb 25, 2015
  • Latest release: Aug 2, 2015
  • Number of updates: 25
  • Update frequency: every 6.3 days
  • Top authors: jsphstls (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

300+ active /8,317 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.26ms] Passed 4 tests

Analyzing server-side resources used by Youtube Playlist Thumbs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.64 ▼8.91
Dashboard /wp-admin3.31 ▼0.0344.09 ▼14.79
Posts /wp-admin/edit.php3.37 ▲0.0042.46 ▼4.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0090.91 ▼8.69
Media Library /wp-admin/upload.php3.24 ▲0.0034.01 ▼3.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Youtube Playlist Thumbs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.29 ▼1.101.67 ▼0.7443.22 ▲4.69
Dashboard /wp-admin2,206 ▲214.86 ▼1.00106.29 ▼2.6439.83 ▼7.48
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0138.63 ▲5.2333.11 ▼7.40
Add New Post /wp-admin/post-new.php1,523 ▼1923.31 ▲5.25595.17 ▼43.9558.26 ▼6.61
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0494.60 ▼13.6741.22 ▼1.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: shortcode, playlist, video, thumbnails, youtube...

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

"Youtube Playlist Thumbs" version 0.5.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
117 characters long description:
Use the [ypt] shortcode to show a Youtube playlist. Videos within playlist can be triggered by links in page content.

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
There were no executable files found in this plugin207 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21611101
CSS10477
PHP112929

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.31MB with 0.22MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png28.24KB7.99KB▼ 71.70%
assets/screenshot-2.png24.43KB6.27KB▼ 74.33%
assets/screenshot-4.png26.70KB7.72KB▼ 71.10%
assets/screenshot-1.png240.62KB80.60KB▼ 66.50%