Cookie Warning

Asks users' consent for using cookies or redirects them out of your site.

v1.3DourouUpdated Added 700 installs100% rating
66
Score
14
Errors
15
Warnings
+0
Change

Category Scores

Security46
Repo89
Performance100
Maintainability87

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

29 findings

Maintainability

14

6 issue groups

Security

11

5 issue groups

I18n

2

1 issue group

Repo Compliance

2

2 issue groups

WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "get_cookie_defaults".7
Category
Maintainability
Occurrences
7
Severity
warning

Sample message

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

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<input type='text' id='notok_text_field' name='cookiewarn_options[notok_text]' value='{$options['notok_text']}' />"'.7
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 '"<input type='text' id='notok_text_field' name='cookiewarn_options[notok_text]' value='{$options['notok_text']}' />"'.

WARNINGMaintainabilityMissing VersionResource 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.2
Category
Maintainability
Occurrences
2
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 DomainMissing $domain parameter in function call to __().2
Category
I18n
Occurrences
2
Severity
error

Sample message

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

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

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

ERRORMaintainabilityNot AllowedUse of heredoc syntax (<<<) is not allowed; use standard strings or inline HTML instead1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Use of heredoc syntax (<<<) is not allowed; use standard strings or inline HTML instead

WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.1
Category
Security
Occurrences
1
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_REQUEST[&#039;cookie&#039;]1
Category
Security
Occurrences
1
Severity
warning

Sample message

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

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_REQUEST[&#039;cookie&#039;]. Check that the array index exists before using it.1
Category
Security
Occurrences
1
Severity
warning

Sample message

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

WARNINGSecurityRequest data is not unslashed$_REQUEST[&#039;cookie&#039;] not unslashed before sanitization. Use wp_unslash() or similar1
Category
Security
Occurrences
1
Severity
warning

Sample message

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

Show 4 more
WARNINGMaintainabilityNot In Footer1
Category
Maintainability
Occurrences
1
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.

WARNINGMaintainabilitymismatched plugin name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin name "Cookie Warning" is different from the name declared in plugin header "Cookie warning".

ERRORRepo Complianceno license1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Missing "License". Please update your readme with a valid GPLv2 (or later) compatible license.

ERRORRepo Complianceoutdated tested upto header1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 3.6 < 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.

External Connections

Potential connections found in static code analysis.

2 domains

Outbound calls

4

External assets

0

Incoming endpoints

2

Notable Domains

majweb.co.uk3 · outbound
google.com1 · outbound

External Asset Domains

No external asset domains detected.

Incoming Endpoints

wp_ajax_nopriv_php_clear_cookiespublic

wp_ajax

Admin AJAX endpoints1
wp_ajax_php_clear_cookiesauthenticated

wp_ajax

Score History

First score snapshot

v1.3

66

Latest

Findings
29
Errors
14
Warnings
15
Check
2.0.0

Relationship Map

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

31 nodes

Related Plugins

95
oik-privacy-policy

700 active installs

83
cookie-cat

1k+ active installs

81
Ilmenite Cookie Consent

2k+ active installs

77
EU Cookies Bar for WordPress

9k+ active installs

67