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: ▲1.49MB] [CPU: ▲7.74ms] Passed 4 tests
An overview of server-side resources used by Affiliate Coupons - The #1 WordPress Coupon Plugin for Affiliate Marketers
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.73 ▲1.27 | 52.63 ▲12.29 |
Dashboard /wp-admin | 4.87 ▲1.57 | 69.90 ▲16.25 |
Posts /wp-admin/edit.php | 4.92 ▲1.56 | 64.21 ▲6.94 |
Add New Post /wp-admin/post-new.php | 7.62 ▲1.73 | 103.14 ▼4.51 |
Media Library /wp-admin/upload.php | 4.79 ▲1.56 | 58.55 ▲22.37 |
Categories /wp-admin/edit-tags.php?taxonomy=affcoups_coupon_category&post_type=affcoups_coupon | 4.79 | 50.80 |
Settings /wp-admin/edit.php?post_type=affcoups_coupon&page=affcoups_settings | 4.76 | 53.74 |
Dashboard /wp-admin/plugins.php?page=meta-box | 4.88 | 45.70 |
Types /wp-admin/edit-tags.php?taxonomy=affcoups_coupon_type&post_type=affcoups_coupon | 4.79 | 52.33 |
Add Coupon /wp-admin/post-new.php?post_type=affcoups_coupon | 7.73 | 110.09 |
All Coupons /wp-admin/edit.php?post_type=affcoups_coupon | 4.86 | 59.42 |
Vendors /wp-admin/edit.php?post_type=affcoups_vendor | 4.86 | 52.84 |
Server storage [IO: ▲1.95MB] [DB: ▲0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 602 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_affcoups_single_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
affcoups_version |
widget_affcoups_multiple_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Affiliate Coupons - The #1 WordPress Coupon Plugin for Affiliate Marketers
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲182 | 13.82 ▼0.94 | 10.62 ▲8.77 | 38.97 ▲0.35 |
Dashboard /wp-admin | 2,257 ▲80 | 5.74 ▲0.06 | 86.90 ▼3.19 | 79.05 ▲38.73 |
Posts /wp-admin/edit.php | 2,145 ▲42 | 1.97 ▼0.01 | 35.28 ▼5.95 | 36.67 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,592 ▲64 | 21.02 ▼1.92 | 681.24 ▲45.65 | 147.35 ▲96.55 |
Media Library /wp-admin/upload.php | 1,457 ▲57 | 4.07 ▼0.14 | 104.36 ▲6.51 | 75.78 ▲33.50 |
Categories /wp-admin/edit-tags.php?taxonomy=affcoups_coupon_category&post_type=affcoups_coupon | 1,418 | 2.31 | 40.30 | 46.05 |
Settings /wp-admin/edit.php?post_type=affcoups_coupon&page=affcoups_settings | 2,979 | 3.26 | 75.44 | 50.64 |
Dashboard /wp-admin/plugins.php?page=meta-box | 1,322 | 2.17 | 28.64 | 46.20 |
Types /wp-admin/edit-tags.php?taxonomy=affcoups_coupon_type&post_type=affcoups_coupon | 1,424 | 2.26 | 30.64 | 40.48 |
Add Coupon /wp-admin/post-new.php?post_type=affcoups_coupon | 6,562 | 26.70 | 873.54 | 168.16 |
All Coupons /wp-admin/edit.php?post_type=affcoups_coupon | 1,289 | 2.42 | 39.42 | 35.46 |
Vendors /wp-admin/edit.php?post_type=affcoups_vendor | 1,223 | 2.40 | 36.08 | 38.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 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
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-posts
- affcoups_version
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_affcoups_multiple_widget
- can_compress_scripts
- widget_affcoups_single_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 10× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/affiliate-coupons/includes/vendor/meta-box/inc/templates/upload.php
- > /wp-content/plugins/affiliate-coupons/includes/vendor/meta-box/inc/templates/image-advanced.php
- > /wp-content/plugins/affiliate-coupons/vendor/wpmetabox/meta-box/inc/templates/media.php
- > /wp-content/plugins/affiliate-coupons/includes/vendor/meta-box/inc/templates/media.php
- > /wp-content/plugins/affiliate-coupons/vendor/wpmetabox/meta-box/inc/templates/image-advanced.php
- > /wp-content/plugins/affiliate-coupons/vendor/wpmetabox/meta-box/inc/templates/video.php
- > /wp-content/plugins/affiliate-coupons/includes/vendor/meta-box/inc/templates/audio.php
- > /wp-content/plugins/affiliate-coupons/includes/vendor/meta-box/inc/templates/video.php
- > /wp-content/plugins/affiliate-coupons/vendor/wpmetabox/meta-box/inc/templates/audio.php
- > /wp-content/plugins/affiliate-coupons/vendor/wpmetabox/meta-box/inc/templates/upload.php
- 134× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/affiliate-coupons/includes/vendor/meta-box/inc/functions.php:333
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Object_Choice_Field' not found in wp-content/plugins/affiliate-coupons/includes/vendor/meta-box/inc/fields/sidebar.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Choice_Field' not found in wp-content/plugins/affiliate-coupons/includes/vendor/meta-box/inc/fields/object-choice.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Choice_Field' not found in wp-content/plugins/affiliate-coupons/vendor/wpmetabox/meta-box/inc/fields/select.php:5
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/affiliate-coupons/includes/vendor/meta-box/inc/fields/fieldset-text.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/affiliate-coupons/vendor/wpmetabox/meta-box/inc/fields/heading.php:5
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Datetime_Field' not found in wp-content/plugins/affiliate-coupons/includes/vendor/meta-box/inc/fields/date.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Select_Field' not found in wp-content/plugins/affiliate-coupons/vendor/wpmetabox/meta-box/inc/fields/select-advanced.php:5
- > PHP Fatal error
Uncaught Error: Interface 'RWMB_Storage_Interface' not found in wp-content/plugins/affiliate-coupons/includes/vendor/meta-box/inc/storages/base.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/affiliate-coupons/includes/vendor/meta-box/inc/fields/number.php:11
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Invalid URI found ("")
affiliate-coupons/affiliate-coupons.php Passed 13 tests
The main PHP script in "Affiliate Coupons - The #1 WordPress Coupon Plugin for Affiliate Marketers" version 1.6.8 is automatically included on every request by WordPress
78 characters long description:
The best WordPress coupon plugin which helps you to earn more affiliate money!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin24,982 lines of code in 463 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 240 | 3,468 | 8,960 | 15,777 |
JavaScript | 122 | 995 | 903 | 4,207 |
CSS | 67 | 245 | 245 | 3,809 |
LESS | 17 | 331 | 108 | 1,099 |
JSON | 2 | 0 | 0 | 65 |
SVG | 15 | 0 | 0 | 25 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 175 | |
▷ Abstract classes | 12 | 6.86% |
▷ Concrete classes | 163 | 93.14% |
▷ Final classes | 1 | 0.61% |
Methods | 982 | |
▷ Static methods | 599 | 61.00% |
▷ Public methods | 866 | 88.19% |
▷ Protected methods | 62 | 6.31% |
▷ Private methods | 54 | 5.50% |
Functions | 142 | |
▷ Named functions | 129 | 90.85% |
▷ Anonymous functions | 13 | 9.15% |
Constants | 23 | |
▷ Global constants | 23 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
35 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendor/meta-box/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
assets/img/site-logo-reversed.png | 11.73KB | 6.06KB | ▼ 48.31% |
includes/vendor/meta-box/inc/about/images/online-generator.png | 12.95KB | 13.04KB | 0.00% |
includes/vendor/meta-box/img/jqueryui/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |