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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.61 ▼1.97 |
Dashboard /wp-admin | 3.44 ▲0.14 | 51.22 ▼1.86 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 51.70 ▼0.51 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 88.66 ▼19.78 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 43.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.41 ▼0.19 | 2.01 ▲0.17 | 43.11 ▼1.89 |
Dashboard /wp-admin | 2,222 ▲31 | 5.80 ▲0.89 | 105.47 ▼1.37 | 41.07 ▼7.16 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.05 ▲0.01 | 39.95 ▲0.21 | 35.19 ▼2.77 |
Add New Post /wp-admin/post-new.php | 6,612 ▲5,098 | 18.99 ▲1.35 | 938.21 ▲255.52 | 73.78 ▲11.00 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.24 ▲0.01 | 111.91 ▲5.59 | 47.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 1 | 17 | 3,370 |
PHP | 5 | 38 | 122 | 1,433 |
JavaScript | 4 | 2 | 12 | 160 |
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 code | 0.54 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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