77% wpshopgermany-it-recht-kanzlei

Code Review | wpShopGermany IT-RECHT KANZLEI

WordPress plugin wpShopGermany IT-RECHT KANZLEI scored77%from 54 tests.

About plugin

  • Plugin page: wpshopgermany-it-...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 26, 2015
  • Latest release: May 12, 2023
  • Number of updates: 36
  • Update frequency: every 82.5 days
  • Top authors: maennchen1.de (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /7,757 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by wpShopGermany IT-RECHT KANZLEI
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1441.82 ▲3.28
Dashboard /wp-admin3.42 ▲0.1250.48 ▲1.83
Posts /wp-admin/edit.php3.54 ▲0.1849.08 ▲6.00
Add New Post /wp-admin/post-new.php6.01 ▲0.1287.16 ▲0.08
Media Library /wp-admin/upload.php3.35 ▲0.1236.08 ▲1.82
IT-Recht Kanzlei München /wp-admin/options-general.php?page=wpshopgermany-itrecht-Admin3.3738.32

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
wpsgitrecht_apiToken
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for wpShopGermany IT-RECHT KANZLEI
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.59 ▼0.791.78 ▼0.1742.99 ▼1.28
Dashboard /wp-admin2,210 ▲225.88 ▼0.15100.48 ▼19.0342.46 ▼0.32
Posts /wp-admin/edit.php2,093 ▲72.06 ▲0.0633.88 ▼2.2933.19 ▼0.35
Add New Post /wp-admin/post-new.php1,536 ▲1223.33 ▲0.10629.48 ▼1.6558.71 ▼7.48
Media Library /wp-admin/upload.php1,395 ▲74.20 ▲0.02104.91 ▲6.6642.75 ▼3.05
IT-Recht Kanzlei München /wp-admin/options-general.php?page=wpshopgermany-itrecht-Admin1,1092.0223.2634.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • wpsgitrecht_apiToken
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wpshopgermany-it-recht-kanzlei/classes/wpsg_itrecht.class.php:336

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=wpshopgermany-itrecht-Admin
    • > Network (severe)
    wp-content/plugins/wpshopgermany-itrecht/views/gfx/arrow_refresh_small.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (OHNE wpShopGermany: Nach erfolgreicher Installation erscheint unter dem Punkt: „Einstellungen“ der Menüpunkt IT-Recht Kanzlei diese Einstellungsmaske.), #2 (MIT wpShopGermany: Nach erfolgreicher Installation gelangt man über wpShopGermany > Konfiguration > Module > zum Modul „Rechtstexte“. Dieses Modul zeigt nach der Aktivierung eine Liste der Anbieter an. Wählt man nun den Anbieter IT-Recht München aus, bekommt man diese Einstellungsmaske.), #3 (Login ins Mandantenportal der IT-Recht Kanzlei), #4 (Auswahl wpShop Germany für Datenübertragung), #5 (Ansicht verfügbare Formate, vollständig konfiguriert und Übertragung via Schnittstelle), #6 (Eingabe API-Token und Shop-URL allgemein), #7 (allgemeine Statusmeldung nach der Übertragung vor Starten der Automatik), #8 (Statusanzeige nach dem Starten der Aktualisierungsautomatik)
You can look at the official readme.txt

wpshopgermany-it-recht-kanzlei/wpshopgermany-itrecht.php 85% from 13 tests

The primary PHP file in "wpShopGermany IT-RECHT KANZLEI" version 1.8 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpshopgermany-it-recht-kanzlei.php" instead of "wpshopgermany-itrecht.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin714 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP542081692
PO File151822

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity110.00
▷ Minimum class complexity110.00
▷ Maximum class complexity110.00
Average method complexity5.04
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2592.59%
▷ Protected methods00.00%
▷ Private methods27.41%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
views/gfx/arrow_refresh_small.png0.49KB0.49KB▼ 1.78%