Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▲5.12ms] Passed 4 tests
An overview of server-side resources used by Discover the Best Woocommerce Product Brands Plugin for WordPress - Woocommerce Brands Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 42.14 ▼3.37 |
Dashboard /wp-admin | 3.72 ▲0.41 | 62.30 ▲11.93 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 62.68 ▲12.94 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 93.55 ▲5.87 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 42.73 ▲6.06 |
Server storage [IO: ▲1.68MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Discover the Best Woocommerce Product Brands Plugin for WordPress - Woocommerce Brands Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲209 | 14.40 ▲0.03 | 2.00 ▼0.16 | 40.65 ▼5.61 |
Dashboard /wp-admin | 2,376 ▲196 | 6.19 ▲0.65 | 136.72 ▲42.14 | 54.86 ▲15.01 |
Posts /wp-admin/edit.php | 2,308 ▲205 | 3.45 ▲1.47 | 57.01 ▲14.10 | 36.66 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,572 ▲36 | 23.25 ▲0.08 | 639.07 ▼57.13 | 38.33 ▼17.16 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.19 ▲0.06 | 88.24 ▼39.32 | 44.92 ▼11.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- 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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/gs-woo-brands/templates/settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gs-woo-brands/woocommerce-brand.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gs-woo-brands/gs-common-pages/gs-brands-common-pages.php:3
- > PHP Notice
Undefined variable: terms in wp-content/plugins/gs-woo-brands/templates/gs_brand_carousal.php on line 5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/gs-woo-brands/templates/gs_brand_carousal.php on line 5
- > PHP Notice
Undefined variable: title in wp-content/plugins/gs-woo-brands/templates/widget.php on line 1
- > PHP Notice
Undefined variable: terms in wp-content/plugins/gs-woo-brands/templates/gs_brand_carousal2.php on line 5
- > PHP Notice
Undefined variable: brand_dropdown in wp-content/plugins/gs-woo-brands/templates/widget.php on line 38
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/gs-woo-brands/templates/gs_brand_carousal2.php on line 5
- > PHP Notice
Undefined variable: show_list in wp-content/plugins/gs-woo-brands/templates/widget.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: woocommerce product brand plugin, ultimate woocommerce brands plugin, best woocommerce brands plugin, brands woocommerce plugin, woocommerce brands plugin...
gs-woo-brands/woocommerce-brand.php 69% from 13 tests
The entry point to "Discover the Best Woocommerce Product Brands Plugin for WordPress - Woocommerce Brands Plugin" version 1.3.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("gs-woo-brands.php" instead of "woocommerce-brand.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.3" instead of "7.4")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 392 characters long)
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin5,968 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 689 | 777 | 3,018 |
CSS | 7 | 112 | 39 | 1,383 |
SVG | 4 | 1 | 0 | 867 |
Sass | 1 | 101 | 6 | 521 |
JavaScript | 5 | 7 | 11 | 158 |
JSON | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
A brief analysis 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.40 |
Average class complexity | 49.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 140 | |
▷ Static methods | 36 | 25.71% |
▷ Public methods | 105 | 75.00% |
▷ Protected methods | 6 | 4.29% |
▷ Private methods | 29 | 20.71% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/icon.png | 0.75KB | 0.79KB | 0.00% |