Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.15ms] Passed 4 tests
This is a short check of server-side resources used by GDPR Compliance
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 44.06 ▼0.28 |
Dashboard /wp-admin | 3.46 ▲0.11 | 50.28 ▼13.41 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.69 ▼0.39 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 96.77 ▼6.51 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 39.21 ▲2.88 |
GDPR Compliance /wp-admin/options-general.php?page=gdpr-compliance | 3.45 | 42.07 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
gdpr-compliance-version |
widget_recent-posts |
Browser metrics Passed 4 tests
GDPR Compliance: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲113 | 13.39 ▼1.25 | 8.17 ▲6.44 | 42.53 ▼0.81 |
Dashboard /wp-admin | 2,200 ▲26 | 5.62 ▲0.06 | 90.82 ▼6.78 | 38.83 ▼1.44 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 1.99 ▲0.01 | 39.92 ▲0.50 | 32.11 ▼8.27 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.99 ▼0.75 | 691.13 ▼8.24 | 58.54 ▲5.29 |
Media Library /wp-admin/upload.php | 1,399 ▼1 | 4.22 ▲0.01 | 104.20 ▼1.26 | 42.85 ▼2.25 |
GDPR Compliance /wp-admin/options-general.php?page=gdpr-compliance | 1,450 | 1.70 | 23.08 | 36.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- 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
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gdpr-compliance/public/partials/proofreading-public-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/gdpr-compliance/admin/partials/gdpr-compliance-admin-display-users-data.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gdpr-compliance/admin/partials/gdpr-compliance-admin-display-about.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gdpr-compliance/admin/partials/gdpr-compliance-admin-display-shortcodes.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: users, privacy, regulation, european, compliance...
gdpr-compliance/gdpr-compliance.php Passed 13 tests
The main file in "GDPR Compliance" v. 1.2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
135 characters long description:
This plugin helps webmasters to accomplish the european GDPR (data protection regulation) allowing users to manage their personal data.
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
No dangerous file extensions were detected1,573 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 356 | 590 | 1,157 |
PO File | 1 | 58 | 82 | 164 |
CSS | 2 | 38 | 7 | 160 |
JavaScript | 3 | 11 | 31 | 70 |
SVG | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 20.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 5.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 3 | 6.98% |
▷ Public methods | 35 | 81.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 18.60% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logo_scribit.png | 1.98KB | 1.98KB | 0.34% |
admin/images/logo.png | 14.62KB | 8.35KB | ▼ 42.87% |
admin/images/logo_shortcodes_finder.png | 2.91KB | 2.20KB | ▼ 24.24% |