Be fully GDPR and CCPA compliant through Content Security Policy. Blocks cookies and unwanted external content.
Prioritized issue groups from the latest Plugin Check scan
Security
462
9 issue groups
Maintainability
164
9 issue groups
I18n
45
7 issue groups
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$cacsp_option_banner_class'.
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$can_change_all".
Sample message
$_COOKIE['cookies_and_content_security_policy'] not unslashed before sanitization. Use wp_unslash() or similar
Sample message
Detected usage of a possibly undefined superglobal array index: $_POST['accepted_cookies']. Check that the array index exists before using it.
Sample message
Detected usage of a non-sanitized input variable: $_COOKIE['cookies_and_content_security_policy']
Sample message
Processing form data without nonce verification.
Sample message
Too many parameters passed to function "__()". Expected: 2 parameters, received: 3
Sample message
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
Sample message
Processing form data without nonce verification.
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "body_class_cacsp_front".
Sample message
Use of a direct database call is discouraged.
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
Sample message
The $text parameter must be a single text string literal. Found: get_cacsp_options( 'cacsp_not_allowed_button', true, __( 'Contact the administrator', 'cookies-and-content-security-policy' ), true )
Sample message
Mismatched text domain. Expected 'cookies-and-content-security-policy' but got 'cacspMessages'.
Sample message
A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
Sample message
Multiple placeholders in translatable strings should be ordered. Expected "%1$20d, %2$3F", but got "%20d, %3F" in 'https://wordpress.org/plugins/cookies-and-content-security-policy/#how%20do%20i%20translate%20in%20polylang%3F'.
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
Sample message
Unescaped parameter $table used in $wpdb->get_results()\n$table assigned unsafely at line 131.
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable {$table_name} at "DELETE FROM {$table_name} WHERE time >= %s AND time <= %s"
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "active_plugins".
Sample message
Missing $domain parameter in function call to __().
Sample message
load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.
Sample message
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fclose().
Sample message
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fopen().
Sample message
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fwrite().
Not analyzed yet.
First score snapshot
v2.40
35
Latest
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 35 | 673 | 261 | 412 | v2.40 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.