Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.75ms] Passed 4 tests
Server-side resources used by WooCommerce Extended Coupon Features FREE
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.47 ▼2.87 |
Dashboard /wp-admin | 3.33 ▼0.02 | 43.05 ▼20.49 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.40 ▲0.63 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 78.34 ▼8.28 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.65 ▲3.98 |
Server storage [IO: ▲1.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Extended Coupon Features FREE
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲48 | 14.51 ▲0.16 | 1.65 ▼0.06 | 43.90 ▲0.02 |
Dashboard /wp-admin | 2,197 ▲17 | 5.55 ▲0.02 | 85.70 ▼0.39 | 38.77 ▲0.14 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.02 ▲0.03 | 33.87 ▼3.70 | 34.95 ▼2.42 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.21 ▲4.78 | 665.92 ▲53.71 | 51.17 ▼8.89 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.23 ▲0.00 | 108.86 ▲8.50 | 47.72 ▲2.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: discount, woocommerce, coupons
woocommerce-auto-added-coupons/woocommerce-jos-autocoupon.php 77% from 13 tests
"WooCommerce Extended Coupon Features FREE" version 3.3.3'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:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-auto-added-coupons.php" instead of "woocommerce-jos-autocoupon.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.0.0")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin9,678 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 8 | 1,269 | 1,558 | 3,803 |
PHP | 18 | 780 | 1,436 | 3,392 |
HTML | 7 | 390 | 16 | 1,125 |
JavaScript | 10 | 78 | 105 | 516 |
SVG | 1 | 0 | 0 | 399 |
CSS | 5 | 51 | 88 | 260 |
JSON | 2 | 1 | 0 | 156 |
XML | 1 | 0 | 0 | 23 |
Mustache | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 30.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 286 | |
▷ Static methods | 19 | 6.64% |
▷ Public methods | 218 | 76.22% |
▷ Protected methods | 28 | 9.79% |
▷ Private methods | 40 | 13.99% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 15 | |
▷ Global constants | 1 | 6.67% |
▷ Class constants | 14 | 93.33% |
▷ Public constants | 14 | 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
8 PNG files occupy 0.25MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/img/be_tab_checkout.png | 27.18KB | 14.32KB | ▼ 47.32% |
docs/img/be_tab_extended_features.png | 21.32KB | 10.59KB | ▼ 50.33% |
docs/img/be_tab_usage_restriction.png | 38.64KB | 23.89KB | ▼ 38.18% |
docs/img/be_tab_misc_auto_coupon.png | 16.11KB | 10.81KB | ▼ 32.90% |
docs/img/be_settings_licence.png | 29.82KB | 11.86KB | ▼ 60.24% |