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
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.91ms] Passed 4 tests
Server-side resources used by WordPress Nice Scrollbar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.22 ▲0.14 |
Dashboard /wp-admin | 3.42 ▲0.11 | 47.07 ▼2.07 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 49.42 ▲2.00 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 84.02 ▼9.14 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.41 ▼0.56 |
scrollbar options /wp-admin/options-general.php?page=settings_api_test | 3.31 | 30.07 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
wedevs_basics |
widget_theysaidso_widget |
wedevs_advanced |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Nice Scrollbar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,025 ▲290 | 13.94 ▼0.36 | 13.57 ▲11.56 | 39.65 ▼4.06 |
Dashboard /wp-admin | 2,232 ▲44 | 5.11 ▲0.20 | 110.63 ▼7.99 | 40.42 ▼7.42 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.44 ▲0.45 | 42.68 ▲6.13 | 50.04 ▲12.33 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.34 ▲0.36 | 666.87 ▼1.27 | 35.06 ▼15.52 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.46 ▲0.21 | 100.11 ▼10.10 | 43.33 ▼1.84 |
scrollbar options /wp-admin/options-general.php?page=settings_api_test | 1,090 | 2.44 | 52.09 | 25.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- wedevs_basics
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- wedevs_advanced
- can_compress_scripts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× 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/wp-nice-scrollbar/output-setting.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-nice-scrollbar/output-setting.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #2, #3, #4, #9, #0, #0, #0 in wp-nice-scrollbar/assets to your readme.txt
wp-nice-scrollbar/plugin-hook.php 92% from 13 tests
The entry point to "WordPress Nice Scrollbar" version 3.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-nice-scrollbar.php" instead of "plugin-hook.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected564 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 140 | 195 | 450 |
JavaScript | 1 | 0 | 0 | 114 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin