Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.41MB] [CPU: ▲9.01ms] Passed 4 tests
A check of server-side resources used by Cookie Information | Free GDPR Consent Solution
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 54.02 ▲11.86 |
Dashboard /wp-admin | 3.73 ▲0.43 | 56.42 ▲5.84 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 65.42 ▲16.64 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 91.33 ▲3.91 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 47.73 ▲14.44 |
Requests /wp-admin/admin.php?page=wp-gdpr-compliance-requests | 3.85 | 52.13 |
Settings /wp-admin/admin.php?page=wp-gdpr-compliance-settings | 3.42 | 32.41 |
Wizard /wp-admin/admin.php?page=wp-gdpr-compliance-wizard | 3.64 | 46.06 |
Dashboard /wp-admin/admin.php?page=wp-gdpr-compliance | 3.85 | 55.60 |
Server storage [IO: ▲2.31MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 299 new files
Database: 4 new tables, 15 new options
New tables |
---|
wp_wpgdprc_access_requests |
wp_wpgdprc_delete_requests |
wp_wpgdprc_log |
wp_wpgdprc_consents |
New WordPress options |
---|
widget_recent-comments |
wpgdprc_db_version_consents |
db_upgraded |
wpgdprc_data_access_request_ids |
wpgdprc_db_version_access_requests |
widget_theysaidso_widget |
widget_recent-posts |
wpgdprc_settings_enable_premium_mode |
wpgdprc_activated |
wpgdprc_db_version_log |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Cookie Information | Free GDPR Consent Solution
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,116 ▲359 | 17.53 ▲3.15 | 8.06 ▲6.19 | 36.13 ▼13.14 |
Dashboard /wp-admin | 2,388 ▲200 | 7.94 ▲2.12 | 193.00 ▲86.94 | 44.05 ▲4.02 |
Posts /wp-admin/edit.php | 2,303 ▲214 | 5.33 ▲3.36 | 98.98 ▲61.51 | 29.91 ▼4.27 |
Add New Post /wp-admin/post-new.php | 1,564 ▲50 | 25.06 ▲7.58 | 714.05 ▲47.15 | 36.84 ▼20.91 |
Media Library /wp-admin/upload.php | 1,442 ▲51 | 6.51 ▲2.32 | 136.78 ▲40.60 | 48.94 ▲6.02 |
Requests /wp-admin/admin.php?page=wp-gdpr-compliance-requests | 1,670 | 7.11 | 171.01 | 106.37 |
Settings /wp-admin/admin.php?page=wp-gdpr-compliance-settings | 3,193 | 7.11 | 168.55 | 60.28 |
Wizard /wp-admin/admin.php?page=wp-gdpr-compliance-wizard | 1,066 | 4.89 | 75.46 | 16.67 |
Dashboard /wp-admin/admin.php?page=wp-gdpr-compliance | 1,902 | 7.22 | 150.92 | 50.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables were found after uninstall: 4 tables
- wp_wpgdprc_consents
- wp_wpgdprc_log
- wp_wpgdprc_delete_requests
- wp_wpgdprc_access_requests
- Zombie WordPress options were found after uninstall: 15 options
- wpgdprc_settings_enable_access_request
- wpgdprc_activated
- wpgdprc_settings_enable_premium_mode
- wpgdprc_form_last_shown
- widget_theysaidso_widget
- wpgdprc_db_version_consents
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-gdpr-compliance/Templates/Front/Form/AccessRequest/Submit/success.php
- 119× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPGDPRC\\Utils\\Template' not found in wp-content/plugins/wp-gdpr-compliance/Templates/Front/Consent/adminBar.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPGDPRC\\WordPress\\Admin\\Pages\\PageDashboard' not found in wp-content/plugins/wp-gdpr-compliance/Templates/Admin/Pages/Processors/main.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-gdpr-compliance/Templates/Admin/Elements/notice-fancy.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/wp-gdpr-compliance/Templates/Front/Elements/error.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_key() in wp-content/plugins/wp-gdpr-compliance/Templates/Admin/Form/field-textarea.php:13
- > PHP Warning
key() expects parameter 1 to be array, null given in wp-content/plugins/wp-gdpr-compliance/Templates/Admin/Pages/Settings/main.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'WPGDPRC\\Objects\\AbstractObject' not found in wp-content/plugins/wp-gdpr-compliance/Objects/DataProcessor.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/wp-gdpr-compliance/Templates/Front/Form/AccessRequest/Submit/notice.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-gdpr-compliance/Templates/Admin/banner.php:11
- > PHP Fatal error
Uncaught Error: Class 'WPGDPRC\\Integrations\\AbstractIntegration' not found in wp-content/plugins/wp-gdpr-compliance/Integrations/Plugins/AbstractPlugin.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=wp-gdpr-compliance-wizard
- > Javascript (severe) in unknown
/wp-content/plugins/wp-gdpr-compliance/Assets/js/admin.min.js?ver=1651571244 0:229922 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
wp-gdpr-compliance/wp-gdpr-compliance.php 92% from 13 tests
The entry point to "Cookie Information | Free GDPR Consent Solution" version 2.0.22 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: Use only dashes and lowercase characters for the domain path ("/Resources/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin19,771 lines of code in 277 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 161 | 2,417 | 4,210 | 11,050 |
Sass | 50 | 738 | 47 | 3,541 |
JavaScript | 42 | 622 | 763 | 3,382 |
PO File | 1 | 395 | 468 | 1,493 |
SVG | 18 | 0 | 0 | 191 |
XML | 2 | 11 | 14 | 97 |
JSON | 1 | 0 | 0 | 15 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 79 | |
▷ Abstract classes | 11 | 13.92% |
▷ Concrete classes | 68 | 86.08% |
▷ Final classes | 0 | 0.00% |
Methods | 861 | |
▷ Static methods | 500 | 58.07% |
▷ Public methods | 782 | 90.82% |
▷ Protected methods | 75 | 8.71% |
▷ Private methods | 4 | 0.46% |
Functions | 25 | |
▷ Named functions | 1 | 4.00% |
▷ Anonymous functions | 24 | 96.00% |
Constants | 145 | |
▷ Global constants | 5 | 3.45% |
▷ Class constants | 140 | 96.55% |
▷ Public constants | 140 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin