Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼1.15ms] Passed 4 tests
A check of server-side resources used by Custom Content Scrollbar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 35.05 ▼8.89 |
Dashboard /wp-admin | 3.51 ▲0.21 | 46.56 ▼3.24 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 49.74 ▲3.96 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 97.19 ▲9.49 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 37.32 ▲3.59 |
SH Scrollbar Options /wp-admin/options-general.php?page=sh-custom-scrollbar-settings | 3.41 | 33.16 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Content Scrollbar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,765 ▲30 | 14.06 ▼0.33 | 19.86 ▲17.97 | 46.95 ▲3.45 |
Dashboard /wp-admin | 2,232 ▲58 | 5.11 ▼0.92 | 105.13 ▼4.31 | 39.78 ▼14.85 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.32 ▲0.30 | 37.95 ▼1.08 | 31.99 ▼3.51 |
Add New Post /wp-admin/post-new.php | 2,684 ▲1,163 | 23.84 ▲0.64 | 642.88 ▼48.54 | 32.76 ▼27.98 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.46 ▲0.24 | 97.49 ▼9.51 | 43.18 ▼3.07 |
SH Scrollbar Options /wp-admin/options-general.php?page=sh-custom-scrollbar-settings | 2,091 | 3.17 | 61.41 | 27.14 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 8× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: scrollbar_options_value in wp-content/plugins/custom-content-scrollbar/includes/scrollbar-shortcode.php on line 420
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-content-scrollbar/includes/scrollbar-option-panel.php:6
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/custom-content-scrollbar/includes/scrollbar-shortcode.php on line 605
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/custom-content-scrollbar/includes/scrollbar-shortcode.php:621
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-content-scrollbar/includes/scrollbar-activation-scripts.php:48
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/custom-content-scrollbar/includes/scrollbar-shortcode.php on line 424
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/custom-content-scrollbar/includes/scrollbar-shortcode.php on line 420
- > PHP Notice
Undefined variable: number_text_list in wp-content/plugins/custom-content-scrollbar/includes/scrollbar-shortcode.php on line 423
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: multi-style scrollbar, multi-functional scrollbar, awesome scrollbar, scrollbar wordpress, custom scrollbar...
custom-content-scrollbar/custom-content-scrollbar.php 92% from 13 tests
The principal PHP file in "Custom Content Scrollbar" v. 1.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 260 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,036 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 270 | 607 | 1,887 |
PHP | 4 | 82 | 51 | 1,199 |
CSS | 3 | 345 | 113 | 950 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 17 | |
▷ Named functions | 13 | 76.47% |
▷ Anonymous functions | 4 | 23.53% |
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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/mCSB_buttons.png | 2.93KB | 0.99KB | ▼ 66.18% |