83% dsgvo-google-web-fonts-gdpr

Code Review | DSGVO Google Web Fonts GDPR

WordPress plugin DSGVO Google Web Fonts GDPR scored83%from 54 tests.

About plugin

  • Plugin page: dsgvo-google-web-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2019
  • Latest release: Mar 23, 2019
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: mlfactory (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /5,537 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.66ms] Passed 4 tests

An overview of server-side resources used by DSGVO Google Web Fonts GDPR
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.68 ▼1.09
Dashboard /wp-admin3.31 ▼0.0349.24 ▼14.42
Posts /wp-admin/edit.php3.37 ▲0.0151.58 ▲0.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.38 ▼21.94
Media Library /wp-admin/upload.php3.24 ▲0.0136.89 ▼1.20

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for DSGVO Google Web Fonts GDPR
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9114.73 ▲0.191.82 ▲0.2042.44 ▼2.02
Dashboard /wp-admin2,212 ▲375.69 ▼0.2096.10 ▼9.4339.96 ▼4.94
Posts /wp-admin/edit.php2,123 ▲232.11 ▲0.1342.54 ▼1.0235.45 ▼0.34
Add New Post /wp-admin/post-new.php1,549 ▲2023.28 ▲0.09647.68 ▼5.3048.50 ▼1.44
Media Library /wp-admin/upload.php1,420 ▲264.26 ▲0.02104.74 ▲6.5343.73 ▲0.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% 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 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/dsgvo-google-web-fonts-gdpr/core/inc/backend.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #5, #6 in dsgvo-google-web-fonts-gdpr/assets to your readme.txt
  • Requires php: Invalid plugin version format
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

dsgvo-google-web-fonts-gdpr/dsgvo-google-web-fonts-gdpr.php Passed 13 tests

The main file in "DSGVO Google Web Fonts GDPR" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
69 characters long description:
Allows you to use Google Web Fonts local without Google Server calls.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected354 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP230240302
CSS16028
JavaScript15024

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity13.50
▷ Minimum class complexity10.00
▷ Maximum class complexity17.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods888.89%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin