Enable or disable WooCommerce payment gateways based on cart conditions like the order total.
Prioritized issue groups from the latest Plugin Check scan
I18n
83
4 issue groups
Security
81
8 issue groups
Maintainability
46
13 issue groups
Sample message
The $domain parameter must be a single text string literal. Found: WCCPG_TEXTDOMAIN
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"$group_text "'.
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
Sample message
Processing form data without nonce verification.
Sample message
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
Sample message
Processing form data without nonce verification.
Sample message
$_POST[$condition_search_args_key] not unslashed before sanitization. Use wp_unslash() or similar
Sample message
Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "Vg_Payment_Gateway_Conditions_Metaboxes".
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
Detected usage of a non-sanitized input variable: $_POST[$condition_search_args_key]
Sample message
Detected usage of a possibly undefined superglobal array index: $_POST[$condition_search_args_key]. Check that the array index exists before using it.
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
Missing $domain parameter in function call to __().
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.
Sample message
Sanitization missing for register_setting().
Sample message
Detected usage of meta_key, possible slow query.
Sample message
Detected usage of meta_value, possible slow query.
Sample message
trigger_error() found. Debug code should not normally be used in production.
Sample message
Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$s", but got "%s, %s" in '<p><b>Go Premium</b>. You can use all conditions, including: Product information (category, dimensions), Shipping methods, User information (zip, state, city, address), Taxes, You can rotate payment methods by date or sequentially by order, and more. <a href="%s" target="_blank" class="wccpg-go-premium-link">%s</a></p>'.
Sample message
No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
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
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "VG_PAYMENT_GATEWAYS_CONDITIONS_POST_KEY".
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$cpg_last_available_gateways".
Sample message
var_dump() found. Debug code should not normally be used in production.
Potential connections found in static code analysis.
Outbound calls
239
External assets
2
Incoming endpoints
6
No external asset domains detected.
No public endpoints detected.
admin_post
wp_ajax
wp_ajax
wp_ajax
wp_ajax
wp_ajax
First score snapshot
v1.16.5
36
Latest
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 36 | 215 | 158 | 57 | v1.16.5 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.