It will be a pleasant little surprise for customers if you offer a discount based on the payment method they have chosen on the Checkout page.
Prioritized issue groups from the latest Plugin Check scan
I18n
49
5 issue groups
Maintainability
31
6 issue groups
Security
16
4 issue groups
Repo Compliance
3
3 issue groups
Sample message
Mismatched text domain. Expected 'elex-discount-per-payment-method' but got 'elex_wfp_discount_per_payment_method'.
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$active_plugins".
Sample message
$_GET['_wpnonce'] not unslashed before sanitization. Use wp_unslash() or similar
Sample message
Missing $domain parameter in function call to __().
Sample message
The $text parameter must be a single text string literal. Found: $gateway->get_method_title()
Sample message
Processing form data without nonce verification.
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
Sample message
File and folder names must not contain spaces or special characters.
Sample message
The plugin name includes a restricted term. Your chosen plugin name - "ELEX WooCommerce Discount Per Payment Method" - contains the restricted term "woocommerce" which cannot be used within in your plugin name, unless your plugin name contains one of the allowed patterns: "for woocommerce", "with woocommerce", "using woocommerce", or "and woocommerce". The term must still not appear anywhere else in your name.
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
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
wp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.
Sample message
Detected usage of a non-sanitized input variable: $_POST['elex_discount_per_payment_method_options']
Sample message
Translatable string should not be wrapped in HTML. Found: '<p>Helps you configure and apply a discount on the Checkout page based on the payment method selected by the customer.</p>'
Sample message
Tested up to: 6.9 < 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.
Sample message
Missing "License" in Plugin Header. Please update your Plugin Header with a valid GPLv2 (or later) compatible license.
Sample message
The "Short Description" section is missing. An excerpt was generated from your main plugin description.
Sample message
Function "get_current_screen()" requires WordPress 3.1.0, but your plugin minimum supported version is WordPress 3.0.1.
Potential connections found in static code analysis.
Outbound calls
21
External assets
0
Incoming endpoints
0
No external asset domains detected.
No public endpoints detected.
First score snapshot
v1.3.2
69
Latest
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 69 | 99 | 60 | 39 | v1.3.2 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.