WP Cookie Consent 3.0.2

Does WP Cookie Consent work with WordPress 6.5.2 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: 284.36 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

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

Environment
WordPress version6.5.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=fddac12522
Aspect after-activation
HTTP status 200
Load time 7.436 s
Memory usage 4.71 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 5.087 s
Memory usage 3.93 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.529 s
Memory usage 4.09 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.383 s0.510 s+0.127 s3.44 MiB3.72 MiB+ 291.09 KiB
/wp-admin/edit.php0.211 s0.696 s+0.485 s3.46 MiB3.79 MiB+ 339.98 KiB
/wp-admin/post-new.php0.954 s1.048 s+0.094 s5.59 MiB5.89 MiB+ 300.94 KiB
/wp-admin/upload.php0.616 s0.449 s-0.167 s3.38 MiB3.63 MiB+ 254.91 KiB
/wp-admin/options-writing.php0.228 s0.675 s+0.447 s3.37 MiB3.66 MiB+ 289.64 KiB
/wp-admin/media-new.php0.311 s0.555 s+0.244 s3.35 MiB3.63 MiB+ 284.76 KiB
/wp-admin/edit-tags.php?taxonomy=category0.205 s0.372 s+0.167 s3.37 MiB3.67 MiB+ 313.58 KiB
/wp-admin/post-new.php?post_type=page0.564 s1.016 s+0.452 s5.59 MiB5.88 MiB+ 300.87 KiB
/wp-admin/options-discussion.php0.366 s0.441 s+0.075 s3.36 MiB3.65 MiB+ 300.56 KiB
/wp-admin/edit-comments.php0.260 s0.354 s+0.094 s3.39 MiB3.68 MiB+ 294.9 KiB
/0.311 s0.320 s+0.009 s3.42 MiB3.57 MiB+ 156.73 KiB
Average 0.401 s0.585 s+0.184 s3.79 MiB4.07 MiB+ 284.36 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.1%25,8944,13070
JavaScript35.5%22,9283,48925
CSS11.1%7,1571439
PO File10.3%6,6633,85010
Twig2.0%1,275011
JSON0.9%55902
XML0.2%12501
SVG0.0%1904
Total 64,620 11,612 132

PHP Code Analysis | More results »

Lines of code 35,922
Total complexity 5,576
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 52
Methods 678
Functions 36

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 12

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

[10-Apr-2024 23:32:46 UTC] PHP Warning:  Undefined variable $api_gdpr_dashboard in /wp-content/plugins/gdpr-cookie-consent/admin/views/gdpr-dashboard-page.php on line 303
[10-Apr-2024 23:32:55 UTC] PHP Warning:  Undefined variable $api_gdpr_dashboard in /wp-content/plugins/gdpr-cookie-consent/admin/views/gdpr-dashboard-page.php on line 303
[10-Apr-2024 23:33: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
[10-Apr-2024 23:33: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
[10-Apr-2024 23:33: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
[10-Apr-2024 23:33: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
[10-Apr-2024 23:33: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
[10-Apr-2024 23:33: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
[10-Apr-2024 23:33:13 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
[10-Apr-2024 23:33:13 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
[10-Apr-2024 23:33:13 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
[10-Apr-2024 23:33:13 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
[10-Apr-2024 23:33:13 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
[10-Apr-2024 23:33:13 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