Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.51MB] [CPU: ▼37.78ms] Passed 4 tests
Analyzing server-side resources used by Winsome Nice Scrollbar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.01 | 15.07 ▼20.59 |
Dashboard /wp-admin | 3.50 ▲0.20 | 18.88 ▼28.65 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 19.90 ▼31.97 |
Add New Post /wp-admin/post-new.php | 3.50 ▼2.38 | 23.97 ▼69.92 |
Media Library /wp-admin/upload.php | 3.50 ▲0.28 | 20.50 ▼13.10 |
Server storage [IO: ▲2.23MB] [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: 195 new files
Database: no new tables, 7 new options
New WordPress options |
---|
vpt_option |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Winsome Nice Scrollbar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,020 ▲274 | 13.92 ▼0.48 | 13.61 ▲11.78 | 38.45 ▼6.07 |
Dashboard /wp-admin | 2,224 ▲39 | 4.86 ▼0.01 | 107.49 ▼3.40 | 40.46 ▲3.11 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.04 ▲0.03 | 39.06 ▲2.37 | 34.18 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,553 ▲11 | 23.11 ▲4.85 | 655.47 ▲51.29 | 54.10 ▼9.02 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.25 ▲0.05 | 106.22 ▲5.61 | 44.48 ▲3.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/winsome-nice-scrollbar/vafpress/includes/wpalchemy/MetaBox.php+61
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- vpt_option
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 114× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_Field' not found in wp-content/plugins/winsome-nice-scrollbar/vafpress/classes/control/field/textbox.php:3
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/winsome-nice-scrollbar/vafpress/views/control/toggle.php on line 1
- > PHP Notice
Undefined variable: type in wp-content/plugins/winsome-nice-scrollbar/vafpress/views/control/html.php on line 3
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/winsome-nice-scrollbar/vafpress/config/dependencies.php on line 94
- > PHP Fatal error
Uncaught Error: Class 'VP_Option_Control_Group' not found in wp-content/plugins/winsome-nice-scrollbar/vafpress/classes/option/control/group/section.php:3
- > PHP Notice
Undefined variable: type in wp-content/plugins/winsome-nice-scrollbar/vafpress/views/control/html.php on line 4
- > PHP Notice
Undefined variable: type in wp-content/plugins/winsome-nice-scrollbar/vafpress/views/control/notebox.php on line 5
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/winsome-nice-scrollbar/vafpress/config/dependencies.php on line 172
- > PHP Warning
Use of undefined constant VP_NAMESPACE - assumed 'VP_NAMESPACE' (this will throw an Error in a future version of PHP) in wp-content/plugins/winsome-nice-scrollbar/vafpress/autoload.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'VP_View' not found in wp-content/plugins/winsome-nice-scrollbar/vafpress/views/control/checkimage.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Contributors: Plugin contributors not specified
- Screenshots: Screenshot #2 (admin panel) image missing
winsome-nice-scrollbar/plugin-main.php 92% from 13 tests
"Winsome Nice Scrollbar" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("winsome-nice-scrollbar.php" instead of "plugin-main.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected15,499 lines of code in 155 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 89 | 2,027 | 2,295 | 8,614 |
CSS | 14 | 154 | 176 | 3,309 |
JavaScript | 48 | 447 | 298 | 3,072 |
SVG | 1 | 0 | 0 | 414 |
Markdown | 2 | 31 | 0 | 89 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 21.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 4 | 7.14% |
▷ Concrete classes | 52 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 505 | |
▷ Static methods | 89 | 17.62% |
▷ Public methods | 472 | 93.47% |
▷ Protected methods | 19 | 3.76% |
▷ Private methods | 14 | 2.77% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 33 | 91.67% |
▷ Class constants | 3 | 8.33% |
▷ Public constants | 3 | 100.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
22 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vafpress/public/img/vp-sprite.png | 12.79KB | 4.90KB | ▼ 61.71% |
vafpress/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
vafpress/public/img/vp_shortcode_icon_sprite.png | 1.55KB | 0.42KB | ▼ 73.10% |
vafpress/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vafpress/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |