84% ga-germanized

Code Review | Analytics Germanized for Google Analytics (GDPR / DSGVO)

WordPress plugin Analytics Germanized for Google Analytics (GDPR / DSGVO) scored84%from 54 tests.

About plugin

  • Plugin page: ga-germanized
  • Plugin version: 1.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2018
  • Latest release: Jun 30, 2022
  • Number of updates: 36
  • Update frequency: every 44.6 days
  • Top authors: PascalBajorat (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

10,000+ active /166,276 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼7.56ms] Passed 4 tests

A check of server-side resources used by Analytics Germanized for Google Analytics (GDPR / DSGVO)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1648.30 ▲8.38
Dashboard /wp-admin3.43 ▲0.0847.08 ▼14.28
Posts /wp-admin/edit.php3.54 ▲0.1847.69 ▲0.21
Add New Post /wp-admin/post-new.php6.03 ▲0.1489.84 ▼16.32
Media Library /wp-admin/upload.php3.35 ▲0.1236.40 ▲0.16
Google Analytics /wp-admin/options-general.php?page=ga-germanized3.5239.02

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Analytics Germanized for Google Analytics (GDPR / DSGVO)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲22813.80 ▼0.4911.34 ▲9.5947.87 ▲4.22
Dashboard /wp-admin2,214 ▲265.89 ▲1.00108.05 ▼11.2839.32 ▼5.99
Posts /wp-admin/edit.php2,103 ▲142.03 ▼0.0040.71 ▲5.2734.68 ▼0.49
Add New Post /wp-admin/post-new.php1,547 ▲3318.74 ▲1.15599.91 ▼39.7153.19 ▼0.56
Media Library /wp-admin/upload.php1,402 ▲114.24 ▼0.0795.54 ▲1.5040.49 ▼1.48
Google Analytics /wp-admin/options-general.php?page=ga-germanized3,03316.44487.59113.36

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 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/ga-germanized/inc/tpl/about-us.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ga-germanized/inc/tpl/options_page.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

ga-germanized/ga-germanized.php 92% from 13 tests

"Analytics Germanized for Google Analytics (GDPR / DSGVO)" version 1.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,224 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP9426611,770
CSS232430
Sass1920424
PO File1125171377
JavaScript4586164
YAML14047
XML10011
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity18.14
▷ Minimum class complexity2.00
▷ Maximum class complexity41.00
Average method complexity4.64
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods3090.91%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/bajorat-media.png8.51KB3.68KB▼ 56.78%
assets/img/erecht24-siegel-agenturpartner.png19.88KB8.40KB▼ 57.77%
assets/img/google-analytics-germanized.png50.81KB17.79KB▼ 64.98%