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.04MB] [CPU: ▼6.86ms] Passed 4 tests
An overview of server-side resources used by Ultimate WooCommerce Brands
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 36.78 ▲0.22 |
Dashboard /wp-admin | 3.35 ▲0.01 | 44.91 ▼16.33 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 42.04 ▼2.08 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 82.64 ▼9.24 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.35 ▲4.18 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_mgwoocommercebrands_list_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Ultimate WooCommerce Brands
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 13.22 ▼1.15 | 1.70 ▲0.11 | 40.12 ▼0.31 |
Dashboard /wp-admin | 2,233 ▲42 | 4.88 ▼0.07 | 96.75 ▼4.49 | 74.85 ▲32.41 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.01 ▼0.01 | 35.35 ▲0.15 | 32.47 ▲0.00 |
Add New Post /wp-admin/post-new.php | 1,694 ▲180 | 22.44 ▲5.00 | 758.42 ▲159.29 | 53.42 ▼5.90 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.22 ▼0.00 | 96.99 ▼0.05 | 81.74 ▲37.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_mgwoocommercebrands_list_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (16 tag instead of maximum 10)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== ultimate-woocommerce-brands ===
)
ultimate-woocommerce-brands/mgwoocommercebrands-light.php 92% from 13 tests
The principal PHP file in "Ultimate WooCommerce Brands" v. 2.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimate-woocommerce-brands.php" instead of "mgwoocommercebrands-light.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected833 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 130 | 110 | 453 |
PO File | 1 | 88 | 93 | 191 |
CSS | 2 | 0 | 7 | 150 |
JavaScript | 1 | 3 | 0 | 39 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 96.30% |
▷ Protected methods | 1 | 3.70% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.56MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 119.60KB | 43.53KB | ▼ 63.61% |
img/hosting-wp-button.png | 26.03KB | 9.36KB | ▼ 64.05% |
assets/screenshot-3.png | 78.51KB | 26.99KB | ▼ 65.63% |
img/plugin-wrapper.png | 25.39KB | 9.67KB | ▼ 61.91% |
assets/screenshot-1.png | 141.45KB | 46.29KB | ▼ 67.28% |