84% youtube-dj

Code Review | YouTube DJ

WordPress plugin YouTube DJ scored84%from 54 tests.

About plugin

  • Plugin page: youtube-dj
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Aug 13, 2012
  • Latest release: Sep 4, 2014
  • Number of updates: 17
  • Update frequency: every 66.3 days
  • Top authors: markoheijnen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.00ms] Passed 4 tests

An overview of server-side resources used by YouTube DJ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.13 ▼4.60
Dashboard /wp-admin3.37 ▲0.0748.79 ▼8.23
Posts /wp-admin/edit.php3.49 ▲0.1347.65 ▼3.10
Add New Post /wp-admin/post-new.php5.95 ▲0.0796.58 ▲0.11
Media Library /wp-admin/upload.php3.30 ▲0.0738.57 ▼0.06

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for YouTube DJ
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.081.83 ▲0.1242.56 ▼4.58
Dashboard /wp-admin2,198 ▲215.61 ▼0.0190.05 ▼10.5239.43 ▼8.02
Posts /wp-admin/edit.php2,100 ▲31.99 ▼0.0340.74 ▲6.9536.90 ▼0.54
Add New Post /wp-admin/post-new.php1,535 ▲918.53 ▼4.98619.39 ▼90.1565.23 ▲5.57
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0498.32 ▼17.1744.78 ▼5.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-dj/youtube-dj.php:43
    • > PHP Fatal error
      Uncaught Error: Class 'Youtubedj_Object' not found in wp-content/plugins/youtube-dj/objects/deck.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Youtubedj_Object' not found in wp-content/plugins/youtube-dj/objects/queue.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Youtubedj_Object' not found in wp-content/plugins/youtube-dj/objects/search.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Youtubedj_Object' not found in wp-content/plugins/youtube-dj/objects/mixer.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 () image missing
You can look at the official readme.txt

youtube-dj/youtube-dj.php 92% from 13 tests

This is the main PHP file of "YouTube DJ" version 0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,178 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS27048530
JavaScript19115342
PHP712023306

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.71
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods24
▷ Static methods1041.67%
▷ Public methods1666.67%
▷ Protected methods416.67%
▷ Private methods416.67%
Functions0
▷ Named functions00.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
14 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/ui-lightness/images/ui-icons_228ef1_256x240.png4.27KB4.11KB▼ 3.78%
css/ui-lightness/images/ui-icons_ef8c08_256x240.png4.27KB4.11KB▼ 3.78%
css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png0.12KB0.16KB0.00%
css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png0.25KB0.15KB▼ 37.45%
css/ui-lightness/images/ui-icons_ffd27a_256x240.png4.27KB4.11KB▼ 3.78%