68% gartentechnik-com

Code Review | Gartentechnik.com

WordPress plugin Gartentechnik.com scored68%from 54 tests.

About plugin

  • Plugin page: gartentechnik-com
  • Plugin version: 2.4.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-6.2
  • WordPress version: 6.3.1
  • First release: Feb 5, 2018
  • Latest release: Oct 12, 2023
  • Number of updates: 170
  • Update frequency: every 12.2 days
  • Top authors: gartentechnik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,140 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼1.61MB] [CPU: ▼48.71ms] Passed 4 tests

A check of server-side resources used by Gartentechnik.com
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.38 ▼1.089.82 ▼33.98
Dashboard /wp-admin2.40 ▼0.9112.07 ▼40.10
Posts /wp-admin/edit.php2.40 ▼0.9612.69 ▼39.61
Add New Post /wp-admin/post-new.php2.40 ▼3.4911.30 ▼81.15
Media Library /wp-admin/upload.php2.40 ▼0.8413.88 ▼20.23
API-Key /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key2.4011.50

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 15 new options
New WordPress options
widget_gartentechnik-com-kontaktformular
widget_gartentechnik-com-lieferanten
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
widget_gartentechnik-com-angesagte-kategorien
widget_gartentechnik-com-servicegebiet
widget_gartentechnik-com-oeffnungszeiten
widget_gartentechnik-com-newsletter-abonnieren
...

Browser metrics Passed 4 tests

An overview of browser requirements for Gartentechnik.com
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,014 ▲22814.40 ▼0.2813.27 ▲11.1742.27 ▼2.56
Dashboard /wp-admin2,242 ▲655.00 ▼0.6488.32 ▼16.5439.76 ▼2.06
Posts /wp-admin/edit.php2,152 ▲522.43 ▲0.4141.76 ▲3.5136.49 ▲3.64
Add New Post /wp-admin/post-new.php1,566 ▲4021.71 ▲4.06666.10 ▼12.9638.21 ▼19.22
Media Library /wp-admin/upload.php1,461 ▲584.58 ▲0.3390.47 ▼14.3944.51 ▼2.44
API-Key /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key9942.6041.3431.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/gartentechnik-com/plugin.php+112
    Undefined index: HTTPS
  • This plugin did not uninstall successfully, leaving 15 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_gartentechnik-com-oeffnungszeiten
    • widget_gartentechnik-com-angebote
    • widget_gartentechnik-com-angesagte-kategorien
    • widget_recent-comments
    • widget_gartentechnik-com-produkt
    • can_compress_scripts
    • widget_gartentechnik-com-newsletter-abonnieren
    • theysaidso_admin_options
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key
    • > Notice in wp-content/plugins/gartentechnik-com/plugin.php+92
    Undefined index: HTTP_REFERER
    • > GET request to /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key
    • > Notice in wp-content/plugins/gartentechnik-com/plugin.php+112
    Undefined index: HTTPS
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key
    • > Notice in wp-content/plugins/gartentechnik-com/classes/EinstellungsRegister.php+17
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key
    • > Notice in wp-content/plugins/gartentechnik-com/classes/MotoristPlugin.php+280
    Undefined index: HTTP_X_FORWARDED_FOR
    • > GET request to /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key
    • > Notice in wp-content/plugins/gartentechnik-com/classes/MotoristPlugin.php+280
    Undefined index: HTTP_X_REAL_IP
    • > GET request to /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key
    • > Notice in wp-content/plugins/gartentechnik-com/classes/MotoristPlugin.php+280
    Undefined index: X_REAL_IP
    • > GET request to /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key
    • > Notice in wp-content/plugins/gartentechnik-com/classes/MotoristPlugin.php+280
    Undefined index: HTTP_CLIENT_IP
    • > GET request to /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key
    • > Notice in wp-content/plugins/gartentechnik-com/classes/MotoristPlugin.php+280
    Undefined index: HTTP_X_FORWARDED
    • > GET request to /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key
    • > Notice in wp-content/plugins/gartentechnik-com/classes/MotoristPlugin.php+280
    Undefined index: HTTP_FORWARDED_FOR
    • > GET request to /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key
    • > Notice in wp-content/plugins/gartentechnik-com/classes/MotoristPlugin.php+280
    Undefined index: HTTP_FORWARDED
    • > GET request to /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key
    • > Notice in wp-content/plugins/gartentechnik-com/classes/MotoristPlugin.php+280
    Undefined index: HTTP_CF_CONNECTING_IP
    • > GET request to /wp-admin/admin.php?page=gartentechnik_com-admin-wp-api-key
    • > Notice in wp-content/plugins/gartentechnik-com/classes/MotoristPlugin.php+428
    Undefined index: x-response-detail

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gartentechnik-com/_gt4.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: sales, sell, e-commerce, ecommerce, store

gartentechnik-com/plugin.php 85% from 13 tests

The entry point to "Gartentechnik.com" version 2.4.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gartentechnik-com.php" instead of "plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 180 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
Everything looks great! No dangerous files found in this plugin3,849 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP363742123,667
HTML23091
XSLT10077
PO File10014
JavaScript2020

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity19.59
▷ Minimum class complexity1.00
▷ Maximum class complexity123.00
Average method complexity3.01
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods156
▷ Static methods3119.87%
▷ Public methods11171.15%
▷ Protected methods2616.67%
▷ Private methods1912.18%
Functions70
▷ Named functions811.43%
▷ Anonymous functions6288.57%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin