Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.42ms] Passed 4 tests
An overview of server-side resources used by JP Scrollbar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.04 ▲4.49 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.61 ▼4.16 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.71 ▼4.72 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.67 ▼13.08 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.98 ▲0.29 |
JP Scrollbar Options /wp-admin/options-general.php?page=nice-scrollbar-settings | 3.21 | 31.16 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by JP Scrollbar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,081 ▲324 | 14.04 ▼0.20 | 22.80 ▲20.66 | 41.97 ▼5.30 |
Dashboard /wp-admin | 2,207 ▲16 | 5.84 ▼0.05 | 97.11 ▼16.44 | 38.94 ▼6.02 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.02 | 38.51 ▼3.18 | 34.63 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 18.29 ▼4.91 | 594.78 ▼15.54 | 72.62 ▲20.63 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.20 ▲0.01 | 97.92 ▼1.60 | 41.62 ▲1.35 |
JP Scrollbar Options /wp-admin/options-general.php?page=nice-scrollbar-settings | 1,084 | 2.02 | 25.56 | 30.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 35 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=nice-scrollbar-settings
- > Notice in wp-content/plugins/jp-scrollbar/plugin.php+163
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jp-scrollbar/plugin.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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (JP Scrollbar settings panel.), #2 (JP Scrollbar website.)
- Donate link: Invalid URI ("")
jp-scrollbar/plugin.php 92% from 13 tests
The main file in "JP Scrollbar" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jp-scrollbar.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,145 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 342 | 113 | 818 |
PHP | 1 | 29 | 16 | 169 |
JavaScript | 3 | 32 | 51 | 158 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin_panel_screenshot.png | 56.56KB | 30.44KB | ▼ 46.18% |
website_screenshot.png | 48.49KB | 23.16KB | ▼ 52.24% |
css/mCSB_buttons.png | 2.93KB | 0.99KB | ▼ 66.18% |