Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.96ms] Passed 4 tests
Analyzing server-side resources used by WCBox Lite - Product Slider Plugin For Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.04 ▼1.49 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.49 ▼7.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.59 ▲0.48 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.64 ▼7.48 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.18 ▲3.90 |
Server storage [IO: ▲3.26MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 235 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WCBox Lite - Product Slider Plugin For Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.72 ▲0.38 | 1.75 ▼0.16 | 43.27 ▼2.85 |
Dashboard /wp-admin | 2,205 ▲24 | 5.55 ▼0.15 | 91.62 ▼10.30 | 40.65 ▼2.13 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 1.98 ▼0.03 | 35.30 ▼2.79 | 35.02 ▼5.86 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.48 ▲0.47 | 641.59 ▼30.04 | 52.31 ▼5.10 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.29 ▲0.09 | 102.29 ▼2.28 | 45.12 ▲0.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 143× PHP files trigger server errors when accessed directly (only 10 are shown):
- > 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/wcbox-lite/vafpress-framework/config/dependencies.php on line 94
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/wcbox-lite/vafpress-framework/constant.php:11
- > PHP Notice
Undefined variable: wcbox_get_cat in wp-content/plugins/wcbox-lite/public/shortcode/wcbox_tab_widget.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'VP_Util_Text' not found in wp-content/plugins/wcbox-lite/vafpress-framework/views/control/html.php:5
- > PHP Notice
Undefined variable: wcbox_get_cat in wp-content/plugins/wcbox-lite/public/shortcode/wcbox_tab_widget.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/wcbox-lite/vafpress-framework/constant.php:11
- > PHP Notice
Undefined variable: wcbox_get_cat in wp-content/plugins/wcbox-lite/public/shortcode/wcbox_tab_shortcode.php on line 94
- > PHP Notice
Undefined variable: type in wp-content/plugins/wcbox-lite/vafpress-framework/views/control/html.php on line 4
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/wcbox-lite/vafpress-framework/views/control/slider.php on line 1
- > PHP Notice
Undefined variable: wcbox_get_cat in wp-content/plugins/wcbox-lite/public/shortcode/wcbox_tab_shortcode.php on line 66
- > PHP Warning
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 issues were found
Optimizations
Plugin configuration 87% 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:
- Tags: There are too many tags (49 tag instead of maximum 10)
- Screenshots: These screenshots do not have images: #1 (s), #2 (c)
wcbox-lite/wc-box.php 85% from 13 tests
This is the main PHP file of "WCBox Lite - Product Slider Plugin For Woocommerce" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wcbox-lite.php" instead of "wc-box.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
Good job! No executable or dangerous file extensions detected19,200 lines of code in 185 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 107 | 2,524 | 2,853 | 10,058 |
CSS | 21 | 223 | 224 | 4,669 |
JavaScript | 53 | 523 | 394 | 3,391 |
SVG | 2 | 0 | 0 | 1,054 |
Markdown | 1 | 12 | 0 | 27 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 4 | 6.45% |
▷ Concrete classes | 58 | 93.55% |
▷ Final classes | 0 | 0.00% |
Methods | 525 | |
▷ Static methods | 91 | 17.33% |
▷ Public methods | 488 | 92.95% |
▷ Protected methods | 19 | 3.62% |
▷ Private methods | 18 | 3.43% |
Functions | 50 | |
▷ Named functions | 50 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 0.16MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vafpress-framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vafpress-framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vafpress-framework/public/img/vp-sprite.png | 12.79KB | 4.90KB | ▼ 61.71% |
vafpress-framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
vafpress-framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |