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.01MB] [CPU: ▼7.18ms] Passed 4 tests
Analyzing server-side resources used by Brands for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.23 ▼6.91 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.99 ▼4.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.50 ▼0.74 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.31 ▼16.80 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.55 ▲0.33 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Brands for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.07 | 1.78 ▼0.38 | 42.89 ▼3.45 |
Dashboard /wp-admin | 2,206 ▲21 | 5.87 ▲0.08 | 113.25 ▼0.21 | 43.20 ▲4.06 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.02 | 39.87 ▲1.62 | 36.39 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.80 ▲0.58 | 642.81 ▼55.68 | 54.16 ▼10.55 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.08 | 100.72 ▼10.12 | 47.34 ▲1.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unlimited-brands-for-woocommerce/includes/widget/widget-filter-brands.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unlimited-brands-for-woocommerce/includes/widget/widget-list-brands.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-brands-for-woocommerce/includes/functions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-brands-for-woocommerce/includes/taxonomy-field.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-brands-for-woocommerce/includes/taxonomy.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/unlimited-brands-for-woocommerce/index.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/unlimited-brands-for-woocommerce/includes/shortcode.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: product brands, woocommerce brands filter, products, supplier, woocommerce brands...
unlimited-brands-for-woocommerce/index.php 85% from 13 tests
"Brands for WooCommerce" version 2.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:
- Description: Keep the plugin description shorter than 140 characters (currently 161 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("unlimited-brands-for-woocommerce.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected6,191 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 1 | 0 | 2,684 |
JavaScript | 3 | 853 | 49 | 2,172 |
CSS | 4 | 73 | 15 | 490 |
PHP | 7 | 88 | 172 | 423 |
Sass | 2 | 27 | 5 | 262 |
LESS | 1 | 11 | 5 | 152 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 14.31KB | 5.70KB | ▼ 60.18% |
screenshot-2.png | 2.26KB | 0.73KB | ▼ 67.65% |
screenshot-1.png | 44.70KB | 12.85KB | ▼ 71.26% |