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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.30MB] [CPU: ▼7.06ms] Passed 4 tests
A check of server-side resources used by Advanced Coupons – WooCommerce Coupons, Store Credit, Gift Cards, Loyalty Program, BOGO Coupons, Discount Rules
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 35.46 ▼6.46 |
Dashboard /wp-admin | 3.65 ▲0.30 | 50.61 ▼14.07 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 49.91 ▲1.20 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 90.18 ▼8.91 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 36.90 ▲4.25 |
Server storage [IO: ▲8.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 468 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Coupons – WooCommerce Coupons, Store Credit, Gift Cards, Loyalty Program, BOGO Coupons, Discount Rules
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲64 | 14.74 ▲0.42 | 1.64 ▼0.06 | 30.72 ▼13.58 |
Dashboard /wp-admin | 2,234 ▲56 | 5.54 ▼0.13 | 96.87 ▼10.18 | 89.45 ▲46.38 |
Posts /wp-admin/edit.php | 2,136 ▲33 | 2.12 ▲0.14 | 39.44 ▼0.43 | 40.78 ▲7.69 |
Add New Post /wp-admin/post-new.php | 1,568 ▲31 | 23.12 ▲0.10 | 762.71 ▲171.44 | 55.85 ▼0.83 |
Media Library /wp-admin/upload.php | 1,436 ▲42 | 4.23 ▲0.04 | 97.36 ▼0.44 | 79.62 ▲38.63 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/advanced-coupons-for-woocommerce-free/Models/Objects/Emails/Coupon.php:12
- > PHP Fatal error
Uncaught Error: Class 'ACFWF\\Abstracts\\Base_Model' not found in wp-content/plugins/advanced-coupons-for-woocommerce-free/Models/Objects/Blocks/Checkout_Integration.php:13
- > PHP Fatal error
Trait 'ACFWF\\Traits\\Singleton' not found in wp-content/plugins/advanced-coupons-for-woocommerce-free/Abstracts/Base_Model.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'ACFWF\\Abstracts\\Base_Model' not found in wp-content/plugins/advanced-coupons-for-woocommerce-free/Models/Objects/Blocks/Cart_Integration.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_Coupon' not found in wp-content/plugins/advanced-coupons-for-woocommerce-free/Models/Objects/Advanced_Coupon.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/advanced-coupons-for-woocommerce-free/views/coupons/view-email-preview-error.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Tags: There are too many tags (23 tag instead of maximum 10)
advanced-coupons-for-woocommerce-free/advanced-coupons-for-woocommerce-free.php Passed 13 tests
This is the main PHP file of "Advanced Coupons – WooCommerce Coupons, Store Credit, Gift Cards, Loyalty Program, BOGO Coupons, Discount Rules" version 4.5.8.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
Advanced Coupons for WooCommerce (Free Version) gives WooCommerce store owners extra coupon features so they can market their stores better.
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
Everything looks great! No dangerous files found in this plugin32,826 lines of code in 414 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 4,143 | 12,689 | 16,569 |
TypeScript | 187 | 2,487 | 2,350 | 9,457 |
Sass | 44 | 792 | 1 | 3,785 |
PO File | 1 | 922 | 1,230 | 1,906 |
CSS | 15 | 45 | 27 | 638 |
JSON | 1 | 0 | 0 | 260 |
SVG | 4 | 14 | 0 | 148 |
JavaScript | 39 | 1 | 82 | 63 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 24.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 174.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 5 | |
Traits | 3 | |
Classes | 70 | |
▷ Abstract classes | 4 | 5.71% |
▷ Concrete classes | 66 | 94.29% |
▷ Final classes | 0 | 0.00% |
Methods | 962 | |
▷ Static methods | 42 | 4.37% |
▷ Public methods | 756 | 78.59% |
▷ Protected methods | 52 | 5.41% |
▷ Private methods | 154 | 16.01% |
Functions | 66 | |
▷ Named functions | 2 | 3.03% |
▷ Anonymous functions | 64 | 96.97% |
Constants | 112 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 112 | 100.00% |
▷ Public constants | 112 | 100.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
17 PNG files occupy 0.29MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/twilio-logo.png | 2.24KB | 1.89KB | ▼ 15.76% |
images/coupons-free-guide.png | 111.73KB | 39.52KB | ▼ 64.63% |
images/wws-logo.png | 7.72KB | 5.14KB | ▼ 33.46% |
images/woo-logo.png | 1.60KB | 1.34KB | ▼ 15.94% |
images/agc-icon.png | 44.23KB | 18.10KB | ▼ 59.08% |