83% youtube-speedload

Code Review | Youtube SpeedLoad

WordPress plugin Youtube SpeedLoad scored83%from 54 tests.

About plugin

  • Plugin page: youtube-speedload
  • Plugin version: 0.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.7
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: Jul 22, 2018
  • Number of updates: 94
  • Update frequency: every 16.3 days
  • Top authors: alexufo (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /10,268 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼3.92ms] Passed 4 tests

Analyzing server-side resources used by Youtube SpeedLoad
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.00 ▼2.40
Dashboard /wp-admin3.31 ▲0.0147.70 ▼7.27
Posts /wp-admin/edit.php3.36 ▲0.0147.82 ▼1.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.70 ▼4.15
Media Library /wp-admin/upload.php3.23 ▲0.0138.42 ▲4.40
Youtube Speedload /wp-admin/options-general.php?page=youtube-speedload3.2033.20

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Youtube SpeedLoad
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.24 ▼0.312.14 ▲0.6043.00 ▼3.21
Dashboard /wp-admin2,199 ▲195.52 ▼0.1086.15 ▼8.7239.43 ▲1.60
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0038.68 ▼0.5135.13 ▼0.06
Add New Post /wp-admin/post-new.php1,538 ▲1218.11 ▼5.08603.54 ▼56.6777.90 ▲19.88
Media Library /wp-admin/upload.php1,401 ▲44.23 ▲0.06101.19 ▼0.1744.43 ▼2.36
Youtube Speedload /wp-admin/options-general.php?page=youtube-speedload8202.0324.1426.43

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-speedload/youtube-speedload.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/youtube-speedload/ytsl-admin-options.php:15

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 90% 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
These attributes need to be fixed: The official readme.txt might help

youtube-speedload/youtube-speedload.php 85% from 13 tests

This is the main PHP file of "Youtube SpeedLoad" version 0.6.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 337 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin273 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP26447165
PO File1141457
CSS111043
JavaScript1008

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions7
▷ Named functions7100.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
3 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
analysis.png63.71KB62.73KB▼ 1.53%
yt-sl-play.png2.04KB1.93KB▼ 4.94%
cat.png11.39KB4.10KB▼ 64.03%