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
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/auto-generate-coupon-for-woocommerce/includes/core-functions.php+14
Undefined index: active_campaign
Server metrics [RAM: ▼1.89MB] [CPU: ▼45.95ms] Passed 4 tests
A check of server-side resources used by Auto generate coupon for Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 11.13 ▼24.08 |
Dashboard /wp-admin | 2.13 ▼1.18 | 6.78 ▼39.39 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 7.62 ▼37.38 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.46 ▼78.91 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 6.63 ▼28.13 |
Auto generate coupon for Woocommerce /wp-admin/admin.php?page=auto_generate_coupon | 2.13 | 7.10 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Auto generate coupon for Woocommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.35 ▲0.02 | 1.70 ▼0.24 | 43.29 ▲0.06 |
Dashboard /wp-admin | 2,194 ▲20 | 5.52 ▼0.15 | 83.63 ▼2.77 | 38.15 ▼8.67 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.04 ▲0.07 | 34.55 ▲0.39 | 30.30 ▼9.68 |
Add New Post /wp-admin/post-new.php | 1,528 ▼7 | 23.67 ▲5.34 | 676.19 ▲29.51 | 50.37 ▼25.90 |
Media Library /wp-admin/upload.php | 1,399 ▼1 | 4.23 ▲0.07 | 98.36 ▼6.75 | 39.69 ▼2.80 |
Auto generate coupon for Woocommerce /wp-admin/admin.php?page=auto_generate_coupon | 882 | 1.67 | 29.83 | 28.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/auto-generate-coupon-for-woocommerce/includes/core-functions.php+14
Undefined index: active_campaign
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=auto_generate_coupon
- > Notice in wp-content/plugins/auto-generate-coupon-for-woocommerce/includes/core-functions.php+14
Undefined index: active_campaign
- > GET request to /wp-admin/admin.php?page=auto_generate_coupon
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP Passed 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 SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=auto_generate_coupon
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).datepicker is not a function" "TypeError: jQuery(...).datepicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=auto_generate_coupon:153:73)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=auto_generate_coupon
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).datepicker is not a function
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Auto generate coupon for Woocommerce===
)
auto-generate-coupon-for-woocommerce/auto_generate_coupon_for_woocommerce.php 77% from 13 tests
"Auto generate coupon for Woocommerce" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "4.5")
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("auto-generate-coupon-for-woocommerce.php" instead of "auto_generate_coupon_for_woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin811 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 44 | 65 | 446 |
PHP | 11 | 127 | 42 | 299 |
PO File | 1 | 20 | 22 | 66 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
No PNG files were detected