Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/gdpr-tools/includes/class-gdpr-tools.php+193
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.96MB] [CPU: ▼58.58ms] Passed 4 tests
Analyzing server-side resources used by GDPR Tools
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.33 ▼34.40 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.43 ▼45.89 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 8.86 ▼41.36 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.66 ▼112.68 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.23 ▼27.45 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for GDPR Tools
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲188 | 13.63 ▼0.79 | 5.69 ▲3.78 | 45.39 ▼1.05 |
Dashboard /wp-admin | 2,218 ▲30 | 4.85 ▼1.05 | 106.78 ▼0.78 | 43.96 ▼3.77 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.00 ▼0.05 | 39.04 ▼2.09 | 34.35 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,544 ▲2 | 23.38 ▲5.30 | 588.91 ▼8.71 | 52.63 ▲3.88 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.23 ▼0.04 | 98.64 ▼2.38 | 40.37 ▼2.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/gdpr-tools/includes/class-gdpr-tools.php+193
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gdpr-tools/public/partials/gdpr-tools-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/gdpr-tools/admin/partials/gdpr-tools-admin-settings-page.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: gdpr, cookie consent
gdpr-tools/gdpr-tools.php Passed 13 tests
"GDPR Tools" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
This plugin helps WP administrators to consent GDPR
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected13,333 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 1,448 | 1,611 | 10,775 |
PHP | 23 | 307 | 952 | 1,457 |
CSS | 5 | 63 | 51 | 754 |
Markdown | 3 | 119 | 0 | 274 |
JSON | 2 | 2 | 0 | 73 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 14.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 10 | 10.31% |
▷ Public methods | 81 | 83.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 16.49% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/donate.png | 16.19KB | 4.48KB | ▼ 72.32% |
admin/img/pro-feature.png | 2.13KB | 0.80KB | ▼ 62.39% |
admin/img/get-pro.png | 6.62KB | 3.42KB | ▼ 48.30% |
admin/img/pro-version.png | 17.54KB | 7.88KB | ▼ 55.10% |