84% dsgvo-de

Code Review | DSGVO/GDPR Cookies, DSE, Impressum & Google Fonts Proxy

WordPress plugin DSGVO/GDPR Cookies, DSE, Impressum & Google Fonts Proxy scored84%from 54 tests.

About plugin

  • Plugin page: dsgvo-de
  • Plugin version: 1.9
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 8, 2018
  • Latest release: Jun 18, 2018
  • Number of updates: 12
  • Update frequency: every 0.9 days
  • Top authors: woolinks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /6,876 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.67ms] Passed 4 tests

This is a short check of server-side resources used by DSGVO/GDPR Cookies, DSE, Impressum & Google Fonts Proxy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.17 ▼1.10
Dashboard /wp-admin3.31 ▼0.0344.86 ▼15.28
Posts /wp-admin/edit.php3.36 ▲0.0047.23 ▼3.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.79 ▼11.06
Media Library /wp-admin/upload.php3.23 ▲0.0038.28 ▲8.22

Server storage [IO: ▲0.57MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by DSGVO/GDPR Cookies, DSE, Impressum & Google Fonts Proxy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.19 ▼1.161.58 ▼0.1439.68 ▼3.88
Dashboard /wp-admin2,215 ▲275.86 ▲0.97101.15 ▼14.9138.78 ▼3.48
Posts /wp-admin/edit.php2,098 ▲92.03 ▲0.0535.02 ▼1.0734.88 ▼0.12
Add New Post /wp-admin/post-new.php1,524 ▲1023.47 ▲5.89666.66 ▲76.7356.75 ▲3.61
Media Library /wp-admin/upload.php1,397 ▲94.24 ▲0.06106.55 ▲8.4046.72 ▲4.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dsgvo-de/bc-dsgvo-de.php

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 93% from 29 tests

readme.txt Passed 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
5 plugin tags: google fonts, google analytics, gdspr, datenschutz, dsgvo

dsgvo-de/bc-dsgvo-de.php 85% from 13 tests

The main file in "DSGVO/GDPR Cookies, DSE, Impressum & Google Fonts Proxy" v. 1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dsgvo-de.php" instead of "bc-dsgvo-de.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,352 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP12417750
PO File1142142579
CSS20022
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
7 PNG files occupy 0.44MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/5c1a95c6303beb2cc68cc8400ac6ffe0.png186.84KB72.81KB▼ 61.03%
assets/screenshot-2.png38.72KB19.78KB▼ 48.92%
assets/screenshot-3.png78.59KB37.71KB▼ 52.02%
assets/screenshot-6.png28.17KB15.75KB▼ 44.09%
assets/screenshot-5.png27.50KB15.75KB▼ 42.72%