Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.91ms] Passed 4 tests
A check of server-side resources used by WooCommerce Better Usability
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 37.99 ▼1.55 |
Dashboard /wp-admin | 3.44 ▲0.09 | 46.61 ▼15.33 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 46.61 ▲0.55 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 83.79 ▼7.30 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.38 ▲1.15 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
wbu_notices |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Better Usability
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.58 ▲0.38 | 1.64 ▼0.18 | 43.81 ▲5.03 |
Dashboard /wp-admin | 2,195 ▲14 | 5.57 ▼0.15 | 87.90 ▼14.88 | 35.49 ▼4.85 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.03 | 36.14 ▼1.03 | 36.27 ▲1.18 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.13 ▲0.17 | 625.15 ▲11.64 | 54.52 ▼18.42 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▲0.02 | 94.92 ▼8.56 | 40.82 ▼4.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- wbu_notices
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #5, #6, #7 in woo-better-usability/assets to your readme.txt
woo-better-usability/wbulite.php 85% from 13 tests
This is the main PHP file of "WooCommerce Better Usability" version 1.0.55, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.8" instead of "5.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-better-usability.php" instead of "wbulite.php")
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
There were no executable files found in this plugin2,174 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 359 | 143 | 1,677 |
JavaScript | 2 | 116 | 57 | 407 |
CSS | 2 | 21 | 0 | 90 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 24.62 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 4 | 3.20% |
▷ Public methods | 117 | 93.60% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 6.40% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/assets/youtube.png | 0.27KB | 0.22KB | ▼ 18.25% |
common/assets/alert.png | 0.42KB | 0.45KB | 0.00% |