Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.43MB] [CPU: ▲23.62ms] 50% from 4 tests
Server-side resources used by Scrollbar Customizer
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,955.26ms on /wp-admin/themes.php?page=wp_customscrollbar_settings)
- Extra RAM: The extra memory usage must be under 5MB (currently 5.43MB on /wp-admin/themes.php?page=wp_customscrollbar_settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.21 ▲5.74 | 68.34 ▲30.54 |
Dashboard /wp-admin | 9.23 ▲5.88 | 71.14 ▲7.64 |
Posts /wp-admin/edit.php | 9.23 ▲5.87 | 71.36 ▲22.55 |
Add New Post /wp-admin/post-new.php | 10.13 ▲4.24 | 129.73 ▲33.74 |
Media Library /wp-admin/upload.php | 9.23 ▲5.99 | 74.97 ▲41.18 |
Freemius Debug [v.2.5.9] /wp-admin/admin.php?page=freemius | 9.23 | 57.96 |
Scrollbar Customizer /wp-admin/themes.php?page=wp_customscrollbar_settings | 9.23 | 1,955.26 |
Server storage [IO: ▲3.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 217 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_accounts |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
fs_active_plugins |
fs_debug_mode |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Scrollbar Customizer: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲84 | 13.63 ▼0.72 | 17.69 ▲15.92 | 27.39 ▼13.53 |
Dashboard /wp-admin | 2,219 ▲39 | 5.62 ▲0.04 | 93.53 ▲5.08 | 39.18 ▼1.71 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.02 ▲0.03 | 35.92 ▼0.92 | 35.77 ▲1.88 |
Add New Post /wp-admin/post-new.php | 1,543 ▲9 | 24.54 ▲1.41 | 651.22 ▲6.06 | 71.15 ▲15.89 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.23 ▲0.02 | 97.26 ▼3.92 | 45.86 ▲0.98 |
Freemius Debug [v.2.5.9] /wp-admin/admin.php?page=freemius | 1,089 | 1.69 | 25.64 | 29.45 |
Scrollbar Customizer /wp-admin/themes.php?page=wp_customscrollbar_settings | 1,036 | 3.58 | 70.03 | 62.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/scrollbar-customizer/libraries/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- theysaidso_admin_options
- fs_accounts
- db_upgraded
- widget_recent-comments
- fs_active_plugins
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- fs_debug_mode
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/scrollbar-customizer/libraries/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Screenshots: These screenshots need descriptions #1, #2, #3 in scrollbar-customizer/assets to your readme.txt
scrollbar-customizer/scrollbar-customizer.php 92% from 13 tests
The main PHP script in "Scrollbar Customizer" version 1.5.0 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)
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 detected37,427 lines of code in 167 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 8,676 | 18,688 | 35,327 |
JavaScript | 5 | 230 | 62 | 1,457 |
Markdown | 5 | 143 | 0 | 329 |
JSON | 4 | 0 | 0 | 161 |
PO File | 1 | 38 | 45 | 103 |
XML | 1 | 0 | 0 | 20 |
CSS | 15 | 0 | 0 | 15 |
YAML | 1 | 1 | 0 | 15 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 82.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 4 | 7.02% |
Methods | 1,426 | |
▷ Static methods | 232 | 16.27% |
▷ Public methods | 1,029 | 72.16% |
▷ Protected methods | 22 | 1.54% |
▷ Private methods | 375 | 26.30% |
Functions | 96 | |
▷ Named functions | 94 | 97.92% |
▷ Anonymous functions | 2 | 2.08% |
Constants | 157 | |
▷ Global constants | 101 | 64.33% |
▷ Class constants | 56 | 35.67% |
▷ Public constants | 56 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libraries/vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
libraries/vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |