78% woo-payrexx-gateway

Code Review | WooCommerce Payrexx Payment Gateway

WordPress plugin WooCommerce Payrexx Payment Gateway scored78%from 54 tests.

About plugin

  • Plugin page: woo-payrexx-gateway
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 29, 2017
  • Latest release: Nov 15, 2023
  • Number of updates: 196
  • Update frequency: every 11.9 days
  • Top authors: payrexx (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /56,774 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.69ms] Passed 4 tests

Server-side resources used by WooCommerce Payrexx Payment Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.71 ▼3.64
Dashboard /wp-admin3.34 ▲0.0351.56 ▲5.14
Posts /wp-admin/edit.php3.39 ▲0.0343.66 ▼0.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.58 ▼8.07
Media Library /wp-admin/upload.php3.26 ▲0.0333.62 ▲1.76

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Payrexx Payment Gateway
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.54 ▲0.222.00 ▲0.2347.09 ▲3.60
Dashboard /wp-admin2,198 ▲215.62 ▲0.00122.06 ▲26.0952.37 ▲9.24
Posts /wp-admin/edit.php2,097 ▼31.94 ▼0.0337.02 ▲3.0032.40 ▼5.18
Add New Post /wp-admin/post-new.php1,526 ▼023.60 ▲0.44685.55 ▲77.9657.30 ▼2.80
Media Library /wp-admin/upload.php1,394 ▼64.23 ▼0.0199.49 ▼5.8044.05 ▼3.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 36× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/woo-payrexx-gateway/vendor/payrexx/payrexx/examples/PaymentMethodGetOne.php
    • > /wp-content/plugins/woo-payrexx-gateway/vendor/payrexx/payrexx/examples/TransactionCapture.php
    • > /wp-content/plugins/woo-payrexx-gateway/vendor/payrexx/payrexx/examples/InvoiceDelete.php
    • > /wp-content/plugins/woo-payrexx-gateway/vendor/payrexx/payrexx/examples/PayoutGetAll.php
    • > /wp-content/plugins/woo-payrexx-gateway/vendor/payrexx/payrexx/examples/TransactionReceipt.php
    • > /wp-content/plugins/woo-payrexx-gateway/vendor/payrexx/payrexx/examples/GatewayCreate.php
    • > /wp-content/plugins/woo-payrexx-gateway/vendor/payrexx/payrexx/examples/TransactionRefund.php
    • > /wp-content/plugins/woo-payrexx-gateway/vendor/payrexx/payrexx/examples/DesignGetOne.php
    • > /wp-content/plugins/woo-payrexx-gateway/vendor/payrexx/payrexx/examples/DesignCreate.php
    • > /wp-content/plugins/woo-payrexx-gateway/vendor/payrexx/payrexx/examples/TransactionGetAll.php
  • 52× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payrexx_Gateway_SubscriptionBase' not found in wp-content/plugins/woo-payrexx-gateway/src/Model/PaymentMethod/PostFinanceEFinance.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payrexx_Gateway_SubscriptionBase' not found in wp-content/plugins/woo-payrexx-gateway/src/Model/PaymentMethod/Visa.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payrexx_Gateway_Base' not found in wp-content/plugins/woo-payrexx-gateway/src/Model/PaymentMethod/Abstract/SubscriptionBase.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woo-payrexx-gateway/includes/settings/payrexx_settings.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payrexx_Gateway_Base' not found in wp-content/plugins/woo-payrexx-gateway/src/Model/PaymentMethod/Centi.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payrexx_Gateway_SubscriptionBase' not found in wp-content/plugins/woo-payrexx-gateway/src/Model/PaymentMethod/Payrexx.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Payrexx\\Models\\Base' not found in wp-content/plugins/woo-payrexx-gateway/vendor/payrexx/payrexx/lib/Payrexx/Models/Request/Subscription.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payrexx_Gateway_SubscriptionBase' not found in wp-content/plugins/woo-payrexx-gateway/src/Model/PaymentMethod/Mastercard.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Payrexx\\Models\\Base' not found in wp-content/plugins/woo-payrexx-gateway/vendor/payrexx/payrexx/lib/Payrexx/Models/Request/PaymentMethod.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Payrexx\\Models\\Base' not found in wp-content/plugins/woo-payrexx-gateway/vendor/payrexx/payrexx/lib/Payrexx/Models/Request/Design.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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: Please delete some tags, you are using 25 tag instead of maximum 10
Please take inspiration from this readme.txt

woo-payrexx-gateway/woo-payrexx-gateway.php Passed 13 tests

This is the main PHP file of "WooCommerce Payrexx Payment Gateway" version 3.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
65 characters long description:
Accept many different payment methods on your store using Payrexx

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin26,452 lines of code in 279 files:
LanguageFilesBlank linesComment linesLines of code
SVG159118321,080
PHP1121,2503,0244,960
PO File28496240
JSON30093
Markdown120059
YAML14011
CSS1109

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.90
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity1.49
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces11
Interfaces0
Traits0
Classes67
▷ Abstract classes45.97%
▷ Concrete classes6394.03%
▷ Final classes00.00%
Methods528
▷ Static methods326.06%
▷ Public methods51397.16%
▷ Protected methods81.52%
▷ Private methods71.33%
Functions41
▷ Named functions12.44%
▷ Anonymous functions4097.56%
Constants46
▷ Global constants817.39%
▷ Class constants3882.61%
▷ Public constants38100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
vendor/payrexx/payrexx/examples/payrexx-logo.png10.26KB6.03KB▼ 41.25%