Write the custom stock status with different colors for each woocommerce product, to show in product details and listing pages.
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
Security
56
5 issue groups
I18n
41
2 issue groups
Maintainability
19
8 issue groups
Repo Compliance
1
1 issue group
ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$availability_html'.40
- Category
- Security
- Occurrences
- 40
- Severity
- error
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$availability_html'.
ERRORI18nNon Singular String Literal TextThe $text parameter must be a single text string literal. Found: $availability['availability']26
- Category
- I18n
- Occurrences
- 26
- Severity
- error
Sample message
The $text parameter must be a single text string literal. Found: $availability['availability']
ERRORI18nText Domain MismatchMismatched text domain. Expected 'woo-custom-stock-status' but got 'porto'.15
- Category
- I18n
- Occurrences
- 15
- Severity
- error
Sample message
Mismatched text domain. Expected 'woo-custom-stock-status' but got 'porto'.
WARNINGSecurityMissingProcessing form data without nonce verification.10
- Category
- Security
- Occurrences
- 10
- Severity
- warning
Sample message
Processing form data without nonce verification.
WARNINGMaintainabilityNon Prefixed Class FoundClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: "WC_Custom_Stock_status".9
- Category
- Maintainability
- Occurrences
- 9
- Severity
- warning
Sample message
Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "WC_Custom_Stock_status".
WARNINGMaintainabilityNon Prefixed Hookname FoundHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "wc_wc_add_new_stock_status_html".3
- Category
- Maintainability
- Occurrences
- 3
- Severity
- warning
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "wc_wc_add_new_stock_status_html".
WARNINGSecurityMissing Unslash$_POST[$meta_key] not unslashed before sanitization. Use wp_unslash() or similar3
- Category
- Security
- Occurrences
- 3
- Severity
- warning
Sample message
$_POST[$meta_key] not unslashed before sanitization. Use wp_unslash() or similar
WARNINGSecurityRecommendedProcessing form data without nonce verification.2
- Category
- Security
- Occurrences
- 2
- Severity
- warning
Sample message
Processing form data without nonce verification.
WARNINGMaintainabilityupgrade notice limitThe upgrade notice for "1.4.8 - 22/03/24" exceeds the limit of 300 characters.2
- Category
- Maintainability
- Occurrences
- 2
- Severity
- warning
Sample message
The upgrade notice for "1.4.8 - 22/03/24" exceeds the limit of 300 characters.
WARNINGMaintainabilityNon Prefixed Constant FoundGlobal constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "UPDATE_META_TAG_YOAST_SEO".1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "UPDATE_META_TAG_YOAST_SEO".
Show 6 moreShow less
WARNINGMaintainabilityNon Prefixed Variable Found1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$product".
ERRORSecurityUnsafe Printing Function1
- Category
- Security
- Occurrences
- 1
- Severity
- error
Sample message
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
WARNINGMaintainabilityMissing Version1
- Category
- Maintainability
- Occurrences
- 1
- 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.
ERRORRepo Complianceoutdated tested upto header1
- Category
- Repo Compliance
- Occurrences
- 1
- Severity
- error
Sample message
Tested up to: 6.7 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.
WARNINGMaintainabilitytrademarked term1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
The plugin slug includes a restricted term. Your plugin slug - "woo-custom-stock-status" - contains the restricted term "woo" and cannot be used to begin your plugin slug. We disallow the use of certain terms in ways that are abused, or potentially infringe on and/or are misleading with regards to trademarks. You may use the term "woo" elsewhere in your plugin slug, such as "... for woo".
ERRORMaintainabilitywp function not compatible with requires wp1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- error
Sample message
Function "str_contains()" requires WordPress 5.9.0, but your plugin minimum supported version is WordPress 5.8.0.
Score History
First score snapshot
v1.6.7
41
Latest
- Findings
- 117
- Errors
- 84
- Warnings
- 33
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 41 | 117 | 84 | 33 | v1.6.7 | 2.0.0 |