83% multibanco-ifthen-software-gateway-for-woocommerce

Code Review | Multibanco, MB WAY, Credit card and Payshop (IfthenPay) for WooCommerce

WordPress plugin Multibanco, MB WAY, Credit card and Payshop (IfthenPay) for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: multibanco-ifthen...
  • Plugin version: 8.8.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 9, 2013
  • Latest release: Nov 15, 2023
  • Number of updates: 366
  • Update frequency: every 9.9 days
  • Top authors: webdados (93.99%)wonderm00n (6.28%)

Code review

54 tests

User reviews

19 reviews

Install metrics

7,000+ active /174,122 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.16ms] Passed 4 tests

A check of server-side resources used by Multibanco, MB WAY, Credit card and Payshop (IfthenPay) for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.15 ▼2.92
Dashboard /wp-admin3.33 ▲0.0243.63 ▼4.44
Posts /wp-admin/edit.php3.38 ▲0.0246.94 ▼4.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.98 ▼1.27
Media Library /wp-admin/upload.php3.25 ▲0.0235.34 ▲5.06

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

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

Browser metrics Passed 4 tests

Multibanco, MB WAY, Credit card and Payshop (IfthenPay) for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7314.22 ▼0.122.20 ▲0.0445.65 ▼1.48
Dashboard /wp-admin2,215 ▲355.66 ▲0.0894.64 ▼0.2841.19 ▲0.49
Posts /wp-admin/edit.php2,124 ▲211.99 ▲0.0141.90 ▲2.6834.22 ▼5.74
Add New Post /wp-admin/post-new.php1,543 ▲1823.14 ▼0.49690.37 ▲45.3953.15 ▲2.64
Media Library /wp-admin/upload.php1,420 ▲204.19 ▼0.03100.59 ▲5.7143.54 ▲1.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/multibanco-ifthen-software-gateway-for-woocommerce/woocommerce-blocks/mbway/MBWayIfthenPay.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/multibanco-ifthen-software-gateway-for-woocommerce/woocommerce-blocks/payshop/PayshopIfthenPay.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_clear_scheduled_hook() in wp-content/plugins/multibanco-ifthen-software-gateway-for-woocommerce/uninstall.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/multibanco-ifthen-software-gateway-for-woocommerce/woocommerce-blocks/multibanco/MultibancoIfthenPay.php:9
    • > PHP Fatal error
      require_once(): Failed opening required '../includes/tcpdf_barcodes_1d.php' (include_path='.:/usr/share/php') in wp-content/plugins/multibanco-ifthen-software-gateway-for-woocommerce/images/barcode.php on line 3
    • > PHP Warning
      require_once(../includes/tcpdf_barcodes_1d.php): failed to open stream: No such file or directory in wp-content/plugins/multibanco-ifthen-software-gateway-for-woocommerce/images/barcode.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/multibanco-ifthen-software-gateway-for-woocommerce/woocommerce-blocks/creditcard/CreditCardIfthenPay.php:9

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 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can take inspiration from this readme.txt

multibanco-ifthen-software-gateway-for-woocommerce/multibanco_ifthen_for_woocommerce.php 77% from 13 tests

"Multibanco, MB WAY, Credit card and Payshop (IfthenPay) for WooCommerce" version 8.8.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 191 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("multibanco-ifthen-software-gateway-for-woocommerce.php" instead of "multibanco_ifthen_for_woocommerce.php")
  • Plugin Name: Please shorten the plugin name (currently 71 characters long instead of max. 70)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected7,197 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP144921,2056,596
JavaScript1047111475
CSS110102
SVG101124

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity110.67
▷ Minimum class complexity7.00
▷ Maximum class complexity381.00
Average method complexity5.61
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes555.56%
Methods215
▷ Static methods52.33%
▷ Public methods21298.60%
▷ Protected methods00.00%
▷ Private methods31.40%
Functions46
▷ Named functions3882.61%
▷ Anonymous functions817.39%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
12 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/premium_plugins/simple-woocommerce-order-approval-logo.png8.17KB7.86KB▼ 3.76%
images/premium_plugins/invoicexpress-woocommerce.png6.66KB6.80KB0.00%
images/premium_plugins/taxonomy-discounts.png10.72KB6.43KB▼ 40.07%
images/premium_plugins/shop-as-client.png6.55KB6.57KB0.00%
images/premium_plugins/postcodes.png4.89KB4.92KB0.00%