78% gdpr-personal-data-reports

Code Review | GDPR Personal Data Reports

WordPress plugin GDPR Personal Data Reports scored78%from 54 tests.

About plugin

  • Plugin page: gdpr-personal-dat...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 16, 2018
  • Latest release: Jun 11, 2018
  • Number of updates: 10
  • Update frequency: every 8.8 days
  • Top authors: willowsconsulting (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /4,481 total downloads

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.22MB] [CPU: ▼4.64ms] Passed 4 tests

This is a short check of server-side resources used by GDPR Personal Data Reports
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2139.73 ▼0.41
Dashboard /wp-admin3.57 ▲0.2349.65 ▼13.00
Posts /wp-admin/edit.php3.63 ▲0.2748.63 ▲2.17
Add New Post /wp-admin/post-new.php6.11 ▲0.2394.61 ▼7.30
Media Library /wp-admin/upload.php3.44 ▲0.2139.53 ▲5.32
GDPR Settings /wp-admin/options-general.php?page=gdpr-personal-data-reports3.5138.59

Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: 1 new table, 6 new options
New tables
wp_gdpr_requests
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for GDPR Personal Data Reports
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲15913.79 ▼0.459.01 ▲7.4041.33 ▲2.31
Dashboard /wp-admin2,197 ▲265.51 ▼0.0990.06 ▼10.4338.95 ▼9.94
Posts /wp-admin/edit.php2,108 ▲82.02 ▲0.0039.80 ▲4.2334.96 ▲2.97
Add New Post /wp-admin/post-new.php1,533 ▲723.09 ▼0.55660.98 ▲26.1350.85 ▼0.64
Media Library /wp-admin/upload.php1,405 ▲54.21 ▼0.0297.88 ▼10.4841.43 ▲0.44
GDPR Settings /wp-admin/options-general.php?page=gdpr-personal-data-reports1,8422.0325.9331.18

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/gdpr-personal-data-reports/includes/mail/gdpr_delete_confirmation.php
    • > /wp-content/plugins/gdpr-personal-data-reports/includes/mail/gdpr_report.php
    • > /wp-content/plugins/gdpr-personal-data-reports/public/partials/gdpr-personal-data-reports-public-display.php
    • > /wp-content/plugins/gdpr-personal-data-reports/includes/mail/gdpr_confirmation.php
  • 29× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: texts in wp-content/plugins/gdpr-personal-data-reports/includes/mail/gdpr_confirmation.php on line 71
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gdpr-personal-data-reports/includes/mail/gdpr_confirmation.php on line 71
    • > PHP Notice
      Undefined variable: texts in wp-content/plugins/gdpr-personal-data-reports/includes/mail/gdpr_confirmation.php on line 92
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gdpr-personal-data-reports/includes/mail/gdpr_header.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gdpr-personal-data-reports/includes/mail/gdpr_delete_confirmation.php on line 81
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gdpr-personal-data-reports/includes/mail/gdpr_delete_confirmation.php on line 84
    • > PHP Notice
      Undefined variable: texts in wp-content/plugins/gdpr-personal-data-reports/includes/mail/gdpr_confirmation.php on line 93
    • > PHP Notice
      Undefined variable: texts in wp-content/plugins/gdpr-personal-data-reports/includes/mail/gdpr_delete_confirmation.php on line 70
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gdpr-personal-data-reports/includes/mail/gdpr_delete_confirmation.php on line 97
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gdpr-personal-data-reports/includes/mail/gdpr_delete_confirmation.php on line 70

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

gdpr-personal-data-reports/gdpr-personal-data-reports.php 85% from 13 tests

The main file in "GDPR Personal Data Reports" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
  • Requires at least: Required version must match the one declared in readme.txt ("4.9.4" instead of "4.4")

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
Everything looks great! No dangerous files found in this plugin3,260 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP204049322,214
PO File3272351957
CSS217867
JavaScript2215222

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity6.30
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods75
▷ Static methods34.00%
▷ Public methods7093.33%
▷ Protected methods00.00%
▷ Private methods56.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin