79% gdpr-compliance

Code Review | GDPR Compliance

WordPress plugin GDPR Compliance scored79%from 54 tests.

About plugin

  • Plugin page: gdpr-compliance
  • Plugin version: 1.2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6.0
  • WordPress version: 6.3.1
  • First release: Mar 26, 2018
  • Latest release: Dec 10, 2020
  • Number of updates: 34
  • Update frequency: every 29.2 days
  • Top authors: scribit (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

900+ active /4,079 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1544.06 ▼0.28
Dashboard /wp-admin3.46 ▲0.1150.28 ▼13.41
Posts /wp-admin/edit.php3.57 ▲0.2152.69 ▼0.39
Add New Post /wp-admin/post-new.php6.06 ▲0.1796.77 ▼6.51
Media Library /wp-admin/upload.php3.38 ▲0.1539.21 ▲2.88
GDPR Compliance /wp-admin/options-general.php?page=gdpr-compliance3.4542.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11313.39 ▼1.258.17 ▲6.4442.53 ▼0.81
Dashboard /wp-admin2,200 ▲265.62 ▲0.0690.82 ▼6.7838.83 ▼1.44
Posts /wp-admin/edit.php2,105 ▲51.99 ▲0.0139.92 ▲0.5032.11 ▼8.27
Add New Post /wp-admin/post-new.php1,536 ▲1022.99 ▼0.75691.13 ▼8.2458.54 ▲5.29
Media Library /wp-admin/upload.php1,399 ▼14.22 ▲0.01104.20 ▼1.2642.85 ▼2.25
GDPR Compliance /wp-admin/options-general.php?page=gdpr-compliance1,4501.7023.0836.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP193565901,157
PO File15882164
CSS2387160
JavaScript3113170
SVG10022

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 code0.62
Average class complexity20.89
▷ Minimum class complexity1.00
▷ Maximum class complexity78.00
Average method complexity5.16
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods43
▷ Static methods36.98%
▷ Public methods3581.40%
▷ Protected methods00.00%
▷ Private methods818.60%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/images/logo_scribit.png1.98KB1.98KB0.34%
admin/images/logo.png14.62KB8.35KB▼ 42.87%
admin/images/logo_shortcodes_finder.png2.91KB2.20KB▼ 24.24%