SamedayCourier Shipping

Sameday Courier shipping method plugin

v1.11.1SamedayUpdated Added 4k+ installs54% rating
29
Score
336
Errors
269
Warnings
+0
Change

Category Scores

Security0
Repo83
Performance100
Maintainability33

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

605 findings

Security

258

12 issue groups

I18n

205

5 issue groups

Maintainability

125

8 issue groups

ERRORI18nNon Singular String Literal DomainThe $domain parameter must be a single text string literal. Found: SamedayCourierHelperClass::TEXT_DOMAIN172
Category
I18n
Occurrences
172
Severity
error

Sample message

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

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

Sample message

Use of a direct database call is discouraged.

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$_goTo_eAWB'.43
Category
Security
Occurrences
43
Severity
error

Sample message

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

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

Sample message

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

WARNINGSecuritywp redirect wp redirectwp_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.33
Category
Security
Occurrences
33
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.

WARNINGSecurityMissing Unslash$_GET['id'] not unslashed before sanitization. Use wp_unslash() or similar30
Category
Security
Occurrences
30
Severity
warning

Sample message

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

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

Sample message

Processing form data without nonce verification.

ERRORSecurityUnescaped DBParameterUnescaped parameter $createCitiesTable used in $wpdb->query()\n$createCitiesTable assigned unsafely at line 711.24
Category
Security
Occurrences
24
Severity
error

Sample message

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

ERRORSecurityNot PreparedUse placeholders and $wpdb->prepare(); found $createCitiesTable24
Category
Security
Occurrences
24
Severity
error

Sample message

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

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_GET['id']24
Category
Security
Occurrences
24
Severity
warning

Sample message

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

Show 15 more
ERRORSecurityException Not Escaped21
Category
Security
Occurrences
21
Severity
error

Sample message

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

WARNINGSecurityInput Not Validated15
Category
Security
Occurrences
15
Severity
warning

Sample message

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

WARNINGMaintainabilityMissing Version14
Category
Maintainability
Occurrences
14
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.

ERRORI18nMissing Arg Domain13
Category
I18n
Occurrences
13
Severity
error

Sample message

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

WARNINGSecurityMissing11
Category
Security
Occurrences
11
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORI18nNon Singular String Literal Text11
Category
I18n
Occurrences
11
Severity
error

Sample message

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

WARNINGMaintainabilityNon Prefixed Function Found10
Category
Maintainability
Occurrences
10
Severity
warning

Sample message

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

WARNINGMaintainabilityNot In Footer9
Category
Maintainability
Occurrences
9
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.

ERRORI18nNo Empty Strings5
Category
I18n
Occurrences
5
Severity
error

Sample message

The $text text string should have translatable content. Found: ''

WARNINGSecurityInterpolated Not Prepared4
Category
Security
Occurrences
4
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $is_testing at \tAND is_testing = '$is_testing'"

ERRORI18nText Domain Mismatch4
Category
I18n
Occurrences
4
Severity
error

Sample message

Mismatched text domain. Expected 'samedaycourier-shipping' but got 'woocommerce'.

ERRORMaintainabilityEcho Found3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

Short PHP opening tag used with echo; expected "<?php echo $shipTo ..." but found "<?= $shipTo ..."

ERRORMaintainabilityNo Explicit Version3
Category
Maintainability
Occurrences
3
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.

WARNINGSecurityUnescaped DBParameter2
Category
Security
Occurrences
2
Severity
warning

Sample message

Unescaped parameter $service used in $wpdb-&gt;get_row()\n$service assigned unsafely at line 14.

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;BgnCurrencyConverter&quot;.

Score History

First score snapshot

v1.11.1

29

Latest

Findings
605
Errors
336
Warnings
269
Check
2.0.0

Related Plugins