Restrict WooCommerce payment methods based on conditions. Works with your existing payment methods.
Prioritized issue groups from the latest Plugin Check scan
I18n
236
6 issue groups
Maintainability
123
10 issue groups
Security
116
9 issue groups
Sample message
Mismatched text domain. Expected 'conditional-payments-for-woocommerce' but got 'woo-conditional-payments'.
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$class".
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$class'.
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "init_woo_conditional_payments".
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "wc_aelia_cs_base_currency".
Sample message
Processing form data without nonce verification.
Sample message
$_GET['action'] not unslashed before sanitization. Use wp_unslash() or similar
Sample message
Detected usage of a non-sanitized input variable: $_GET['action']
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
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
error_log() found. Debug code should not normally be used in production.
Sample message
Detected usage of a possibly undefined superglobal array index: $_POST['id']. 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
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
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
Sample message
Unescaped parameter $groups_table used in $wpdb->get_results()\n$groups_table assigned unsafely at line 857.
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable $groups_table at "SELECT * FROM $groups_table ORDER BY name"
Sample message
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "CONDITIONAL_PAYMENTS_FOR_WOO_VERSION".
Sample message
The parameter "array(\n 'hide_empty' => false,\n )" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.
Sample message
Missing $domain parameter in function call to esc_attr_e().
Sample message
The $text parameter must be a single text string literal. Found: __( 'Custom "no payment methods available" message', 'woo-conditional-payments' )
Sample message
Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$s", but got "%s, %s" in 'Enable <code>%s</code> in <a href="%s" target="_blank">the settings</a>'.
Sample message
The "Text Domain" header in the plugin file does not match the slug. Found "woo-conditional-payments", expected "conditional-payments-for-woocommerce".
Potential connections found in static code analysis.
Outbound calls
8
External assets
0
Incoming endpoints
2
No external asset domains detected.
No public endpoints detected.
wp_ajax
wp_ajax
2 score snapshots
v3.5.1
36
Latest
v3.5.0
36
Score
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 36 | 475 | 291 | 184 | v3.5.1 | 2.0.0 |
| 36 | 476 | 292 | 184 | v3.5.0 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.