WP Cookie Consent 2.4.0

Does WP Cookie Consent work with WordPress 6.4.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
2PHP warnings
14PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 111.54 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.051 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.4.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 9,000+
WordPress.org page https://wordpress.org/plugins/gdpr-cookie-consent/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 6

Wizard ‹ Test site — WordPress

Page screenshot: Wizard ‹ Test site — WordPress
URL /wp-admin/admin.php?page=gdpr-cookie-consent-wizard
Requested URL /wp-admin/plugins.php?action=activate&plugin=gdpr-cookie-consent%2Fgdpr-cookie-consent.php&plugin_status=all&paged=1&s&_wpnonce=38d1a0d180
Aspect after-activation
HTTP status 200
Load time 1.707 s
Memory usage 4.36 MiB
JS errors None
Resource errors None

WP Cookie Consent

Page screenshot: WP Cookie Consent
URL /wp-admin/admin.php?page=gdpr-cookie-consent
Aspect menu-item
HTTP status 200
Load time 0.841 s
Memory usage 3.58 MiB
JS errors None
Resource errors None

WP Cookie Consent → Wizard

Page screenshot: WP Cookie Consent → Wizard
URL /wp-admin/admin.php?page=gdpr-cookie-consent-wizard
Aspect menu-item
HTTP status 200
Load time 0.741 s
Memory usage 3.58 MiB
JS errors None
Resource errors None

WP Cookie Consent → Cookie Settings

Page screenshot: WP Cookie Consent → Cookie Settings
URL /wp-admin/admin.php?page=gdpr-cookie-consent-settings
Aspect menu-item
HTTP status 200
Load time 1.823 s
Memory usage 4.05 MiB
JS errors None
Resource errors None

WP Cookie Consent → Policy Data

Page screenshot: WP Cookie Consent → Policy Data
URL /wp-admin/edit.php?post_type=gdprpolicies
Aspect menu-item
HTTP status 200
Load time 0.315 s
Memory usage 3.47 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.372 s
Memory usage 3.98 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.394 s0.525 s+0.131 s3.38 MiB3.49 MiB+ 115.65 KiB
/wp-admin/edit.php0.236 s0.356 s+0.120 s3.41 MiB3.52 MiB+ 121.41 KiB
/wp-admin/post-new.php1.112 s0.916 s-0.196 s5.46 MiB5.58 MiB+ 119.96 KiB
/wp-admin/upload.php0.682 s0.397 s-0.285 s3.32 MiB3.41 MiB+ 86.29 KiB
/wp-admin/options-writing.php0.223 s0.495 s+0.272 s3.32 MiB3.42 MiB+ 100.48 KiB
/wp-admin/media-new.php0.316 s0.370 s+0.054 s3.29 MiB3.41 MiB+ 115.67 KiB
/wp-admin/edit-tags.php?taxonomy=category0.194 s0.292 s+0.098 s3.31 MiB3.44 MiB+ 133.85 KiB
/wp-admin/post-new.php?post_type=page0.690 s0.916 s+0.226 s5.45 MiB5.56 MiB+ 115.54 KiB
/wp-admin/options-discussion.php0.266 s0.305 s+0.039 s3.3 MiB3.41 MiB+ 110.78 KiB
/wp-admin/edit-comments.php0.236 s0.326 s+0.090 s3.34 MiB3.44 MiB+ 105.38 KiB
/0.288 s0.297 s+0.009 s3.36 MiB3.46 MiB+ 101.95 KiB
Average 0.422 s0.472 s+0.051 s3.72 MiB3.83 MiB+ 111.54 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

JavaScript
PHP
PO File
CSS
Language % Lines of code Comment lines Files
JavaScript39.1%18,9323,11216
PHP31.5%15,2191,78339
PO File13.8%6,6633,85010
CSS11.7%5,6561055
Twig2.6%1,275011
JSON1.0%48502
XML0.3%12301
SVG0.0%803
Total 48,361 8,850 87

PHP Code Analysis | More results »

Lines of code 7,728
Total complexity 1,070
Median class complexity 35.0
Median method complexity 2.0
Most complex class Gdpr_Cookie_Consent_Admin
Most complex function Gdpr_Cookie_Consent_Admin::gdpr_cookie_consent_ajax_save_settings()
Classes 12
Methods 121
Functions 8

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Database Tables 2

Options wp_options 5

Custom Post Types 1

ID Name
gdprpoliciesPolicy Data

Meta Boxes

{
    "gdprpolicies": {
        "_gdpr_policies_domain": {
            "title": "Domain",
            "context": "normal"
        },
        "_gdpr_policies_links": {
            "title": "Links",
            "context": "normal"
        }
    }
}

PHP Error Log 16 lines

[07-Dec-2023 20:00:51 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 137
[07-Dec-2023 20:00:51 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 150
[07-Dec-2023 20:00:51 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 156
[07-Dec-2023 20:00:51 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 133
[07-Dec-2023 20:00:51 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 152
[07-Dec-2023 20:00:51 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 202
[07-Dec-2023 20:00:51 UTC] PHP Warning:  Undefined array key "bar_heading_lgpd_text" in /wp-content/plugins/gdpr-cookie-consent/public/class-gdpr-cookie-consent-public.php on line 318
[07-Dec-2023 20:00:51 UTC] PHP Deprecated:  stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/gdpr-cookie-consent/public/class-gdpr-cookie-consent-public.php on line 319
[07-Dec-2023 20:01:02 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 137
[07-Dec-2023 20:01:02 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 150
[07-Dec-2023 20:01:02 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 156
[07-Dec-2023 20:01:02 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 133
[07-Dec-2023 20:01:02 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 152
[07-Dec-2023 20:01:02 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 202
[07-Dec-2023 20:01:02 UTC] PHP Warning:  Undefined array key "bar_heading_lgpd_text" in /wp-content/plugins/gdpr-cookie-consent/public/class-gdpr-cookie-consent-public.php on line 318
[07-Dec-2023 20:01:02 UTC] PHP Deprecated:  stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/gdpr-cookie-consent/public/class-gdpr-cookie-consent-public.php on line 319
See also: All tests for this plugin, How to Hide WP Cookie Consent Admin Menus and Meta Boxes