Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼2.33ms] Passed 4 tests
This is a short check of server-side resources used by WP GDPR Cookie Notice
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 41.72 ▼0.94 |
Dashboard /wp-admin | 3.58 ▲0.28 | 47.78 ▼3.78 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 47.72 ▲2.11 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 91.26 ▼1.15 |
Media Library /wp-admin/upload.php | 3.50 ▲0.28 | 35.49 ▼3.43 |
Cookie Notice /wp-admin/customize.php?autofocus[panel]=wp_gdpr_cookie_notice_settings | 6.65 | 193.11 |
Server storage [IO: ▲0.30MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP GDPR Cookie Notice
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,985 ▲250 | 14.45 ▲0.06 | 2.78 ▲0.81 | 37.24 ▼6.94 |
Dashboard /wp-admin | 2,213 ▲25 | 4.85 ▼0.07 | 107.34 ▼0.13 | 42.05 ▼1.81 |
Posts /wp-admin/edit.php | 2,093 ▲25 | 2.02 ▼0.04 | 39.32 ▲3.69 | 35.50 ▲0.73 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.76 ▼5.55 | 659.33 ▼38.28 | 48.86 ▼8.87 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▼0.05 | 97.24 ▼13.64 | 41.19 ▼6.15 |
Cookie Notice /wp-admin/customize.php?autofocus[panel]=wp_gdpr_cookie_notice_settings | 9,256 | 23.10 | 669.78 | 168.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 83× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Felix_Arntz\\WP_GDPR_Cookie_Notice\\Contracts\\Cookie_Integration' not found in wp-content/plugins/wp-gdpr-cookie-notice/src/cookie-integrations/class-site-kit-analytics-cookie-integration.php:20
- > PHP Fatal error
Uncaught Error: Class 'AMP_Base_Sanitizer' not found in wp-content/plugins/wp-gdpr-cookie-notice/src/cookie-integrations/class-amp-block-on-consent-sanitizer.php:20
- > PHP Fatal error
Uncaught Error: Class 'Felix_Arntz\\WP_GDPR_Cookie_Notice\\Hooks\\Abstract_Hook' not found in wp-content/plugins/wp-gdpr-cookie-notice/src/hooks/class-wordpress-action-hook.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Felix_Arntz\\WP_GDPR_Cookie_Notice\\Contracts\\Integration' not found in wp-content/plugins/wp-gdpr-cookie-notice/src/class-plugin-customizer.php:22
- > PHP Fatal error
Uncaught Error: Class 'Felix_Arntz\\WP_GDPR_Cookie_Notice\\Customizer\\Abstract_Customizer_Control' not found in wp-content/plugins/wp-gdpr-cookie-notice/src/customizer/class-media-customizer-control.php:20
- > PHP Fatal error
Uncaught Error: Class 'Felix_Arntz\\WP_GDPR_Cookie_Notice\\Shortcodes\\Base_Shortcode' not found in wp-content/plugins/wp-gdpr-cookie-notice/src/shortcodes/class-base-context-shortcode.php:18
- > PHP Fatal error
Uncaught Error: Class 'Felix_Arntz\\WP_GDPR_Cookie_Notice\\Cookie_Notice\\Cookie_Notice_AMP_Markup' not found in wp-content/plugins/wp-gdpr-cookie-notice/src/cookie-notice/class-cookie-notice-amp-story-markup.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Felix_Arntz\\WP_GDPR_Cookie_Notice\\Contracts\\Integration' not found in wp-content/plugins/wp-gdpr-cookie-notice/src/class-plugin-appearance-settings.php:32
- > PHP Fatal error
Uncaught Error: Class 'Felix_Arntz\\WP_GDPR_Cookie_Notice\\Cookie_Notice\\Cookie_Notice_Form_Markup' not found in wp-content/plugins/wp-gdpr-cookie-notice/src/cookie-notice/class-cookie-notice-form-amp-markup.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Felix_Arntz\\WP_GDPR_Cookie_Notice\\Contracts\\Enum' not found in wp-content/plugins/wp-gdpr-cookie-notice/src/contracts/interface-labelled-enum.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/customize.php?autofocus[panel]=wp_gdpr_cookie_notice_settings
- > Security (warning) in unknown
/?customize_changeset_uuid=9a473e35-87f7-4988-bda5-bbbc191e7310&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: cookie consent, cookie notice, gdpr, amp, granular cookie control...
wp-gdpr-cookie-notice/wp-gdpr-cookie-notice.php 92% from 13 tests
The entry point to "WP GDPR Cookie Notice" version 1.0.0-rc.2... is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.0.0-rc.2...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,327 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 117 | 1,369 | 5,440 | 4,327 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 3.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 26 | |
Traits | 4 | |
Classes | 86 | |
▷ Abstract classes | 3 | 3.49% |
▷ Concrete classes | 83 | 96.51% |
▷ Final classes | 0 | 0.00% |
Methods | 411 | |
▷ Static methods | 6 | 1.46% |
▷ Public methods | 304 | 73.97% |
▷ Protected methods | 105 | 25.55% |
▷ Private methods | 2 | 0.49% |
Functions | 29 | |
▷ Named functions | 2 | 6.90% |
▷ Anonymous functions | 27 | 93.10% |
Constants | 90 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 90 | 100.00% |
▷ Public constants | 90 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin