78% woocommerce-germanized

Code Review | Germanized for WooCommerce

WordPress plugin Germanized for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: woocommerce-germa...
  • Plugin version: 3.15.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Oct 31, 2014
  • Latest release: Nov 30, 2023
  • Number of updates: 282
  • Update frequency: every 11.8 days
  • Top authors: vendidero (100%)

Code review

54 tests

User reviews

461 reviews

Install metrics

80,000+ active /3,499,467 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
This plugin's installer ran successfully

Server metrics [RAM: ▲1.31MB] [CPU: ▲6.25ms] Passed 4 tests

Server-side resources used by Germanized for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.77 ▲1.3147.35 ▲9.74
Dashboard /wp-admin4.61 ▲1.3153.92 ▲7.47
Posts /wp-admin/edit.php4.66 ▲1.3056.07 ▲7.01
Add New Post /wp-admin/post-new.php7.19 ▲1.31100.54 ▲0.79
Media Library /wp-admin/upload.php4.53 ▲1.3046.08 ▲12.96

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Germanized for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4514.37 ▼0.351.77 ▲0.2437.49 ▼4.56
Dashboard /wp-admin2,209 ▲325.64 ▲0.0292.19 ▼6.1645.83 ▲4.23
Posts /wp-admin/edit.php2,118 ▲152.09 ▲0.1340.63 ▲0.7734.18 ▼0.69
Add New Post /wp-admin/post-new.php1,543 ▲1723.40 ▲0.48595.64 ▼60.4656.39 ▲5.83
Media Library /wp-admin/upload.php1,420 ▲204.28 ▲0.0797.77 ▼2.2645.32 ▲0.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 7× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woocommerce-germanized/vendor/globalcitizen/php-iban/utils/ootest.php
    • > /wp-content/plugins/woocommerce-germanized/vendor/globalcitizen/php-iban/utils/validate-list.php
    • > /wp-content/plugins/woocommerce-germanized/vendor/globalcitizen/php-iban/utils/obfuscation-test.php
    • > /wp-content/plugins/woocommerce-germanized/vendor/globalcitizen/php-iban/utils/convert-registry.php
    • > /wp-content/plugins/woocommerce-germanized/vendor/globalcitizen/php-iban/utils/test.php
    • > /wp-content/plugins/woocommerce-germanized/vendor/globalcitizen/php-iban/utils/dump.php
    • > /wp-content/plugins/woocommerce-germanized/vendor/globalcitizen/php-iban/utils/other-tests.php
  • 243× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/woocommerce-germanized/vendor/composer/installers/src/Composer/Installers/Plugin.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-germanized/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-germanized/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Vendidero\\Germanized\\Blocks\\BlockTypes\\AbstractInnerBlock' not found in wp-content/plugins/woocommerce-germanized/src/Blocks/BlockTypes/CheckoutPhotovoltaicSystemNotice.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/woocommerce-germanized/vendor/psr/log/Psr/Log/NullLogger.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Vendidero\\Germanized\\Registry\\AbstractDependencyType' not found in wp-content/plugins/woocommerce-germanized/src/Registry/FactoryType.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-germanized/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-germanized/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-germanized/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-germanized/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (18 tag instead of maximum 10)
The official readme.txt might help

woocommerce-germanized/woocommerce-germanized.php Passed 13 tests

The entry point to "Germanized for WooCommerce" version 3.15.3 is a PHP file that has certain tags in its header comment area
104 characters long description:
Germanized for WooCommerce extends WooCommerce to become a legally compliant store in the german market.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected134,662 lines of code in 1,225 files:
LanguageFilesBlank linesComment linesLines of code
PHP93721,91232,87994,914
PO File26,24917,81116,898
JavaScript1831,8548538,381
XSD221394,846
Sass1868144,183
XML71,482193,532
JSON44001,095
HTML2280430
Cucumber3220165
SVG70099
CSS160040
make19426
Bourne Again Shell14825
YAML11025
Bourne Shell1203

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity17.98
▷ Minimum class complexity1.00
▷ Maximum class complexity342.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity72.00
Code structure
Namespaces71
Interfaces26
Traits6
Classes633
▷ Abstract classes274.27%
▷ Concrete classes60695.73%
▷ Final classes193.14%
Methods5,889
▷ Static methods1,10018.68%
▷ Public methods4,87582.78%
▷ Protected methods82313.98%
▷ Private methods1913.24%
Functions731
▷ Named functions57178.11%
▷ Anonymous functions16021.89%
Constants108
▷ Global constants1110.19%
▷ Class constants9789.81%
▷ Public constants97100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 1.82MB with 0.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
packages/woocommerce-germanized-dhl/assets/img/dhl-official.png40.86KB10.43KB▼ 74.47%
assets/images/pro/settings-emails.png100.29KB109.08KB0.00%
packages/woocommerce-germanized-dhl/assets/img/post_office.png4.05KB1.95KB▼ 51.96%
assets/images/pro/settings-invoices.png226.31KB243.93KB0.00%
packages/woocommerce-germanized-dhl/assets/img/parcelshop.png5.41KB2.31KB▼ 57.31%