83% dsgvo-tools-cookie-hinweis-datenschutz

Code Review | GDPR tools: Cookie notice + privacy

WordPress plugin GDPR tools: Cookie notice + privacy scored83%from 54 tests.

About plugin

  • Plugin page: dsgvo-tools-cooki...
  • Plugin version: 1.10
  • PHP compatiblity: 6.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.3-6.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2018
  • Latest release: Nov 5, 2022
  • Number of updates: 49
  • Update frequency: every 32.6 days
  • Top authors: fhwebdesign (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

7,000+ active /66,472 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.62ms] Passed 4 tests

A check of server-side resources used by GDPR tools: Cookie notice + privacy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0851.41 ▲0.38
Dashboard /wp-admin3.39 ▲0.0848.26 ▼1.46
Posts /wp-admin/edit.php3.44 ▲0.0848.92 ▲2.24
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.66 ▼8.01
Media Library /wp-admin/upload.php3.31 ▲0.0834.57 ▼1.38

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for GDPR tools: Cookie notice + privacy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲17313.82 ▼0.567.04 ▲4.7340.79 ▼2.68
Dashboard /wp-admin2,239 ▲515.16 ▼0.72116.11 ▲8.2541.99 ▲0.39
Posts /wp-admin/edit.php2,103 ▲142.57 ▲0.5742.12 ▲5.1039.47 ▲5.24
Add New Post /wp-admin/post-new.php1,544 ▲217.76 ▼0.55619.24 ▲30.9237.22 ▼18.56
Media Library /wp-admin/upload.php1,425 ▲344.46 ▲0.2988.78 ▼15.9840.60 ▼5.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dsgvo-tools-cookie-hinweis-datenschutz/admin/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/dsgvo-tools-cookie-hinweis-datenschutz/main.php:12

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 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • License uri: Please fix this invalid url: "license.txt"
The official readme.txt is a good inspiration

dsgvo-tools-cookie-hinweis-datenschutz/main.php 92% from 13 tests

The entry point to "GDPR tools: Cookie notice + privacy" version 1.10 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dsgvo-tools-cookie-hinweis-datenschutz.php" instead of "main.php")

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
No dangerous file extensions were detected407 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP42011303
CSS19064
JavaScript25140

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected