CardCom Payment Gateway

Cardcom payment-gateway plugin for WooCommerce.

v3.5.0.9CardComUpdated Added 3k+ installs20% rating
35
Score
201
Errors
84
Warnings
+0
Change

Category Scores

Security0
Repo89
Performance100
Maintainability56

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

285 findings

I18n

156

3 issue groups

Security

76

10 issue groups

Maintainability

47

12 issue groups

ERRORI18nText Domain MismatchMismatched text domain. Expected 'woo-cardcom-payment-gateway' but got "cardcom".147
Category
I18n
Occurrences
147
Severity
error

Sample message

Mismatched text domain. Expected 'woo-cardcom-payment-gateway' but got "cardcom".

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

Sample message

Processing form data without nonce verification.

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<script>window.top.location.href = \"$cancelUrl\";</script>"'.17
Category
Security
Occurrences
17
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<script>window.top.location.href = \"$cancelUrl\";</script>"'.

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

Sample message

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

ERRORMaintainabilitystrip tags strip tagsstrip_tags() is discouraged. Use the more comprehensive wp_strip_all_tags() instead.9
Category
Maintainability
Occurrences
9
Severity
error

Sample message

strip_tags() is discouraged. Use the more comprehensive wp_strip_all_tags() instead.

WARNINGSecuritywp redirect wp redirectwp_redirect() found. Using wp_safe_redirect(), along with the &quot;allowed_redirect_hosts&quot; 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.8
Category
Security
Occurrences
8
Severity
warning

Sample message

wp_redirect() found. Using wp_safe_redirect(), along with the &quot;allowed_redirect_hosts&quot; 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.

WARNINGSecurityMissing Unslash$_GET[&#039;operation&#039;] not unslashed before sanitization. Use wp_unslash() or similar7
Category
Security
Occurrences
7
Severity
warning

Sample message

$_GET[&#039;operation&#039;] not unslashed before sanitization. Use wp_unslash() or similar

ERRORI18nNon Singular String Literal TextThe $text parameter must be a single text string literal. Found: $msg7
Category
I18n
Occurrences
7
Severity
error

Sample message

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

ERRORMaintainabilitydate datedate() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.6
Category
Maintainability
Occurrences
6
Severity
error

Sample message

date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.

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

Sample message

Processing form data without nonce verification.

Show 15 more
WARNINGSecurityInput Not Sanitized6
Category
Security
Occurrences
6
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_GET[&#039;operation&#039;]

ERRORSecurityUnsafe Printing Function5
Category
Security
Occurrences
5
Severity
error

Sample message

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

WARNINGMaintainabilityNon Prefixed Hookname Found4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;valid-cardcom-cancel-request&quot;.

WARNINGSecurityInput Not Validated4
Category
Security
Occurrences
4
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_GET[&#039;operation&#039;]. Check that the array index exists before using it.

WARNINGMaintainabilityNon Prefixed Function Found3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;add_cardcom_gateway&quot;.

WARNINGMaintainabilityerror log print r3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

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

ERRORMaintainabilitywp function not compatible with requires wp3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

Function "get_user_locale()" requires WordPress 4.7.0, but your plugin minimum supported version is WordPress 3.3.0.

WARNINGMaintainabilityDirect Query2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo Caching2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

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

WARNINGMaintainabilityNon Prefixed Class Found2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: &quot;WC_Gateway_Cardcom&quot;.

WARNINGMaintainabilityNot In Footer2
Category
Maintainability
Occurrences
2
Severity
warning

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.

ERRORI18nMissing Arg Domain2
Category
I18n
Occurrences
2
Severity
error

Sample message

Missing $domain parameter in function call to __().

WARNINGSecurityUnescaped DBParameter1
Category
Security
Occurrences
1
Severity
warning

Sample message

Unescaped parameter $meta_table used in $wpdb-&gt;query()\n$meta_table assigned unsafely at line 1378.

WARNINGSecurityInterpolated Not Prepared1
Category
Security
Occurrences
1
Severity
warning

Sample message

Use placeholders and $wpdb-&gt;prepare(); found interpolated variable {$meta_table} at &quot;INSERT INTO {$meta_table} (order_id, meta_key, meta_value) VALUES (%d, %s, %s)\n

WARNINGMaintainabilityNon Prefixed Constant Found1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;PLUGIN_DIRECTORY&quot;.

Score History

First score snapshot

v3.5.0.9

35

Latest

Findings
285
Errors
201
Warnings
84
Check
2.0.0

Related Plugins