WP Cookie Consent 3.2.0

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

Summary

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

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

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

Environment
WordPress version6.5.4
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=88bb0e55d3
Aspect after-activation
HTTP status 200
Load time 8.168 s
Memory usage 4.74 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 6.594 s
Memory usage 3.95 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.632 s
Memory usage 4.11 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.370 s0.525 s+0.155 s3.44 MiB3.74 MiB+ 310.77 KiB
/wp-admin/edit.php0.205 s0.421 s+0.216 s3.46 MiB3.83 MiB+ 374.65 KiB
/wp-admin/post-new.php0.945 s1.058 s+0.113 s5.59 MiB5.9 MiB+ 320.62 KiB
/wp-admin/upload.php0.588 s0.500 s-0.088 s3.38 MiB3.65 MiB+ 274.91 KiB
/wp-admin/options-writing.php0.232 s0.416 s+0.184 s3.37 MiB3.68 MiB+ 309.63 KiB
/wp-admin/media-new.php0.301 s0.400 s+0.099 s3.35 MiB3.65 MiB+ 304.75 KiB
/wp-admin/edit-tags.php?taxonomy=category0.192 s0.685 s+0.493 s3.37 MiB3.69 MiB+ 333.57 KiB
/wp-admin/post-new.php?post_type=page0.553 s0.703 s+0.150 s5.59 MiB5.9 MiB+ 320.55 KiB
/wp-admin/options-discussion.php0.525 s0.433 s-0.092 s3.36 MiB3.67 MiB+ 320.55 KiB
/wp-admin/edit-comments.php0.243 s0.354 s+0.111 s3.39 MiB3.7 MiB+ 314.58 KiB
/0.310 s0.282 s-0.028 s3.42 MiB3.59 MiB+ 172.59 KiB
Average 0.406 s0.525 s+0.119 s3.79 MiB4.09 MiB+ 305.2 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.

PHP
JavaScript
CSS
PO File
Language % Lines of code Comment lines Files
PHP40.4%27,7784,26078
JavaScript34.1%23,4693,52424
CSS12.6%8,66216210
PO File9.7%6,6633,85010
Twig1.9%1,275011
JSON0.9%59602
SVG0.2%162029
XML0.2%12701
Total 68,732 11,796 165

PHP Code Analysis | More results »

Lines of code 18,385
Total complexity 2,826
Median class complexity 48.5
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 26
Methods 345
Functions 18

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 7

Options wp_options 13

Custom Post Types 2

ID Name
wplconsentlogsConsent Logs
gdprpoliciesPolicy Data

Meta Boxes

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

PHP Error Log 14 lines

[06-Jun-2024 16:55:19 UTC] PHP Warning:  Undefined variable $api_gdpr_dashboard in /wp-content/plugins/gdpr-cookie-consent/admin/views/gdpr-dashboard-page.php on line 319
[06-Jun-2024 16:55:29 UTC] PHP Warning:  Undefined variable $api_gdpr_dashboard in /wp-content/plugins/gdpr-cookie-consent/admin/views/gdpr-dashboard-page.php on line 319
[06-Jun-2024 16:55:36 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
[06-Jun-2024 16:55:36 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
[06-Jun-2024 16:55:36 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
[06-Jun-2024 16:55:36 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
[06-Jun-2024 16:55:36 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
[06-Jun-2024 16:55:36 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
[06-Jun-2024 16:55:48 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
[06-Jun-2024 16:55:48 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
[06-Jun-2024 16:55:48 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
[06-Jun-2024 16:55:48 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
[06-Jun-2024 16:55:48 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
[06-Jun-2024 16:55:48 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