The Affiliates system provides the most powerful growth-oriented tools to run a successful Affiliate Marketing Program.
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
Security
1,503
12 issue groups
Maintainability
542
9 issue groups
I18n
98
4 issue groups
ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$accepted_series_json'.301
- Category
- Security
- Occurrences
- 301
- Severity
- error
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$accepted_series_json'.
WARNINGSecurityInterpolated SQL is not preparedUse placeholders and $wpdb->prepare(); found interpolated variable $affiliates_attributes_table at "SELECT attr_value FROM $affiliates_attributes_table WHERE affiliate_id = %d AND attr_key = 'paypal_email'"280
- Category
- Security
- Occurrences
- 280
- Severity
- warning
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable $affiliates_attributes_table at "SELECT attr_value FROM $affiliates_attributes_table WHERE affiliate_id = %d AND attr_key = 'paypal_email'"
WARNINGSecurityRequest data is not unslashed$_COOKIE[AFFILIATES_COOKIE_NAME] not unslashed before sanitization. Use wp_unslash() or similar238
- Category
- Security
- Occurrences
- 238
- Severity
- warning
Sample message
$_COOKIE[AFFILIATES_COOKIE_NAME] not unslashed before sanitization. Use wp_unslash() or similar
WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_COOKIE[AFFILIATES_COOKIE_NAME]233
- Category
- Security
- Occurrences
- 233
- Severity
- warning
Sample message
Detected usage of a non-sanitized input variable: $_COOKIE[AFFILIATES_COOKIE_NAME]
WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.171
- Category
- Maintainability
- Occurrences
- 171
- Severity
- warning
Sample message
Use of a direct database call is discouraged.
WARNINGMaintainabilityNo CachingDirect database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().165
- Category
- Maintainability
- Occurrences
- 165
- Severity
- warning
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
ERRORMaintainabilitydate datedate() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.101
- Category
- Maintainability
- Occurrences
- 101
- Severity
- error
Sample message
date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.
WARNINGSecurityDatabase parameter is not escapedUnescaped parameter $affiliates_attributes_table used in $wpdb->get_var()\n$affiliates_attributes_table assigned unsafely at line 1139.99
- Category
- Security
- Occurrences
- 99
- Severity
- warning
Sample message
Unescaped parameter $affiliates_attributes_table used in $wpdb->get_var()\n$affiliates_attributes_table assigned unsafely at line 1139.
ERRORSecuritySQL query is not preparedUse placeholders and $wpdb->prepare(); found $affiliate_ids98
- Category
- Security
- Occurrences
- 98
- Severity
- error
Sample message
Use placeholders and $wpdb->prepare(); found $affiliate_ids
ERRORI18nMissing Translators CommentA function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.71
- Category
- I18n
- Occurrences
- 71
- Severity
- error
Sample message
A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
Show 15 moreShow less
WARNINGSecurityInput is not validated70
- Category
- Security
- Occurrences
- 70
- Severity
- warning
Sample message
Detected usage of a possibly undefined superglobal array index: $_POST['affiliate-id-field']. Check that the array index exists before using it.
ERRORSecurityDatabase parameter is not escaped54
- Category
- Security
- Occurrences
- 54
- Severity
- error
Sample message
Unescaped parameter $campaigns_table used in $wpdb->get_var()\n$campaigns_table assigned unsafely at line 247.
WARNINGSecurityNonce verification recommended51
- Category
- Security
- Occurrences
- 51
- Severity
- warning
Sample message
Processing form data without nonce verification.
WARNINGMaintainabilityNon-prefixed global variable42
- Category
- Maintainability
- Occurrences
- 42
- Severity
- warning
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$affiliate_user_id".
WARNINGSecurityMissing nonce verification39
- Category
- Security
- Occurrences
- 39
- Severity
- warning
Sample message
Processing form data without nonce verification.
WARNINGSecurityUnfinished Prepare22
- Category
- Security
- Occurrences
- 22
- Severity
- warning
Sample message
Replacement variables found, but no valid placeholders found in the query.
WARNINGMaintainabilitySchema Change19
- Category
- Maintainability
- Occurrences
- 19
- Severity
- warning
Sample message
Attempting a database schema change is discouraged.
ERRORSecurityUnsafe printing function18
- Category
- Security
- Occurrences
- 18
- Severity
- error
Sample message
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
WARNINGMaintainabilityNot In Footer17
- Category
- Maintainability
- Occurrences
- 17
- Severity
- warning
Sample message
In footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.
ERRORI18nUnordered Placeholders Text14
- Category
- I18n
- Occurrences
- 14
- Severity
- error
Sample message
Multiple placeholders in translatable strings should be ordered. Expected "%1$d, %2$d", but got "%d, %d" in 'The default value is %d. In this case, if a visitor comes to your site via an affiliate link, a suggested referral will be valid until %d days after she or he clicked that affiliate link.'.
WARNINGMaintainabilityNon-prefixed hook name13
- Category
- Maintainability
- Occurrences
- 13
- Severity
- warning
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "active_plugins".
ERRORI18nMissing Arg Domain9
- Category
- I18n
- Occurrences
- 9
- Severity
- error
Sample message
Missing $domain parameter in function call to __().
ERRORMaintainabilitystrip tags strip tags7
- Category
- Maintainability
- Occurrences
- 7
- Severity
- error
Sample message
strip_tags() is discouraged. Use the more comprehensive wp_strip_all_tags() instead.
WARNINGMaintainabilityMissing Version7
- Category
- Maintainability
- Occurrences
- 7
- Severity
- warning
Sample message
Resource version not set in call to wp_register_script(). This means new versions of the script may not always be loaded due to browser caching.
WARNINGI18nNo Html Wrapped Strings4
- Category
- I18n
- Occurrences
- 4
- Severity
- warning
Sample message
Translatable string should not be wrapped in HTML. Found: '<strong>ERROR</strong>'
External Connections
Not analyzed yet.
Score History
First score snapshot
v6.0.0
25
Latest
- Findings
- 2,172
- Errors
- 689
- Warnings
- 1,483
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 25 | 2,172 | 689 | 1,483 | v6.0.0 | 2.0.0 |
Relationship Map
Author, categories, issues, domains, and nearby plugins.