Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.95ms] Passed 4 tests
An overview of server-side resources used by Scrollbar Designer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 48.30 ▲5.66 |
Dashboard /wp-admin | 3.39 ▲0.08 | 52.01 ▼2.02 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 53.80 ▲5.03 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 89.59 ▼20.55 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.88 ▲1.75 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 14 new options
New WordPress options |
---|
can_compress_scripts |
st_mouse_switch |
widget_theysaidso_widget |
st_sb_width |
st_sb_color |
st_sb_border_style |
st_rail_color_opacity |
widget_recent-posts |
st_sb_border_size |
st_sb_border_color |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Scrollbar Designer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲140 | 13.53 ▼0.88 | 9.29 ▲7.23 | 42.02 ▼3.09 |
Dashboard /wp-admin | 2,226 ▲52 | 5.80 ▲0.24 | 93.94 ▲2.17 | 39.39 ▼0.33 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.27 ▲0.30 | 39.37 ▲0.61 | 34.51 ▼1.88 |
Add New Post /wp-admin/post-new.php | 1,550 ▲19 | 23.85 ▲0.81 | 670.41 ▼7.59 | 35.82 ▼21.40 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.43 ▲0.20 | 102.19 ▲3.05 | 41.42 ▼5.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/scrollbar-designer/scrollbar-designer.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scrollbar-designer/scrollbar-action.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scrollbar-designer/scrollbar-designer-settings-page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please delete some tags, you are using 52 tag instead of maximum 10
scrollbar-designer/scrollbar-designer.php Passed 13 tests
The main file in "Scrollbar Designer" v. 2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
116 characters long description:
Scrollbar Designer allows you to customize the appearance of default scrollbar on your website matching your theme .
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,189 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 545 | 105 | 2,620 |
PHP | 3 | 136 | 13 | 569 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
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 | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/lps.png | 9.97KB | 4.98KB | ▼ 50.07% |