Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/banner-generator-for-woocommerce/const.php+130
define(): Declaration of case-insensitive constants is deprecated
Server metrics [RAM: ▼1.87MB] [CPU: ▼53.53ms] Passed 4 tests
A check of server-side resources used by Banner Generator For Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.35 | 6.47 ▼34.69 |
Dashboard /wp-admin | 2.14 ▼1.17 | 6.46 ▼40.83 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 6.36 ▼44.31 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 8.11 ▼94.27 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 6.83 ▼29.47 |
Server storage [IO: ▲11.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 155 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
wbg_opts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Banner Generator For Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.15 ▼0.40 | 1.64 ▲0.10 | 40.71 ▼3.15 |
Dashboard /wp-admin | 2,228 ▲48 | 5.74 ▲0.08 | 104.61 ▲12.63 | 43.36 ▲3.78 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.67 ▲0.69 | 47.05 ▲11.51 | 37.49 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.70 ▲0.14 | 687.67 ▲22.37 | 39.63 ▼11.42 |
Media Library /wp-admin/upload.php | 1,433 ▲36 | 5.26 ▲1.06 | 106.09 ▲2.48 | 44.59 ▲1.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/banner-generator-for-woocommerce/const.php+130
define(): Declaration of case-insensitive constants is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- wbg_opts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/banner-generator-for-woocommerce/templates/adminTabContent1.php:10
- > PHP Fatal error
Uncaught Error: Call to a member function getGifSrc() on null in wp-content/plugins/banner-generator-for-woocommerce/templates/adminGifGenerate.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/banner-generator-for-woocommerce/config/settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/banner-generator-for-woocommerce/templates/adminTabContent3.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/banner-generator-for-woocommerce/const.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/banner-generator-for-woocommerce/includes/admin/wbgAdmin.class.php:99
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/banner-generator-for-woocommerce/effects/wooGrid/templates/wbgWooGridEffectAdmin.php:12
- > PHP Fatal error
Uncaught Error: Class 'wbgAdmin' not found in wp-content/plugins/banner-generator-for-woocommerce/templates/adminProjectsPagination.php:13
- > PHP Notice
Undefined variable: project in wp-content/plugins/banner-generator-for-woocommerce/templates/adminGifGenerate.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/banner-generator-for-woocommerce/templates/adminTabContent4.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: animated, products, gif, woocommerce, banner
banner-generator-for-woocommerce/banner-generator-for-woocommerce.php 92% from 13 tests
"Banner Generator For Woocommerce" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
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 detected30,031 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 5,153 | 3,936 | 20,690 |
PHP | 33 | 998 | 2,424 | 4,607 |
CSS | 7 | 135 | 125 | 2,612 |
SVG | 2 | 0 | 0 | 1,601 |
HTML | 1 | 96 | 16 | 447 |
JSON | 1 | 0 | 0 | 74 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 26.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 411 | |
▷ Static methods | 33 | 8.03% |
▷ Public methods | 314 | 76.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 97 | 23.60% |
Functions | 42 | |
▷ Named functions | 26 | 61.90% |
▷ Anonymous functions | 16 | 38.10% |
Constants | 111 | |
▷ Global constants | 64 | 57.66% |
▷ Class constants | 47 | 42.34% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.43MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/help9.png | 92.61KB | 50.92KB | ▼ 45.02% |
assets/images/help2.png | 15.91KB | 8.24KB | ▼ 48.25% |
assets/images/help5.png | 12.29KB | 6.48KB | ▼ 47.31% |
assets/images/help10.png | 139.13KB | 75.75KB | ▼ 45.55% |
assets/plugins/jquery-ui-1.12.1.custom/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |