Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.89ms] Passed 4 tests
A check of server-side resources used by Affiliate Coupons for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.74 ▼3.33 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.62 ▲0.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.51 ▼6.73 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.21 ▼1.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.26 ▲2.32 |
Commissions /wp-admin/admin.php?page=affiliate-coupons-commissions | 3.18 | 31.18 |
Affiliates /wp-admin/admin.php?page=affiliate-coupons-affiliates | 3.21 | 32.68 |
Affiliate Coupons /wp-admin/admin.php?page=affiliate-coupons-admin-menu | 3.21 | 30.62 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
Affiliate Coupons for Woocommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.22 ▼1.59 | 1.77 ▲0.07 | 42.78 ▼7.46 |
Dashboard /wp-admin | 2,233 ▲42 | 5.84 ▼0.21 | 104.31 ▼2.89 | 39.95 ▼6.78 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.06 ▲0.08 | 36.34 ▼5.15 | 33.00 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,559 ▲17 | 23.10 ▲4.75 | 672.90 ▲42.31 | 51.21 ▼1.58 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.18 ▲0.02 | 96.89 ▼1.43 | 40.86 ▲0.18 |
Commissions /wp-admin/admin.php?page=affiliate-coupons-commissions | 706 | 1.14 | 6.49 | 21.26 |
Affiliates /wp-admin/admin.php?page=affiliate-coupons-affiliates | 900 | 2.03 | 23.39 | 26.18 |
Affiliate Coupons /wp-admin/admin.php?page=affiliate-coupons-admin-menu | 849 | 2.18 | 26.58 | 27.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=affiliate-coupons-commissions
- > Error in wp-content/plugins/affiliate-coupon-codes-for-woocommerce/affiliate-coupons-woo-loda.php+405
Uncaught Error: Call to undefined function wc_get_orders() in wp-content/plugins/affiliate-coupon-codes-for-woocommerce/affiliate-coupons-woo-loda.php:405
Stack trace:
#0 wp-includes/class-wp-hook.php(310): loda_affiliate_coupons_commissions()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliate-coupon-codes-for-woocommerce/affiliate-coupons-woo-loda.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: affiliate coupons woocommerce, affiliate, affiliate coupons
affiliate-coupon-codes-for-woocommerce/affiliate-coupons-woo-loda.php 92% from 13 tests
"Affiliate Coupons for Woocommerce" version 1.0'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: The principal plugin file should be the same as the plugin slug ("affiliate-coupon-codes-for-woocommerce.php" instead of "affiliate-coupons-woo-loda.php")
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 detected374 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 100 | 33 | 374 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected