GDPR Cookie Consent 2.2.5

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

Summary

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

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

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

Environment
WordPress version6.2.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 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=3e8f0978ee
Aspect after-activation
HTTP status 200
Load time 1.144 s
Memory usage 3.11 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.867 s
Memory usage 3.18 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.571 s
Memory usage 3.56 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.293 s
Memory usage 3.15 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.607 s
Memory usage 3.7 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.313 s0.678 s+0.365 s3.07 MiB3.17 MiB+ 99.72 KiB
/wp-admin/edit.php0.200 s0.312 s+0.112 s3.1 MiB3.2 MiB+ 106.39 KiB
/wp-admin/post-new.php0.761 s0.969 s+0.208 s5.02 MiB5.11 MiB+ 89.51 KiB
/wp-admin/upload.php0.571 s0.340 s-0.231 s3.02 MiB3.08 MiB+ 69.59 KiB
/wp-admin/options-writing.php0.180 s0.229 s+0.049 s3.01 MiB3.09 MiB+ 80.75 KiB
/wp-admin/media-new.php0.360 s0.296 s-0.064 s2.99 MiB3.09 MiB+ 98.98 KiB
/wp-admin/edit-tags.php?taxonomy=category0.190 s0.301 s+0.111 s3.01 MiB3.11 MiB+ 108.7 KiB
/wp-admin/post-new.php?post_type=page0.615 s0.754 s+0.139 s5.01 MiB5.1 MiB+ 85.09 KiB
/wp-admin/options-discussion.php0.211 s0.437 s+0.226 s3 MiB3.09 MiB+ 94.48 KiB
/wp-admin/edit-comments.php0.218 s0.334 s+0.116 s3.03 MiB3.11 MiB+ 89.08 KiB
/0.313 s0.267 s-0.046 s2.97 MiB3.17 MiB+ 202.95 KiB
Average 0.357 s0.447 s+0.090 s3.38 MiB3.48 MiB+ 102.29 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
JavaScript48.1%18,7813,47916
PHP23.6%9,2001,53938
PO File17.1%6,6633,85010
CSS7.7%2,987324
Twig3.3%1,275011
XML0.3%12101
SVG0.0%702
Total 39,034 8,900 82

PHP Code Analysis | More results »

Lines of code 3,778
Total complexity 838
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 12 lines

[21-May-2023 13:17:47 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
[21-May-2023 13:17:47 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
[21-May-2023 13:17:47 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
[21-May-2023 13:17:47 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
[21-May-2023 13:17:47 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
[21-May-2023 13:17:47 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
[21-May-2023 13:17:56 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
[21-May-2023 13:17:56 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
[21-May-2023 13:17:56 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
[21-May-2023 13:17:56 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
[21-May-2023 13:17:56 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
[21-May-2023 13:17:56 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