10% dsgvo

Code Review | EU DSGVO Helper

WordPress plugin EU DSGVO Helper scored10%from 54 tests.

About plugin

  • Plugin page: dsgvo
  • Plugin version: 1.0.6.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.6
  • WordPress version: 6.3.1
  • First release: May 23, 2018
  • Latest release: Jun 7, 2018
  • Number of updates: 33
  • Update frequency: every 0.5 days
  • Top authors: emarten (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

800+ active /3,610 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/dsgvo/eu-dsgvo-helper.php+36
    Undefined variable: url

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.70ms] Passed 4 tests

An overview of server-side resources used by EU DSGVO Helper
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.04 ▼1.26
Dashboard /wp-admin3.36 ▲0.0143.28 ▼16.88
Posts /wp-admin/edit.php3.41 ▲0.0541.95 ▼1.90
Add New Post /wp-admin/post-new.php5.94 ▲0.0580.77 ▼14.77
Media Library /wp-admin/upload.php3.28 ▲0.0436.41 ▲1.75

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
eudsgvo_helper_installed
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for EU DSGVO Helper
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4513.24 ▼1.081.38 ▼0.3538.76 ▼2.87
Dashboard /wp-admin2,206 ▲155.79 ▼0.10100.67 ▼2.1239.93 ▼5.26
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0036.64 ▲0.3531.46 ▼3.16
Add New Post /wp-admin/post-new.php1,514 ▼017.61 ▼0.02676.36 ▲18.1260.49 ▲9.63
Media Library /wp-admin/upload.php1,382 ▼64.16 ▼0.0595.90 ▼2.0444.03 ▼3.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • eudsgvo_helper_installed
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dsgvo/eu-dsgvo-helper.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (No Screenshot available) image required
The official readme.txt is a good inspiration

dsgvo/eu-dsgvo-helper.php 85% from 13 tests

This is the main PHP file of "EU DSGVO Helper" version 1.0.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 228 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("dsgvo.php" instead of "eu-dsgvo-helper.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin347 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP113148347

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin