PayU CommercePro Plugin

CommercePro payment plugin by PayU Payment Gateway (India) for WooCommerce (tested from 5.3 to 9.8.1).

v3.8.9PayU IndiaUpdated Added 7k+ installs100% rating
30
Score
95
Errors
270
Warnings
+0
Change

Category Scores

Security0
Repo89
Performance100
Maintainability33

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

365 findings

Maintainability

167

12 issue groups

Security

118

11 issue groups

I18n

66

2 issue groups

ERRORI18nText Domain MismatchMismatched text domain. Expected 'payu-india' but got 'payu'.63
Category
I18n
Occurrences
63
Severity
error

Sample message

Mismatched text domain. Expected 'payu-india' but got 'payu'.

WARNINGMaintainabilityerror log error logerror_log() found. Debug code should not normally be used in production.58
Category
Maintainability
Occurrences
58
Severity
warning

Sample message

error_log() found. Debug code should not normally be used in production.

WARNINGSecurityInterpolated Not PreparedUse placeholders and $wpdb->prepare(); found interpolated variable $address_type at where user_id = $user_id and address_type = '$address_type'"26
Category
Security
Occurrences
26
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $address_type at where user_id = $user_id and address_type = '$address_type'"

WARNINGMaintainabilityNon Prefixed Function FoundFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "activatePayu".25
Category
Maintainability
Occurrences
25
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "activatePayu".

WARNINGSecurityMissingProcessing form data without nonce verification.24
Category
Security
Occurrences
24
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.23
Category
Maintainability
Occurrences
23
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGSecurityRecommendedProcessing form data without nonce verification.22
Category
Security
Occurrences
22
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityNo CachingDirect database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().18
Category
Maintainability
Occurrences
18
Severity
warning

Sample message

Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().

WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$button_bg_color".14
Category
Maintainability
Occurrences
14
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$button_bg_color".

WARNINGSecurityMissing Unslash$_GET['msg'] not unslashed before sanitization. Use wp_unslash() or similar14
Category
Security
Occurrences
14
Severity
warning

Sample message

$_GET['msg'] not unslashed before sanitization. Use wp_unslash() or similar

Show 15 more
WARNINGSecurityUnescaped DBParameter13
Category
Security
Occurrences
13
Severity
warning

Sample message

Unescaped parameter $wp_order_table used in $wpdb->get_results()\n$wp_order_table assigned unsafely at line 529.

ERRORMaintainabilitymissing direct file access protection8
Category
Maintainability
Occurrences
8
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

WARNINGMaintainabilityNon Prefixed Constant Found6
Category
Maintainability
Occurrences
6
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "COMMERCEPRO_APP_VERSION".

WARNINGSecurityInput Not Sanitized6
Category
Security
Occurrences
6
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_GET['msg']

WARNINGMaintainabilitySchema Change5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

Attempting a database schema change is discouraged.

ERRORSecurityUnescaped DBParameter3
Category
Security
Occurrences
3
Severity
error

Sample message

Unescaped parameter $query used in $wpdb->get_var()\n$query assigned unsafely at line 298.

ERRORSecurityNot Prepared3
Category
Security
Occurrences
3
Severity
error

Sample message

Use placeholders and $wpdb->prepare(); found $query

WARNINGMaintainabilityNon Prefixed Class Found3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "WC_Payu_Blocks".

ERRORSecurityOutput Not Escaped3
Category
Security
Occurrences
3
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.

WARNINGMaintainabilityMissing Version3
Category
Maintainability
Occurrences
3
Severity
warning

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.

ERRORI18nNon Singular String Literal Domain3
Category
I18n
Occurrences
3
Severity
error

Sample message

The $domain parameter must be a single text string literal. Found: $textdomain

WARNINGMaintainabilityNon Prefixed Hookname Found2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "wc_payu_settings".

WARNINGMaintainabilityerror log print r2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

print_r() found. Debug code should not normally be used in production.

WARNINGSecuritywp redirect wp redirect2
Category
Security
Occurrences
2
Severity
warning

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.

WARNINGSecurityInput Not Validated2
Category
Security
Occurrences
2
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_POST['payu_request']. Check that the array index exists before using it.

Score History

First score snapshot

v3.8.9

30

Latest

Findings
365
Errors
95
Warnings
270
Check
2.0.0

Related Plugins