Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.20ms] Passed 4 tests
Analyzing server-side resources used by GDPR Data Request Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.98 ▼3.89 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.24 ▲2.88 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.37 ▲1.37 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.37 ▼9.14 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.08 ▲4.87 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_gdrf-widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for GDPR Data Request Form
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.29 ▼1.08 | 1.75 ▼0.65 | 40.14 ▼7.60 |
Dashboard /wp-admin | 2,206 ▲21 | 5.79 ▼0.02 | 112.15 ▲2.89 | 43.00 ▲1.24 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 39.12 ▲0.18 | 36.74 ▲1.29 |
Add New Post /wp-admin/post-new.php | 6,420 ▲4,901 | 20.42 ▼2.92 | 931.74 ▲237.46 | 63.59 ▲13.91 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.24 ▼0.03 | 98.64 ▼2.70 | 42.44 ▼2.77 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_gdrf-widget
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdpr-data-request-form/public/enqueues.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gdpr-data-request-form/includes/admin-settings.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdpr-data-request-form/public/shortcode.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdpr-data-request-form/public/block.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdpr-data-request-form/public/public.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdpr-data-request-form/includes/data-request.php:61
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gdpr-data-request-form/public/widget.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdpr-data-request-form/data-request.php:61
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #10, #11 in gdpr-data-request-form/assets to your readme.txt
gdpr-data-request-form/gdpr-data-request-form.php Passed 13 tests
The main file in "GDPR Data Request Form" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
138 characters long description:
Use WordPress Core GDPR tools to build front-end Personal Data export/erasure forms (includes Widget, Gutenberg Block, shortcode & Hooks).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin457 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 54 | 108 | 279 |
JavaScript | 3 | 17 | 0 | 156 |
CSS | 1 | 0 | 3 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 4.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 1.51MB with 1.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-11.png | 63.91KB | 20.79KB | ▼ 67.47% |
assets/icon-256x256.png | 60.35KB | 20.20KB | ▼ 66.54% |
assets/screenshot-2.png | 53.04KB | 17.21KB | ▼ 67.56% |
assets/screenshot-1.png | 93.23KB | 25.23KB | ▼ 72.93% |
assets/screenshot-9.png | 85.04KB | 28.07KB | ▼ 66.99% |