Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.14MB] [CPU: ▲6.88ms] Passed 4 tests
This is a short check of server-side resources used by Smart Brands for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.62 ▲1.15 | 47.47 ▲6.52 |
Dashboard /wp-admin | 4.44 ▲1.13 | 53.62 ▲6.45 |
Posts /wp-admin/edit.php | 4.55 ▲1.19 | 58.79 ▲8.84 |
Add New Post /wp-admin/post-new.php | 7.03 ▲1.14 | 94.17 ▲5.71 |
Media Library /wp-admin/upload.php | 4.36 ▲1.13 | 46.89 ▲15.10 |
Help /wp-admin/edit.php?post_type=smart_brand_sc&page=brand_help | 4.20 | 37.09 |
Settings /wp-admin/edit.php?post_type=smart_brand_sc&page=smart-brands-settings | 4.20 | 32.99 |
Server storage [IO: ▲2.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 133 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
sp_smart_brand_settings |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart Brands for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲42 | 14.31 ▲0.10 | 1.54 ▼0.29 | 38.45 ▼9.29 |
Dashboard /wp-admin | 2,207 ▲27 | 5.74 ▲0.12 | 89.21 ▼11.42 | 41.58 ▼0.37 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 2.02 ▲0.01 | 35.11 ▼1.36 | 34.61 ▲0.61 |
Add New Post /wp-admin/post-new.php | 6,213 ▲4,687 | 26.24 ▲2.61 | 855.63 ▲178.31 | 68.76 ▲19.57 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.17 ▼0.02 | 98.61 ▼1.18 | 42.67 ▲0.24 |
Help /wp-admin/edit.php?post_type=smart_brand_sc&page=brand_help | 28 | 0.41 | 0.08 | 3.96 |
Settings /wp-admin/edit.php?post_type=smart_brand_sc&page=smart-brands-settings | 28 | 0.41 | 0.06 | 4.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- sp_smart_brand_settings
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/smart-brands-for-woocommerce/core/Admin/Brands/Brands.php
- 88× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ShapedPlugin\\SmartBrands\\Frontend\\Manager' not found in wp-content/plugins/smart-brands-for-woocommerce/core/Frontend/templates/brand/brand.php:19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/smart-brands-for-woocommerce/core/Frontend/partials/configurations.php on line 31
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/smart-brands-for-woocommerce/core/Frontend/partials/configurations.php on line 39
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/smart-brands-for-woocommerce/core/Frontend/partials/configurations.php on line 18
- > PHP Notice
Undefined variable: views_meta in wp-content/plugins/smart-brands-for-woocommerce/core/Frontend/partials/configurations.php on line 53
- > PHP Notice
Undefined variable: views_meta in wp-content/plugins/smart-brands-for-woocommerce/core/Frontend/partials/configurations.php on line 31
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/smart-brands-for-woocommerce/core/Frontend/partials/configurations.php on line 54
- > PHP Notice
Undefined variable: views_meta in wp-content/plugins/smart-brands-for-woocommerce/core/Frontend/partials/configurations.php on line 29
- > PHP Notice
Undefined variable: views_meta in wp-content/plugins/smart-brands-for-woocommerce/core/Frontend/partials/configurations.php on line 40
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/smart-brands-for-woocommerce/core/Frontend/partials/configurations.php on line 31
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=smart_brand_sc&page=brand_help
- > Network (severe)
wp-admin/edit.php?post_type=smart_brand_sc&page=brand_help - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/edit.php?post_type=smart_brand_sc&page=smart-brands-settings
- > Network (severe)
wp-admin/edit.php?post_type=smart_brand_sc&page=smart-brands-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: There are too many tags (24 tag instead of maximum 10)
smart-brands-for-woocommerce/smart-brands-for-woocommerce.php Passed 13 tests
The main PHP file in "Smart Brands for WooCommerce" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
139 characters long description:
Smart Brands for WooCommerce plugin allows you to add brands for products and gain credibility by displaying them in your WooCommerce shop.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin19,374 lines of code in 116 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 15 | 955 | 3 | 4,819 |
PHP | 66 | 1,355 | 2,674 | 4,805 |
CSS | 14 | 710 | 442 | 3,968 |
JavaScript | 10 | 798 | 231 | 3,083 |
SVG | 10 | 3 | 0 | 2,694 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 20.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 44 | |
▷ Abstract classes | 2 | 4.55% |
▷ Concrete classes | 42 | 95.45% |
▷ Final classes | 0 | 0.00% |
Methods | 206 | |
▷ Static methods | 62 | 30.10% |
▷ Public methods | 199 | 96.60% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 3.40% |
Functions | 23 | |
▷ Named functions | 19 | 82.61% |
▷ Anonymous functions | 4 | 17.39% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/Admin/Framework/assets/images/checkerboard.png | 1.26KB | 1.26KB | 0.31% |
core/Admin/GutenbergBlock/assets/wp-brand-block-preview.png | 23.75KB | 25.04KB | 0.00% |