Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.70MB] [CPU: ▼2.23ms] Passed 4 tests
Server-side resources used by GDPR
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.77 | 41.87 ▼2.82 |
Dashboard /wp-admin | 4.03 ▲0.73 | 49.20 ▲4.31 |
Posts /wp-admin/edit.php | 4.08 ▲0.73 | 54.09 ▲4.26 |
Add New Post /wp-admin/post-new.php | 6.59 ▲0.70 | 89.94 ▼14.66 |
Media Library /wp-admin/upload.php | 3.89 ▲0.66 | 37.98 ▲5.40 |
Settings /wp-admin/admin.php?page=gdpr-settings | 4.10 | 40.11 |
Requests /wp-admin/admin.php?page=gdpr-requests | 3.97 | 36.80 |
Tools /wp-admin/admin.php?page=gdpr-tools | 3.88 | 34.84 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 18 new options
New WordPress options |
---|
gdpr_enable_privacy_bar |
gdpr_add_consent_checkboxes_checkout |
can_compress_scripts |
theysaidso_admin_options |
gdpr_recaptcha_site_key |
widget_theysaidso_widget |
gdpr_hide_from_bots |
gdpr_cookie_popup_content |
gdpr_display_cookie_categories_in_bar |
gdpr_recaptcha_secret_key |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for GDPR
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,116 ▲370 | 13.85 ▼0.93 | 8.30 ▲6.42 | 43.82 ▼0.16 |
Dashboard /wp-admin | 2,228 ▲43 | 5.04 ▼0.87 | 106.48 ▲6.34 | 38.55 ▼5.69 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.42 ▲0.42 | 49.95 ▲10.36 | 37.98 ▲5.10 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 21.12 ▲3.62 | 580.64 ▼48.49 | 26.85 ▼41.60 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.25 ▼0.01 | 100.06 ▲1.33 | 40.95 ▼0.05 |
Settings /wp-admin/admin.php?page=gdpr-settings | 2,168 | 2.20 | 33.71 | 44.66 |
Requests /wp-admin/admin.php?page=gdpr-requests | 1,104 | 1.95 | 30.70 | 27.91 |
Tools /wp-admin/admin.php?page=gdpr-tools | 1,108 | 1.96 | 27.61 | 27.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 18 options
- gdpr_enable_privacy_bar
- db_upgraded
- gdpr_hide_from_bots
- gdpr_cookie_popup_content
- gdpr_recaptcha_site_key
- gdpr_disable_css
- widget_recent-comments
- gdpr_add_consent_checkboxes_registration
- gdpr_refresh_after_preferences_update
- gdpr_display_cookie_categories_in_bar
- ...
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% 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 items
- 31× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gdpr/public/partials/confirmation-screens.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gdpr/admin/partials/templates/tmpl-tools.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gdpr/admin/partials/templates/tmpl-consents.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gdpr/public/class-gdpr-public.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gdpr/admin/partials/tools.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gdpr/templates/privacy-preferences-modal.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gdpr/templates/forms/export-data-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gdpr/admin/partials/templates/tmpl-cookies.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gdpr/templates/reconsent-bar.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/gdpr/templates/email/delete-resolved.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: law, privacy, general data protection regulation, compliance, gdpr
gdpr/gdpr.php 92% from 13 tests
The primary PHP file in "GDPR" version 2.1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 166 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin16,637 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 12,078 |
PHP | 43 | 548 | 1,239 | 4,345 |
Markdown | 1 | 58 | 0 | 106 |
JavaScript | 3 | 9 | 6 | 94 |
XML | 1 | 0 | 0 | 12 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 31.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 29 | 29.00% |
▷ Public methods | 85 | 85.00% |
▷ Protected methods | 5 | 5.00% |
▷ Private methods | 10 | 10.00% |
Functions | 22 | |
▷ Named functions | 13 | 59.09% |
▷ Anonymous functions | 9 | 40.91% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected