78% woo-payjoe-beleg-schnittstelle

Code Review | PayJoe Belegschnittstelle für WooCommerce

WordPress plugin PayJoe Belegschnittstelle für WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: woo-payjoe-beleg-...
  • Plugin version: 1.10.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 24, 2017
  • Latest release: Jan 4, 2023
  • Number of updates: 48
  • Update frequency: every 40.8 days
  • Top authors: payjoe (60.42%)weslink (41.67%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,827 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼12.53ms] Passed 4 tests

A check of server-side resources used by PayJoe Belegschnittstelle für WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4443.37 ▲4.68
Dashboard /wp-admin3.57 ▲0.2338.24 ▼25.26
Posts /wp-admin/edit.php3.70 ▲0.3440.85 ▼5.07
Add New Post /wp-admin/post-new.php5.82 ▼0.0773.25 ▼21.16
Media Library /wp-admin/upload.php3.58 ▲0.3534.64 ▲1.37

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
recovery_mode_email_last_sent
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for PayJoe Belegschnittstelle für WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,580 ▼1,16612.62 ▼1.936.25 ▲4.5849.61 ▲10.41
Dashboard /wp-admin865 ▼1,3261.38 ▼3.4814.85 ▼88.2021.79 ▼27.17
Posts /wp-admin/edit.php876 ▼1,2131.14 ▼0.878.48 ▼28.2722.35 ▼12.43
Add New Post /wp-admin/post-new.php599 ▼9151.73 ▼15.8418.79 ▼653.226.64 ▼45.09
Media Library /wp-admin/upload.php761 ▼6271.73 ▼2.4220.85 ▼84.0119.42 ▼25.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • recovery_mode_email_last_sent

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)
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/woo-payjoe-beleg-schnittstelle/public/partials/weslink-payjoe-opbeleg-public-display.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woo-payjoe-beleg-schnittstelle/admin/class-weslink-payjoe-opbeleg-admin.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woo-payjoe-beleg-schnittstelle/admin/class-weslink-payjoe-opbeleg-orders.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

woo-payjoe-beleg-schnittstelle/weslink-payjoe-opbeleg.php 92% from 13 tests

The main PHP script in "PayJoe Belegschnittstelle für WooCommerce" version 1.10.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-payjoe-beleg-schnittstelle.php" instead of "weslink-payjoe-opbeleg.php")

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
Good job! No executable or dangerous file extensions detected2,192 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP184809702,051
PO File16183131
JavaScript24546
CSS2184

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity20.27
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods82
▷ Static methods56.10%
▷ Public methods6073.17%
▷ Protected methods00.00%
▷ Private methods2226.83%
Functions15
▷ Named functions1280.00%
▷ Anonymous functions320.00%
Constants9
▷ Global constants222.22%
▷ Class constants777.78%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot.png122.29KB35.40KB▼ 71.05%
admin/images/logo.png3.84KB1.79KB▼ 53.41%