Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/admin-panel-background-color/src/Admin.php+1059
Undefined variable: currentUserId
Server metrics [RAM: ▼1.77MB] [CPU: ▼53.25ms] Passed 4 tests
This is a short check of server-side resources used by Admin Panel Background Color
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 6.12 ▼34.02 |
Dashboard /wp-admin | 2.24 ▼1.06 | 6.97 ▼40.70 |
Posts /wp-admin/edit.php | 2.24 ▼1.12 | 7.76 ▼40.30 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.65 | 7.72 ▼97.98 |
Media Library /wp-admin/upload.php | 2.24 ▼0.99 | 5.94 ▼31.57 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 102 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admin Panel Background Color
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 13.83 ▼0.34 | 1.57 ▼0.22 | 41.51 ▼5.35 |
Dashboard /wp-admin | 2,244 ▲56 | 5.26 ▼0.59 | 117.02 ▲13.00 | 38.09 ▼1.86 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.68 ▲0.69 | 44.90 ▲8.56 | 36.14 ▲1.55 |
Add New Post /wp-admin/post-new.php | 1,547 ▼121 | 23.23 ▲0.91 | 637.58 ▲0.53 | 28.90 ▼25.17 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.38 ▲0.14 | 93.69 ▼12.46 | 44.90 ▲0.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/admin-panel-background-color/src/Admin.php+1059
Undefined variable: currentUserId
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/admin-panel-background-color/vendor/scssphp/tests/ApiTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/admin-panel-background-color/vendor/scssphp/tests/InputTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/admin-panel-background-color/vendor/scssphp/tests/ExceptionTest.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== admin-panel-background-color ===
) - Screenshots: A description for screenshot #1 is missing in admin-panel-background-color/assets to your readme.txt
admin-panel-background-color/admin-panel-background-color.php 85% from 13 tests
The primary PHP file in "Admin Panel Background Color" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 188 characters long)
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected9,663 lines of code in 89 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,065 | 1,134 | 4,778 |
Sass | 30 | 880 | 96 | 2,179 |
CSS | 28 | 483 | 22 | 1,553 |
Markdown | 2 | 138 | 0 | 556 |
JavaScript | 2 | 56 | 29 | 435 |
HTML | 1 | 8 | 7 | 75 |
JSON | 3 | 0 | 0 | 37 |
XML | 1 | 4 | 1 | 23 |
Bourne Shell | 1 | 4 | 3 | 18 |
YAML | 1 | 0 | 0 | 7 |
make | 1 | 1 | 0 | 2 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 56.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 467.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 292 | |
▷ Static methods | 9 | 3.08% |
▷ Public methods | 101 | 34.59% |
▷ Protected methods | 184 | 63.01% |
▷ Private methods | 7 | 2.40% |
Functions | 9 | |
▷ Named functions | 4 | 44.44% |
▷ Anonymous functions | 5 | 55.56% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/HSV-HEX-Color-Picker-jQuery/jquery.colorpicker.slider.png | 0.37KB | 1.58KB | 0.00% |
admin/js/HSV-HEX-Color-Picker-jQuery/jquery.colorpicker.selector.png | 0.38KB | 0.39KB | 0.00% |
admin/js/HSV-HEX-Color-Picker-jQuery/jquery.colorpicker.wheel_cursor.png | 0.38KB | 0.39KB | 0.00% |
admin/js/HSV-HEX-Color-Picker-jQuery/jquery.colorpicker.wheel_mask.png | 3.80KB | 2.08KB | ▼ 45.35% |
admin/js/HSV-HEX-Color-Picker-jQuery/jquery.colorpicker.slider_cursor.png | 0.45KB | 0.35KB | ▼ 21.91% |