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.05MB] [CPU: ▼5.87ms] Passed 4 tests
A check of server-side resources used by WS Custom Scrollbar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.39 ▲0.88 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.17 ▲0.94 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.70 ▼7.97 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.29 ▼17.34 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.17 ▲1.44 |
WS Custom Scrollbar /wp-admin/options-general.php?page=ws-custom-scrollbar | 3.24 | 31.05 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 15 new options
New WordPress options |
---|
ws_custom_scrollbar_bgcolor |
ws_custom_scrollbar_width |
db_upgraded |
ws_custom_scrollbar_autohide |
ws_custom_scrollbar_speed |
ws_custom_scrollbar_show |
ws_custom_scrollbar_hidecursordelay |
ws_custom_scrollbar_opacity |
widget_recent-posts |
ws_custom_scrollbar_border_color |
... |
Browser metrics Passed 4 tests
WS Custom Scrollbar: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,023 ▲277 | 13.92 ▼0.45 | 15.98 ▲14.31 | 44.92 ▲2.02 |
Dashboard /wp-admin | 2,229 ▲41 | 5.12 ▼0.76 | 104.11 ▲3.28 | 39.24 ▼8.27 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.32 ▲0.30 | 35.07 ▼5.42 | 31.00 ▼7.52 |
Add New Post /wp-admin/post-new.php | 1,531 ▼5 | 23.26 ▼0.02 | 606.07 ▼45.46 | 32.62 ▼20.49 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.47 ▲0.25 | 95.04 ▼2.67 | 39.96 ▼3.15 |
WS Custom Scrollbar /wp-admin/options-general.php?page=ws-custom-scrollbar | 1,235 | 2.33 | 47.25 | 37.83 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 register_activation_hook() in wp-content/plugins/ws-custom-scrollbar/ws-custom-scrollbar.php:203
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 22 tag instead of maximum 10
ws-custom-scrollbar/ws-custom-scrollbar.php 85% from 13 tests
"WS Custom Scrollbar" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 165 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,801 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 545 | 105 | 2,620 |
PHP | 2 | 13 | 16 | 181 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
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 | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin