Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.21ms] Passed 4 tests
Server-side resources used by Advance Coupons for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.20 ▼4.76 |
Dashboard /wp-admin | 3.38 ▲0.08 | 48.62 ▼3.33 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.67 ▼3.49 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 94.41 ▼0.44 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.31 ▼1.24 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
sdwac_multi |
sdwac_show_product_discount |
widget_theysaidso_widget |
sdwac_url |
can_compress_scripts |
sdwac_first_time_purchase_coupon |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Advance Coupons for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.21 ▼1.14 | 4.73 ▲3.00 | 42.72 ▼2.85 |
Dashboard /wp-admin | 2,232 ▲41 | 5.81 ▼0.08 | 103.22 ▲1.64 | 47.56 ▲1.81 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.01 ▼0.12 | 44.27 ▲7.49 | 39.68 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.48 ▲0.07 | 641.81 ▼55.11 | 52.57 ▲0.62 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.24 ▲0.03 | 97.63 ▼10.45 | 52.03 ▲7.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-posts
- sdwac_multi
- db_upgraded
- widget_theysaidso_widget
- sdwac_show_product_discount
- sdwac_url
- theysaidso_admin_options
- sdwac_first_time_purchase_coupon
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advance-coupons-for-woocommerce/includes/Admin/views/plugin-notice.php:4
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: ""
advance-coupons-for-woocommerce/coupons.php 77% from 13 tests
The main PHP script in "Advance Coupons for Woocommerce" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Name the main plugin file the same as the plugin slug ("advance-coupons-for-woocommerce.php" instead of "coupons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,975 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 368 | 533 | 1,768 |
CSS | 1 | 33 | 0 | 165 |
JavaScript | 2 | 3 | 1 | 37 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 13.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 1 | 4.55% |
Methods | 120 | |
▷ Static methods | 15 | 12.50% |
▷ Public methods | 116 | 96.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 3.33% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 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
There were not PNG files found in your plugin