84% gdpr-data-request-form

Code Review | GDPR Data Request Form

WordPress plugin GDPR Data Request Form scored 84% from 54 tests.

About plugin

  • Plugin page: gdpr-data-request...
  • Plugin version: 1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.1
  • WordPress version: 6.3.1
  • First release: May 17, 2018
  • Latest release: Oct 26, 2022
  • Number of updates: 50
  • Update frequency: every 32.5 days
  • Top authors: audrasjb (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

7,000+ active / 58,188 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.98 ▼3.89
Dashboard /wp-admin3.32 ▲0.0248.24 ▲2.88
Posts /wp-admin/edit.php3.37 ▲0.0248.37 ▲1.37
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.37 ▼9.14
Media Library /wp-admin/upload.php3.25 ▲0.0237.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.081.75 ▼0.6540.14 ▼7.60
Dashboard /wp-admin2,206 ▲215.79 ▼0.02112.15 ▲2.8943.00 ▲1.24
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0139.12 ▲0.1836.74 ▲1.29
Add New Post /wp-admin/post-new.php6,420 ▲4,90120.42 ▼2.92931.74 ▲237.4663.59 ▲13.91
Media Library /wp-admin/upload.php1,388 ▲34.24 ▼0.0398.64 ▼2.7042.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

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: You can look at the official 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:
LanguageFilesBlank linesComment linesLines of code
PHP954108279
JavaScript3170156
CSS10322

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 code0.30
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity4.67
▷ Minimum method complexity4.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/screenshot-11.png63.91KB20.79KB▼ 67.47%
assets/icon-256x256.png60.35KB20.20KB▼ 66.54%
assets/screenshot-2.png53.04KB17.21KB▼ 67.56%
assets/screenshot-1.png93.23KB25.23KB▼ 72.93%
assets/screenshot-9.png85.04KB28.07KB▼ 66.99%