Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.96MB] [CPU: ▼42.75ms] Passed 4 tests
Server-side resources used by Affiliate WooCommerce Coupons Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.88 ▼2.33 |
Dashboard /wp-admin | 3.00 ▼0.35 | 31.23 ▼33.94 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 26.01 ▼23.87 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 27.46 ▼98.08 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 20.50 ▼15.09 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Affiliate WooCommerce Coupons Integration
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.75 ▲0.85 | 1.73 ▲0.03 | 37.81 ▼2.40 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▼0.05 | 91.71 ▼14.59 | 39.97 ▼4.86 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▼0.00 | 39.09 ▼2.75 | 34.44 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.31 ▼0.15 | 610.15 ▼25.07 | 61.62 ▲5.37 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.19 ▲0.01 | 99.38 ▼9.10 | 43.03 ▼2.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/affiliate-woocommerce-coupons-integration/aff-woo-coupons-addon.php+80
Use of undefined constant WP_AFF_PLATFORM_PATH - assumed 'WP_AFF_PLATFORM_PATH' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% 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 need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
affiliate-woocommerce-coupons-integration/aff-woo-coupons-addon.php 92% from 13 tests
The main file in "Affiliate WooCommerce Coupons Integration" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("affiliate-woocommerce-coupons-integration.php" instead of "aff-woo-coupons-addon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin289 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 55 | 21 | 288 |
CSS | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 2 | 9.09% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin