10% toolshot-player

Code Review | ToolsHot Player

WordPress plugin ToolsHot Player scored10%from 54 tests.

About plugin

  • Plugin page: toolshot-player
  • Plugin version: 2.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: Feb 28, 2017
  • Number of updates: 33
  • Update frequency: every 14.9 days
  • Top authors: toolshot (96.97%)Otto42 (6.06%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active /7,514 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/toolshot-player/toolshot-player.php+91
    Undefined variable: url_toolshot_player

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.03ms] Passed 4 tests

Server-side resources used by ToolsHot Player
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.61 ▼1.97
Dashboard /wp-admin3.44 ▲0.1451.22 ▼1.86
Posts /wp-admin/edit.php3.49 ▲0.1451.70 ▼0.51
Add New Post /wp-admin/post-new.php6.03 ▲0.1488.66 ▼19.78
Media Library /wp-admin/upload.php3.36 ▲0.1343.20 ▲5.54

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables
wp_toolshot_player
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by ToolsHot Player
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.41 ▼0.192.01 ▲0.1743.11 ▼1.89
Dashboard /wp-admin2,222 ▲315.80 ▲0.89105.47 ▼1.3741.07 ▼7.16
Posts /wp-admin/edit.php2,105 ▲132.05 ▲0.0139.95 ▲0.2135.19 ▼2.77
Add New Post /wp-admin/post-new.php6,612 ▲5,09818.99 ▲1.35938.21 ▲255.5273.78 ▲11.00
Media Library /wp-admin/upload.php1,401 ▲104.24 ▲0.01111.91 ▲5.5947.64 ▲2.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_toolshot_player
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mcrypt_encrypt() in wp-content/plugins/toolshot-player/view/view_toolshot_player_settings.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolshot-player/func/func_metabox.php:2
    • > PHP Notice
      Undefined index: task in wp-content/plugins/toolshot-player/func/func_get.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/toolshot-player/view/view_toolshot_player_settings.php on line 47
    • > PHP Notice
      Undefined variable: toolshot_player in wp-content/plugins/toolshot-player/view/view_toolshot_player_settings.php on line 47

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #2, #3 in toolshot-player/assets to your readme.txt
You can take inspiration from this readme.txt

toolshot-player/toolshot-player.php 92% from 13 tests

The main PHP script in "ToolsHot Player" version 2.2.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 169 characters long)

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 plugin4,963 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS91173,370
PHP5381221,433
JavaScript4212160

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions19
▷ Named functions19100.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
There are no PNG files in this plugin