Create custom product labels and sale badges for WooCommerce products to highlight offers and promotions.
Prioritized issue groups from the latest Plugin Check scan
Maintainability
64
13 issue groups
Security
58
7 issue groups
I18n
13
3 issue groups
Performance
1
1 issue group
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$product'.
Sample message
date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.
Sample message
Use of a direct database call is discouraged.
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
Sample message
Missing $domain parameter in function call to __().
Sample message
Found unescaped literal "%" character.
Sample message
Unescaped parameter $productID used in $wpdb->get_col()\n$productID assigned unsafely at line 1309.
Sample message
SQL wildcards for a LIKE query should be passed in through a replacement parameter. Found: LIKE '%.
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "active_plugins".
Sample message
Use placeholders and $wpdb->prepare(); found $prodvalues
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "$post_type . '_labels'".
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable $productID at "SELECT ID FROM {$wpdb->prefix}posts WHERE post_status = 'publish' AND post_parent IN ($productID) AND post_type = 'product_variation'"
Sample message
Simple placeholders should not be quoted in the query string in $wpdb->prepare(). Found: '%s'.
Sample message
Detected usage of meta_query, possible slow query.
Sample message
Detected usage of tax_query, possible slow query.
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$badge".
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.
Sample message
The $context parameter must be a single text string literal. Found: $post_type
Sample message
load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.
Sample message
The parameter "['taxonomy' => 'product_cat', 'hide_empty' => false, 'fields' => 'id=>name']" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.
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.
Sample message
Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://wpvip.com/documentation/performance-improvements-by-removing-usage-of-post__not_in/ for more information.
Sample message
Plugin name "Product Labels For Woocommerce (Sale Badges)" is different from the name declared in plugin header "Acowebs Product Labels For Woocommerce".
Sample message
Missing "License" in Plugin Header. Please update your Plugin Header with a valid GPLv2 (or later) compatible license.
Not analyzed yet.
First score snapshot
v1.5.14
36
Latest
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 36 | 138 | 90 | 48 | v1.5.14 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.