84% youlist

Code Review | YouList - YouTube playlist shortcode

WordPress plugin YouList - YouTube playlist shortcode scored84%from 54 tests.

About plugin

  • Plugin page: youlist
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Jul 16, 2012
  • Latest release: Jan 24, 2013
  • Number of updates: 17
  • Update frequency: every 11.3 days
  • Top authors: birgire (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /19,929 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by YouList - YouTube playlist shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.32 ▲5.70
Dashboard /wp-admin3.31 ▼0.0445.17 ▼11.87
Posts /wp-admin/edit.php3.36 ▲0.0046.64 ▼4.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.21 ▼11.47
Media Library /wp-admin/upload.php3.23 ▲0.0037.56 ▲4.55

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for YouList - YouTube playlist shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.161.59 ▼0.1744.17 ▼0.03
Dashboard /wp-admin2,206 ▲184.85 ▼1.09108.58 ▲2.6941.73 ▼5.11
Posts /wp-admin/edit.php2,089 ▼02.07 ▲0.0139.48 ▼1.9335.00 ▼4.14
Add New Post /wp-admin/post-new.php1,542 ▲2317.97 ▼5.24601.04 ▼32.3252.99 ▲1.14
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0294.92 ▼3.7444.14 ▲1.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_filter() in wp-content/plugins/youlist/youlist.php:196

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Screenshot #1 (YouTube playlist with thumbnails.) image missing
The official readme.txt might help

youlist/youlist.php Passed 13 tests

The main PHP file in "YouList - YouTube playlist shortcode" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
Shortcode for embedding a Youtube playlist or multiple Youtube videos with a single Youtube player

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
Success! There were no dangerous files found in this plugin141 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12239141

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png218.07KB106.13KB▼ 51.33%