Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/banner-management-for-woocommerce/woocommerce-category-banner-management.php+335
Uncaught Error: Call to undefined function wcbm_fs() in wp-content/plugins/banner-management-for-woocommerce/woocommerce-category-banner-management.php:335
Stack trace:
#0 wp-admin/includes/plugin.php(2318): include_once()
#1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.35ms] Passed 4 tests
This is a short check of server-side resources used by Banner Management For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.81 ▲2.60 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.22 ▼2.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.50 ▼3.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.30 ▼19.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.32 ▲0.01 |
Server storage [IO: ▲19.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 310 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Banner Management For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.34 ▼0.02 | 1.56 ▼0.32 | 39.86 ▼7.98 |
Dashboard /wp-admin | 2,189 ▲12 | 5.51 ▼0.03 | 84.93 ▼21.26 | 35.40 ▼8.56 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.06 | 39.16 ▼1.35 | 35.89 ▼3.64 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 18.31 ▼4.62 | 599.29 ▼69.54 | 101.08 ▲13.20 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.20 ▼0.03 | 96.84 ▼10.16 | 40.09 ▼12.84 |
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 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/banner-management-for-woocommerce/public/partials/woocommerce-category-banner-management-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 17 tag instead of maximum 10
- Screenshots: These screenshots need descriptions #12, #13, #14 in banner-management-for-woocommerce/assets to your readme.txt
- Donate link: Invalid URI ("")
banner-management-for-woocommerce/woocommerce-category-banner-management.php 85% from 13 tests
"Banner Management For WooCommerce" version 2.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("banner-management-for-woocommerce.php" instead of "woocommerce-category-banner-management.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin72,301 lines of code in 197 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 145 | 9,154 | 18,711 | 50,788 |
SVG | 14 | 0 | 8 | 9,805 |
PO File | 3 | 1,797 | 5,646 | 4,331 |
JavaScript | 9 | 619 | 252 | 4,234 |
CSS | 25 | 387 | 103 | 3,127 |
XML | 1 | 3 | 0 | 16 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,088)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 268)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 97.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 5.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 268.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 2 | 3.33% |
▷ Concrete classes | 58 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 1,371 | |
▷ Static methods | 222 | 16.19% |
▷ Public methods | 965 | 70.39% |
▷ Protected methods | 23 | 1.68% |
▷ Private methods | 383 | 27.94% |
Functions | 125 | |
▷ Named functions | 124 | 99.20% |
▷ Anonymous functions | 1 | 0.80% |
Constants | 153 | |
▷ Global constants | 102 | 66.67% |
▷ Class constants | 51 | 33.33% |
▷ Public constants | 51 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
33 PNG files occupy 9.62MB with 6.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/images/category_setting_image.png | 104.94KB | 32.62KB | ▼ 68.92% |
public/css/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
admin/partials/images/product_banner_metabox_setting_image.png | 243.11KB | 64.30KB | ▼ 73.55% |
admin/images/product_banner_global_setting_image.png | 227.69KB | 55.99KB | ▼ 75.41% |
admin/images/pro-features-img/feature-box-five-img.png | 669.41KB | 200.26KB | ▼ 70.08% |