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.24MB] [CPU: ▼1.61ms] Passed 4 tests
An overview of server-side resources used by Affiliate Coupon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 40.14 ▼0.11 |
Dashboard /wp-admin | 3.55 ▲0.20 | 50.88 ▼9.89 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 51.24 ▲5.93 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 94.91 ▲3.19 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 36.26 ▲0.38 |
All Coupons /wp-admin/edit.php?post_type=coupon | 3.51 | 36.56 |
Settings /wp-admin/edit.php?post_type=coupon&page=coupon-plugin-setting | 3.46 | 33.12 |
Go Pro ➤ /wp-admin/edit.php?post_type=coupon&page=coupon-plugin-setting&tab=pro_settings | 3.47 | 32.36 |
Store /wp-admin/edit-tags.php?taxonomy=coupon-store&post_type=coupon | 3.46 | 33.06 |
Category /wp-admin/edit-tags.php?taxonomy=coupon-category&post_type=coupon | 3.46 | 35.08 |
Add New /wp-admin/post-new.php?post_type=coupon | 3.54 | 45.92 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
affiliate_coupon_lite_settings |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Affiliate Coupon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲124 | 13.32 ▼1.33 | 2.18 ▲0.26 | 46.51 ▲2.29 |
Dashboard /wp-admin | 2,252 ▲64 | 4.85 ▼0.04 | 100.70 ▼14.93 | 43.20 ▼2.32 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.02 ▲0.01 | 40.17 ▲2.51 | 41.12 ▲8.50 |
Add New Post /wp-admin/post-new.php | 1,571 ▲50 | 18.34 ▼4.81 | 604.10 ▼88.69 | 61.37 ▲5.27 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.22 ▼0.00 | 95.97 ▼6.98 | 43.04 ▼1.80 |
All Coupons /wp-admin/edit.php?post_type=coupon | 1,153 | 1.95 | 38.47 | 33.38 |
Settings /wp-admin/edit.php?post_type=coupon&page=coupon-plugin-setting | 1,512 | 2.85 | 60.08 | 38.93 |
Go Pro ➤ /wp-admin/edit.php?post_type=coupon&page=coupon-plugin-setting&tab=pro_settings | 1,054 | 1.92 | 28.97 | 57.01 |
Store /wp-admin/edit-tags.php?taxonomy=coupon-store&post_type=coupon | 1,301 | 2.26 | 28.19 | 31.23 |
Category /wp-admin/edit-tags.php?taxonomy=coupon-category&post_type=coupon | 1,301 | 2.14 | 26.00 | 31.42 |
Add New /wp-admin/post-new.php?post_type=coupon | 1,765 | 2.87 | 56.12 | 40.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- affiliate_coupon_lite_settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 43× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant AFFILIATE_COUPON_LITE_PATH - assumed 'AFFILIATE_COUPON_LITE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliate-coupon-lite/src/custom/custom.php on line 29
- > PHP Warning
Use of undefined constant AFFILIATE_COUPON_LITE_PATH - assumed 'AFFILIATE_COUPON_LITE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliate-coupon-lite/src/custom/custom.php on line 29
- > PHP Warning
Use of undefined constant AFFILIATE_COUPON_LITE_PATH - assumed 'AFFILIATE_COUPON_LITE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliate-coupon-lite/src/custom/custom.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function AffiliateCoupon\\Custom\\Meta\\add_action() in wp-content/plugins/affiliate-coupon-lite/src/custom/meta/meta-box.php:14
- > PHP Warning
include(): Failed opening 'AFFILIATE_COUPON_LITE_PATHsrc/custom/helpers/functions.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/affiliate-coupon-lite/src/custom/custom.php on line 29
- > PHP Warning
Use of undefined constant AFFILIATE_COUPON_LITE_PATH - assumed 'AFFILIATE_COUPON_LITE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliate-coupon-lite/src/custom/custom.php on line 29
- > PHP Warning
include(AFFILIATE_COUPON_LITE_PATHsrc/custom/meta/term-meta.php): failed to open stream: No such file or directory in wp-content/plugins/affiliate-coupon-lite/src/custom/custom.php on line 29
- > PHP Warning
Use of undefined constant AFFILIATE_COUPON_LITE_PATH - assumed 'AFFILIATE_COUPON_LITE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliate-coupon-lite/src/custom/custom.php on line 29
- > PHP Warning
include(): Failed opening 'AFFILIATE_COUPON_LITE_PATHsrc/custom/taxonomy/config.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/affiliate-coupon-lite/src/custom/custom.php on line 29
- > PHP Warning
include(): Failed opening 'AFFILIATE_COUPON_LITE_PATHsrc/custom/shortcode/shortcode.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/affiliate-coupon-lite/src/custom/custom.php on line 29
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2 in affiliate-coupon-lite/assets to your readme.txt
affiliate-coupon-lite/affiliate-coupon-lite.php 92% from 13 tests
The main file in "Affiliate Coupon" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Requires PHP: The required version number must match the one declared in readme.txt ("5.4" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,409 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 125 | 508 | 1,018 |
PO File | 2 | 126 | 140 | 306 |
JavaScript | 3 | 0 | 0 | 43 |
SVG | 1 | 0 | 1 | 38 |
CSS | 4 | 1 | 5 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 8 | |
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 | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/coupon-plugin-guarantee.png | 19.38KB | 10.19KB | ▼ 47.41% |
assets/images/coupon-icon.png | 0.90KB | 0.80KB | ▼ 10.43% |