myCred is a flexible WordPress loyalty points and gamification plugin for points, badges, ranks, referrals, and WooCommerce rewards.
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
Maintainability
2,338
12 issue groups
Security
1,950
8 issue groups
I18n
306
5 issue groups
WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$account_addon_ids".1,094
- Category
- Maintainability
- Occurrences
- 1,094
- Severity
- warning
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$account_addon_ids".
ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '" <a href='{$skip_url}' class='button button-small button-secondary'>{$use_plugin_anonymously_text}</a>"'.580
- Category
- Security
- Occurrences
- 580
- Severity
- error
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '" <a href='{$skip_url}' class='button button-small button-secondary'>{$use_plugin_anonymously_text}</a>"'.
WARNINGSecurityRecommendedProcessing form data without nonce verification.553
- Category
- Security
- Occurrences
- 553
- Severity
- warning
Sample message
Processing form data without nonce verification.
WARNINGSecurityInterpolated Not PreparedUse placeholders and $wpdb->prepare(); found interpolated variable $between at "SELECT $having FROM %i WHERE ctype = %s AND ref = %s $specific AND user_id = %d $between;"336
- Category
- Security
- Occurrences
- 336
- Severity
- warning
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable $between at "SELECT $having FROM %i WHERE ctype = %s AND ref = %s $specific AND user_id = %d $between;"
WARNINGSecurityMissingProcessing form data without nonce verification.243
- Category
- Security
- Occurrences
- 243
- Severity
- warning
Sample message
Processing form data without nonce verification.
WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.225
- Category
- Maintainability
- Occurrences
- 225
- 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().212
- Category
- Maintainability
- Occurrences
- 212
- Severity
- warning
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
ERRORMaintainabilitymissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;182
- Category
- Maintainability
- Occurrences
- 182
- Severity
- error
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
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.179
- Category
- I18n
- Occurrences
- 179
- 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.
ERRORMaintainabilitydate datedate() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.164
- Category
- Maintainability
- Occurrences
- 164
- Severity
- error
Sample message
date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.
Show 15 moreShow less
WARNINGMaintainabilityNon Prefixed Function Found117
- Category
- Maintainability
- Occurrences
- 117
- Severity
- warning
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "_fs_text".
WARNINGSecurityUnescaped DBParameter99
- Category
- Security
- Occurrences
- 99
- Severity
- warning
Sample message
Unescaped parameter $cubepoints used in $wpdb->get_results()
WARNINGMaintainabilityNon Prefixed Constant Found93
- Category
- Maintainability
- Occurrences
- 93
- Severity
- warning
Sample message
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "FS_API__ADDRESS".
WARNINGMaintainabilityNot In Footer64
- Category
- Maintainability
- Occurrences
- 64
- 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.
WARNINGMaintainabilityNon Prefixed Class Found59
- Category
- Maintainability
- Occurrences
- 59
- Severity
- warning
Sample message
Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "FS_Admin_Menu_Manager".
ERRORSecurityUnescaped DBParameter54
- Category
- Security
- Occurrences
- 54
- Severity
- error
Sample message
Unescaped parameter $after_sql used in $wpdb->get_var()\n$after_sql assigned unsafely at line 206.
WARNINGMaintainabilityMissing Version49
- Category
- Maintainability
- Occurrences
- 49
- Severity
- warning
Sample message
Resource version not set in call to wp_enqueue_script(). This means new versions of the script may not always be loaded due to browser caching.
ERRORSecurityNot Prepared48
- Category
- Security
- Occurrences
- 48
- Severity
- error
Sample message
Use placeholders and $wpdb->prepare(); found $SQL
ERRORMaintainabilityblock api version too low45
- Category
- Maintainability
- Occurrences
- 45
- Severity
- error
Sample message
Editor blocks must define "apiVersion" 3 or higher in block.json for WordPress 7.0+ iframe editor compatibility.
ERRORI18nMissing Arg Domain43
- Category
- I18n
- Occurrences
- 43
- Severity
- error
Sample message
Missing $domain parameter in function call to __().
WARNINGSecurityReplacements Wrong Number37
- Category
- Security
- Occurrences
- 37
- Severity
- warning
Sample message
Incorrect number of replacements passed to $wpdb->prepare(). Found 1 replacement parameters, expected 2.
WARNINGMaintainabilityNon Prefixed Hookname Found34
- Category
- Maintainability
- Occurrences
- 34
- Severity
- warning
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "You must exchange at least".
ERRORI18nNon Singular String Literal Text33
- Category
- I18n
- Occurrences
- 33
- Severity
- error
Sample message
The $text parameter must be a single text string literal. Found: $align
ERRORI18nText Domain Mismatch28
- Category
- I18n
- Occurrences
- 28
- Severity
- error
Sample message
Mismatched text domain. Expected 'mycred' but got ''.
ERRORI18nUnordered Placeholders Text23
- Category
- I18n
- Occurrences
- 23
- Severity
- error
Sample message
Multiple placeholders in translatable strings should be ordered. Expected "%1$d, %2$d", but got "%d, %d" in 'Import complete - A total of <strong>%d</strong> balances were successfully imported. <strong>%d</strong> was skipped.'.
Score History
First score snapshot
v3.1.2
21
Latest
- Findings
- 4,802
- Errors
- 1,469
- Warnings
- 3,333
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 21 | 4,802 | 1,469 | 3,333 | v3.1.2 | 2.0.0 |