GDPR Cookie Consent 2.2.8

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

Summary

Errors
12PHP warnings
16PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 94.84 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.3.1
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 5

Plugins ‹ Test site — WordPress

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

GDPR Cookie Consent

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

GDPR Cookie Consent → Cookie Settings

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

GDPR Cookie Consent → Policy Data

Page screenshot: GDPR Cookie Consent → Policy Data
URL /wp-admin/edit.php?post_type=gdprpolicies
Aspect menu-item
HTTP status 200
Load time 0.268 s
Memory usage 2.89 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.472 s
Memory usage 3.8 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.367 s0.405 s+0.038 s2.82 MiB2.91 MiB+ 92.21 KiB
/wp-admin/edit.php0.213 s0.319 s+0.106 s2.85 MiB2.94 MiB+ 97.51 KiB
/wp-admin/post-new.php0.832 s0.746 s-0.086 s5.21 MiB5.32 MiB+ 110.13 KiB
/wp-admin/upload.php0.822 s0.347 s-0.475 s2.77 MiB2.83 MiB+ 62.09 KiB
/wp-admin/options-writing.php0.242 s0.292 s+0.050 s2.76 MiB2.84 MiB+ 76.05 KiB
/wp-admin/media-new.php0.303 s0.311 s+0.008 s2.74 MiB2.83 MiB+ 91.47 KiB
/wp-admin/edit-tags.php?taxonomy=category0.200 s0.294 s+0.094 s2.76 MiB2.86 MiB+ 101.19 KiB
/wp-admin/post-new.php?post_type=page0.688 s0.667 s-0.021 s5.21 MiB5.31 MiB+ 105.7 KiB
/wp-admin/options-discussion.php0.238 s0.493 s+0.255 s2.75 MiB2.83 MiB+ 86.98 KiB
/wp-admin/edit-comments.php0.454 s0.347 s-0.107 s2.78 MiB2.86 MiB+ 81.57 KiB
/0.304 s0.270 s-0.034 s3.13 MiB3.26 MiB+ 138.38 KiB
Average 0.424 s0.408 s-0.016 s3.25 MiB3.34 MiB+ 94.84 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
Language % Lines of code Comment lines Files
JavaScript47.9%18,7683,47816
PHP23.9%9,3541,54238
PO File17.0%6,6633,85010
CSS7.6%2,986324
Twig3.3%1,275011
XML0.3%12101
SVG0.0%702
Total 39,174 8,902 82

PHP Code Analysis | More results »

Lines of code 3,789
Total complexity 839
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 111
Functions 5

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

[31-Aug-2023 07:32:01 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
[31-Aug-2023 07:32:01 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
[31-Aug-2023 07:32:01 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
[31-Aug-2023 07:32:01 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
[31-Aug-2023 07:32:01 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
[31-Aug-2023 07:32:01 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
[31-Aug-2023 07:32:10 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
[31-Aug-2023 07:32:10 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
[31-Aug-2023 07:32:10 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
[31-Aug-2023 07:32:10 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
[31-Aug-2023 07:32:10 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
[31-Aug-2023 07:32:10 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
[31-Aug-2023 07:32:11 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /wp-config.php on line 174
[31-Aug-2023 07:32:11 UTC] PHP Warning:  Undefined array key "HTTP_HOST" in /wp-config.php on line 175
[31-Aug-2023 07:32:11 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 691
[31-Aug-2023 07:32:11 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/canonical.php on line 691
[31-Aug-2023 07:32:11 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 692
[31-Aug-2023 07:32:11 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/canonical.php on line 692
[31-Aug-2023 07:32:11 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 702
[31-Aug-2023 07:32:11 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 705
[31-Aug-2023 07:32:11 UTC] PHP Warning:  Undefined array key "scheme" in /wp-includes/canonical.php on line 726
[31-Aug-2023 07:32:11 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 691
[31-Aug-2023 07:32:11 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/canonical.php on line 691
[31-Aug-2023 07:32:11 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 692
[31-Aug-2023 07:32:11 UTC] PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-includes/canonical.php on line 692
[31-Aug-2023 07:32:11 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 702
[31-Aug-2023 07:32:11 UTC] PHP Warning:  Undefined array key "host" in /wp-includes/canonical.php on line 705
[31-Aug-2023 07:32:11 UTC] PHP Warning:  Undefined array key "scheme" in /wp-includes/canonical.php on line 726
See also: All tests for this plugin, How to Hide WP Cookie Consent Admin Menus and Meta Boxes