WP Cookie Consent 3.4.3

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

Summary

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

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

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

Environment
WordPress version6.6.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 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=94eb6412e1
Aspect after-activation
HTTP status 200
Load time 9.849 s
Memory usage 5.51 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 7.380 s
Memory usage 4.4 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.575 s
Memory usage 4.18 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.335 s0.504 s+0.169 s3.47 MiB3.83 MiB+ 359.98 KiB
/wp-admin/edit.php0.198 s0.413 s+0.215 s3.54 MiB3.92 MiB+ 387.16 KiB
/wp-admin/post-new.php0.738 s1.024 s+0.286 s5.75 MiB6.24 MiB+ 495.21 KiB
/wp-admin/upload.php0.639 s0.507 s-0.132 s3.49 MiB3.81 MiB+ 327.53 KiB
/wp-admin/options-writing.php0.218 s0.403 s+0.185 s3.41 MiB3.81 MiB+ 404.28 KiB
/wp-admin/media-new.php0.229 s0.367 s+0.138 s3.4 MiB3.8 MiB+ 417.66 KiB
/wp-admin/edit-tags.php?taxonomy=category0.198 s0.382 s+0.184 s3.47 MiB3.82 MiB+ 359.58 KiB
/wp-admin/post-new.php?post_type=page0.578 s0.673 s+0.095 s5.75 MiB6.23 MiB+ 495.14 KiB
/wp-admin/options-discussion.php0.215 s0.579 s+0.364 s3.41 MiB3.8 MiB+ 406.59 KiB
/wp-admin/edit-comments.php0.437 s0.410 s-0.027 s3.49 MiB3.82 MiB+ 342.28 KiB
/0.337 s0.329 s-0.008 s3.45 MiB3.68 MiB+ 235.72 KiB
Average 0.375 s0.508 s+0.134 s3.88 MiB4.25 MiB+ 384.65 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
Language % Lines of code Comment lines Files
PHP39.3%36,7064,59180
JavaScript33.7%31,4753,60125
CSS13.1%12,26120915
PO File7.1%6,6633,85010
JSON4.9%4,57903
Twig1.4%1,275011
SVG0.3%311062
XML0.1%12901
Total 93,399 12,251 207

PHP Code Analysis | More results »

Lines of code 20,861
Total complexity 3,319
Median class complexity 59.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 28
Methods 377
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 19

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

[02-Sep-2024 07:09:30 UTC] PHP Warning:  Undefined variable $api_gdpr_dashboard in /wp-content/plugins/gdpr-cookie-consent/admin/views/gdpr-dashboard-page.php on line 317
[02-Sep-2024 07:09:41 UTC] PHP Warning:  Undefined variable $api_gdpr_dashboard in /wp-content/plugins/gdpr-cookie-consent/admin/views/gdpr-dashboard-page.php on line 317
[02-Sep-2024 07:09:50 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
[02-Sep-2024 07:09:50 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
[02-Sep-2024 07:09:50 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
[02-Sep-2024 07:09:50 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
[02-Sep-2024 07:09:50 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
[02-Sep-2024 07:09:50 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
[02-Sep-2024 07:10: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
[02-Sep-2024 07:10: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
[02-Sep-2024 07:10: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
[02-Sep-2024 07:10: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
[02-Sep-2024 07:10: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
[02-Sep-2024 07:10: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
[02-Sep-2024 07:10:12 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
[02-Sep-2024 07:10:12 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
[02-Sep-2024 07:10:12 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
[02-Sep-2024 07:10:12 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
[02-Sep-2024 07:10:12 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
[02-Sep-2024 07:10:12 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