Multibanco / MB Way / Payshop / Cofidis Pay (by LUSOPAY) for WooCommerce

WooCommerce plugin for MULTIBANCO, PAYSHOP, MB Way and Cofidis Pay. It allows to send SMS and e-mail to the customer with payment details.

v5.0.3lusopayUpdated Added 400 installs100% rating
25
Score
492
Errors
216
Warnings
+0
Change

Category Scores

Security0
Repo91
Performance100
Maintainability9

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

708 findings

I18n

324

3 issue groups

Security

182

10 issue groups

Maintainability

173

12 issue groups

ERRORI18nText Domain MismatchMismatched text domain. Expected 'multibanco-e-ou-payshop-by-lusopay' but got 'eupago-gateway-for-woocommerce'.308
Category
I18n
Occurrences
308
Severity
error

Sample message

Mismatched text domain. Expected 'multibanco-e-ou-payshop-by-lusopay' but got 'eupago-gateway-for-woocommerce'.

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$mbway'.62
Category
Security
Occurrences
62
Severity
error

Sample message

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

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

Sample message

Use of a direct database call is discouraged.

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

Sample message

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

ERRORSecuritySQL query is not preparedUse placeholders and $wpdb->prepare(); found $id25
Category
Security
Occurrences
25
Severity
error

Sample message

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

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

Sample message

Processing form data without nonce verification.

WARNINGSecurityDatabase parameter is not escapedUnescaped parameter $table_name used in $wpdb->get_results()17
Category
Security
Occurrences
17
Severity
warning

Sample message

Unescaped parameter $table_name used in $wpdb->get_results()

ERRORSecurityDatabase parameter is not escapedUnescaped parameter $query used in $wpdb->get_results()\n$query assigned unsafely at line 632.14
Category
Security
Occurrences
14
Severity
error

Sample message

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

ERRORMaintainabilityOffloaded ContentOffloading images, js, css, and other scripts to your servers or any remote service is disallowed.12
Category
Maintainability
Occurrences
12
Severity
error

Sample message

Offloading images, js, css, and other scripts to your servers or any remote service is disallowed.

WARNINGSecurityInterpolated SQL is not preparedUse placeholders and $wpdb->prepare(); found interpolated variable $table_name at "SELECT * FROM $table_name WHERE pispId = %s"12
Category
Security
Occurrences
12
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $table_name at "SELECT * FROM $table_name WHERE pispId = %s"

Show 15 more
ERRORMaintainabilitycurl curl setopt12
Category
Maintainability
Occurrences
12
Severity
error

Sample message

Using cURL functions is highly discouraged. Use wp_remote_get() instead.

WARNINGMaintainabilityNon-prefixed class10
Category
Maintainability
Occurrences
10
Severity
warning

Sample message

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

WARNINGSecurityRequest data is not unslashed9
Category
Security
Occurrences
9
Severity
warning

Sample message

$_POST['mbway_phone'] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGMaintainabilityNon-prefixed global variable8
Category
Maintainability
Occurrences
8
Severity
warning

Sample message

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

WARNINGSecuritywp redirect wp redirect8
Category
Security
Occurrences
8
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.

ERRORI18nMissing Arg Domain8
Category
I18n
Occurrences
8
Severity
error

Sample message

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

ERRORI18nNon Singular String Literal Text8
Category
I18n
Occurrences
8
Severity
error

Sample message

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

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;

ERRORSecurityException output is not escaped7
Category
Security
Occurrences
7
Severity
error

Sample message

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

WARNINGSecurityNonce verification recommended7
Category
Security
Occurrences
7
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORMaintainabilitydate date6
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.

WARNINGMaintainabilityNon-prefixed hook name6
Category
Maintainability
Occurrences
6
Severity
warning

Sample message

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

ERRORMaintainabilityNo Explicit Version6
Category
Maintainability
Occurrences
6
Severity
error

Sample message

Version parameter is not explicitly set or has been set to an equivalent of "false" for wp_enqueue_script; This means that the WordPress core version will be used which is not recommended for plugin or theme development.

WARNINGMaintainabilityerror log error log5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

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

WARNINGMaintainabilityNot In Footer5
Category
Maintainability
Occurrences
5
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.

External Connections

Potential connections found in static code analysis.

10 domains

Outbound calls

55

External assets

12

Incoming endpoints

6

Notable Domains

services.lusopay.com17 · outbound
app.lusopay.com12 · outbound
tempuri.org8 · outbound
schemas.xmlsoap.org4 · outbound
185.15.20.2212 · outbound

Platform / Reference Domains

wordpress.org1 · platform/reference

External Asset Domains

lusopay.com18 · asset + outbound

Incoming Endpoints

wp_ajax_nopriv_get_redirect_linkpublic

wp_ajax

Admin AJAX endpoints1
wp_ajax_get_redirect_linkauthenticated

wp_ajax

Score History

First score snapshot

v5.0.3

25

Latest

Findings
708
Errors
492
Warnings
216
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

36 nodes

Related Plugins

TWB Woocommerce Reviews

600 active installs

99
HyperPay Payments

600 active installs

98
98
WCBoost – Wishlist

50k+ active installs

97
Hide Categories On Shop Page

1k+ active installs

92