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
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.64ms] Passed 4 tests
A check of server-side resources used by WP Scrollbar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.08 | 33.03 ▼9.86 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.52 ▼2.46 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.10 ▲0.13 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.20 ▼9.73 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.52 ▼4.49 |
Scroll Bar Options /wp-admin/options-general.php?page=automaticpageload-settings | 3.18 | 34.18 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Scrollbar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,050 ▲304 | 13.97 ▼0.36 | 14.01 ▲12.09 | 41.07 ▼6.94 |
Dashboard /wp-admin | 2,232 ▲44 | 5.06 ▲0.17 | 103.91 ▼4.20 | 43.30 ▲0.47 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.29 ▲0.28 | 35.70 ▲0.36 | 31.56 ▼3.69 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 23.39 ▲5.93 | 681.65 ▼23.85 | 41.31 ▼26.45 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.45 ▲0.24 | 102.97 ▼6.69 | 43.70 ▲0.21 |
Scroll Bar Options /wp-admin/options-general.php?page=automaticpageload-settings | 1,175 | 2.23 | 51.58 | 25.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=automaticpageload-settings
- > Notice in wp-content/plugins/better-scrollbar/nicescroll.min.php+184
Undefined index: cursor_border_radius
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-scrollbar/nicescroll.min.php:16
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Donate link: Invalid URI found ("")
- Screenshots: These screenshots do not have images: #1 (jest install WP Scrollbar plugin), #2 (Another demo.)
better-scrollbar/nicescroll.min.php 92% from 13 tests
The main file in "WP Scrollbar" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("better-scrollbar.php" instead of "nicescroll.min.php")
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
There were no executable files found in this plugin302 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 68 | 22 | 162 |
JavaScript | 2 | 2 | 0 | 140 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG files were detected