72% dsgvo-youtube

Code Review | DSGVO Youtube

WordPress plugin DSGVO Youtube scored72%from 54 tests.

About plugin

  • Plugin page: dsgvo-youtube
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 14, 2018
  • Latest release: Oct 10, 2023
  • Number of updates: 34
  • Update frequency: every 57.2 days
  • Top authors: Annubis (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /10,733 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.21ms] Passed 4 tests

Analyzing server-side resources used by DSGVO Youtube
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.99 ▼9.57
Dashboard /wp-admin3.36 ▲0.0543.75 ▼4.15
Posts /wp-admin/edit.php3.41 ▲0.0542.56 ▼8.59
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.16 ▼10.51
Media Library /wp-admin/upload.php3.28 ▲0.0532.97 ▼0.43
DSGVO Youtube /wp-admin/options-general.php?page=QGA_dsgvoyoutube3.2531.47

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for DSGVO Youtube
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲12713.88 ▼0.4710.29 ▲8.5839.55 ▼4.93
Dashboard /wp-admin2,210 ▲365.66 ▲0.0781.98 ▼8.1337.43 ▼2.39
Posts /wp-admin/edit.php2,106 ▲92.02 ▼0.0135.42 ▼0.9131.56 ▼1.38
Add New Post /wp-admin/post-new.php1,545 ▲818.35 ▲0.28609.17 ▼34.5959.80 ▼1.60
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.0399.36 ▼5.8239.77 ▼5.11
DSGVO Youtube /wp-admin/options-general.php?page=QGA_dsgvoyoutube8691.9921.8829.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% 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 | 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/dsgvo-youtube/css/style.php
  • 4× 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-youtube/includes/add-js-css.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dsgvo-youtube/includes/add-button-texteditor-eigenesbild.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dsgvo-youtube/includes/add-button-texteditor.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dsgvo-youtube/index.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=QGA_dsgvoyoutube
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=QGA_dsgvoyoutube 160 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 86% 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: These screenshots need descriptions #1, #2, #3, #4 in dsgvo-youtube/assets to your readme.txt
Please take inspiration from this readme.txt

dsgvo-youtube/index.php 77% from 13 tests

This is the main PHP file of "DSGVO Youtube" version 1.4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.5")
  • Description: Keep the plugin description shorter than 140 characters (currently 202 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dsgvo-youtube.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected9,123 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21,1116146,977
CSS2119151,521
PO File58595404
PHP89563221

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions12
▷ Named functions12100.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
There were not PNG files found in your plugin