WP Cookie Consent 2.5.1

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

Summary

Errors
4PHP warnings
13PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

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

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

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 3

WP Cookie Consent ‹ Test site — WordPress

Page screenshot: WP Cookie Consent ‹ Test site — WordPress
URL /wp-admin/admin.php?page=gdpr-cookie-consent#create_cookie_banner
Requested URL /wp-admin/plugins.php?action=activate&plugin=gdpr-cookie-consent%2Fgdpr-cookie-consent.php&plugin_status=all&paged=1&s&_wpnonce=b45327d61f
Aspect after-activation
HTTP status 200
Load time 3.871 s
Memory usage 4.38 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 2.819 s
Memory usage 3.61 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.371 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.489 s+0.095 s3.38 MiB3.49 MiB+ 109.42 KiB
/wp-admin/edit.php0.222 s0.314 s+0.092 s3.41 MiB3.52 MiB+ 115.18 KiB
/wp-admin/post-new.php1.042 s0.725 s-0.317 s5.46 MiB5.57 MiB+ 113.73 KiB
/wp-admin/upload.php0.719 s0.414 s-0.305 s3.32 MiB3.4 MiB+ 80.06 KiB
/wp-admin/options-writing.php0.249 s0.351 s+0.102 s3.32 MiB3.41 MiB+ 94.26 KiB
/wp-admin/media-new.php0.331 s0.334 s+0.003 s3.29 MiB3.4 MiB+ 109.45 KiB
/wp-admin/edit-tags.php?taxonomy=category0.227 s0.307 s+0.080 s3.31 MiB3.44 MiB+ 127.8 KiB
/wp-admin/post-new.php?post_type=page0.610 s0.806 s+0.196 s5.45 MiB5.56 MiB+ 113.32 KiB
/wp-admin/options-discussion.php0.314 s0.454 s+0.140 s3.3 MiB3.4 MiB+ 104.55 KiB
/wp-admin/edit-comments.php0.263 s0.285 s+0.022 s3.33 MiB3.43 MiB+ 99.15 KiB
/0.309 s0.280 s-0.029 s3.36 MiB3.46 MiB+ 102.16 KiB
Average 0.425 s0.433 s+0.007 s3.72 MiB3.82 MiB+ 106.28 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
JavaScript41.0%21,2523,18717
PHP30.8%15,9602,05249
PO File12.8%6,6633,85010
CSS11.7%6,0931306
Twig2.5%1,275011
JSON1.0%52202
XML0.2%12401
SVG0.0%803
Total 51,897 9,219 99

PHP Code Analysis | More results »

Lines of code 8,161
Total complexity 1,145
Median class complexity 45.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 13
Methods 142
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 6

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 17 lines

[09-Jan-2024 05:01:44 UTC] PHP Warning:  Undefined array key "data_reqs_on" in /wp-content/plugins/gdpr-cookie-consent/admin/class-gdpr-cookie-consent-admin.php on line 2667
[09-Jan-2024 05:01:44 UTC] PHP Warning:  Undefined array key "data_reqs_on" in /wp-content/plugins/gdpr-cookie-consent/admin/partials/gdpr-cookie-consent-main-admin.php on line 16
[09-Jan-2024 05:01:44 UTC] PHP Deprecated:  Automatic conversion of false to array is deprecated in /wp-content/plugins/gdpr-cookie-consent/admin/partials/gdpr-integration-tab-template.php on line 17
[09-Jan-2024 05:01:49 UTC] PHP Warning:  Undefined array key "data_reqs_on" in /wp-content/plugins/gdpr-cookie-consent/admin/class-gdpr-cookie-consent-admin.php on line 2667
[09-Jan-2024 05:01:49 UTC] PHP Warning:  Undefined array key "data_reqs_on" in /wp-content/plugins/gdpr-cookie-consent/admin/partials/gdpr-cookie-consent-main-admin.php on line 16
[09-Jan-2024 05:01:52 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
[09-Jan-2024 05:01:52 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
[09-Jan-2024 05:01:52 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
[09-Jan-2024 05:01:52 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
[09-Jan-2024 05:01:52 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
[09-Jan-2024 05:01:52 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
[09-Jan-2024 05:02:03 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
[09-Jan-2024 05:02:03 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
[09-Jan-2024 05:02:03 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
[09-Jan-2024 05:02:03 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
[09-Jan-2024 05:02:03 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
[09-Jan-2024 05:02:03 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
See also: All tests for this plugin, How to Hide WP Cookie Consent Admin Menus and Meta Boxes