Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wp-color-scrollbar/inc/color.class.php+47
Undefined index: page
Server metrics [RAM: ▼1.90MB] [CPU: ▼54.11ms] Passed 4 tests
An overview of server-side resources used by WP Color Scrollbar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.95 ▼34.86 |
Dashboard /wp-admin | 2.11 ▼1.20 | 7.02 ▼43.15 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 7.21 ▼43.34 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 7.12 ▼95.09 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.24 ▼28.27 |
WP Color Scrollbar /wp-admin/options-general.php?page=soocolor-settings | 2.11 | 6.39 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Color Scrollbar: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,021 ▲286 | 14.05 ▼0.35 | 13.33 ▲11.67 | 41.80 ▼8.27 |
Dashboard /wp-admin | 2,231 ▲40 | 5.25 ▼0.63 | 114.86 ▲6.99 | 48.96 ▲3.01 |
Posts /wp-admin/edit.php | 2,119 ▲27 | 2.34 ▲0.21 | 40.50 ▼0.43 | 35.23 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.42 ▲5.94 | 619.34 ▼63.46 | 33.53 ▼17.94 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.48 ▲0.28 | 96.78 ▼5.80 | 40.82 ▼1.29 |
WP Color Scrollbar /wp-admin/options-general.php?page=soocolor-settings | 1,088 | 2.56 | 40.79 | 33.16 |
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
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the soo-color-scrollbar handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=soocolor-settings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the soo-color-scrollbar handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=soocolor-settings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the soo-colorscrollbar-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-color-scrollbar/WP-Color-Scrollbar.php:11
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-color-scrollbar/WP-Color-Scrollbar.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: jquery scrollbar, color, nice scrollbar, custom scrollbar, scrollbar...
wp-color-scrollbar/WP-Color-Scrollbar.php 85% from 13 tests
"WP Color Scrollbar" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 176 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wp-color-scrollbar.php" instead of "WP-Color-Scrollbar.php")
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 plugin346 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 12 | 182 |
JavaScript | 2 | 0 | 0 | 117 |
CSS | 1 | 2 | 9 | 47 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
4 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 39.10KB | 17.98KB | ▼ 54.02% |
assets/banner-772x250.png | 75.76KB | 27.26KB | ▼ 64.02% |
assets/screenshot-2.png | 42.87KB | 19.33KB | ▼ 54.92% |
img/color-bg.png | 13.08KB | 3.89KB | ▼ 70.23% |