Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.21ms] Passed 4 tests
Server-side resources used by AffiliateWP - External Referral Links
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 34.29 ▼4.43 |
Dashboard /wp-admin | 3.41 ▲0.10 | 45.24 ▼3.86 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 45.95 ▼5.18 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 84.17 ▼11.38 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.52 ▲1.10 |
External Referral Links /wp-admin/options-general.php?page=external-referral-links | 3.30 | 31.59 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
affwp_erl_version |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
affiliatewp_external_referral_links |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
AffiliateWP - External Referral Links: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.17 ▼1.21 | 1.69 ▼0.43 | 37.34 ▼7.99 |
Dashboard /wp-admin | 2,210 ▲25 | 5.84 ▲0.02 | 104.47 ▲3.82 | 39.82 ▼5.89 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.97 ▼0.04 | 37.75 ▲1.71 | 36.38 ▲2.77 |
Add New Post /wp-admin/post-new.php | 1,517 ▼12 | 17.69 ▼0.53 | 718.87 ▲94.52 | 57.42 ▲4.65 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.00 | 104.24 ▼5.21 | 48.42 ▲0.26 |
External Referral Links /wp-admin/options-general.php?page=external-referral-links | 829 | 2.02 | 26.64 | 28.27 |
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
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- affiliatewp_external_referral_links
- affwp_erl_version
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliatewp-external-referral-links/includes/admin.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
affiliatewp-external-referral-links/affiliatewp-external-referral-links.php Passed 13 tests
The main file in "AffiliateWP - External Referral Links" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
106 characters long description:
Allows you to promote external landing pages/sites with the affiliate ID or username appended to the URLs.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,048 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 236 | 912 | 701 |
JavaScript | 4 | 76 | 51 | 248 |
PO File | 2 | 22 | 25 | 94 |
Markdown | 1 | 3 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.20 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 2 | 40.00% |
▷ Concrete classes | 3 | 60.00% |
▷ Final classes | 1 | 33.33% |
Methods | 77 | |
▷ Static methods | 1 | 1.30% |
▷ Public methods | 37 | 48.05% |
▷ Protected methods | 22 | 28.57% |
▷ Private methods | 18 | 23.38% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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