83% bankpay-open-banking-sepa-payments-for-woocommerce

Code Review | BANKpay+ SEPA Open Banking Payment Gateway + Apple Pay™ | Google Pay™ for WooCommerce

WordPress plugin BANKpay+ SEPA Open Banking Payment Gateway + Apple Pay™ | Google Pay™ for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: bankpay-open-bank...
  • Plugin version: 1.1.24
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2
  • WordPress version: 6.3.1
  • First release: Jun 7, 2022
  • Latest release: May 24, 2023
  • Number of updates: 62
  • Update frequency: every 5.7 days
  • Top authors: bankpay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /988 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
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.09ms] Passed 4 tests

Server-side resources used by BANKpay+ SEPA Open Banking Payment Gateway + Apple Pay™ | Google Pay™ for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1648.06 ▲1.03
Dashboard /wp-admin3.46 ▲0.1654.68 ▲0.19
Posts /wp-admin/edit.php3.58 ▲0.2251.64 ▼2.34
Add New Post /wp-admin/post-new.php6.05 ▲0.1698.53 ▼16.60
Media Library /wp-admin/upload.php3.39 ▲0.1638.13 ▼1.62

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

BANKpay+ SEPA Open Banking Payment Gateway + Apple Pay™ | Google Pay™ for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.011.69 ▼0.2144.54 ▲1.06
Dashboard /wp-admin2,195 ▲185.58 ▼0.1297.02 ▲10.5441.66 ▲1.66
Posts /wp-admin/edit.php2,100 ▼72.03 ▼0.0135.99 ▼7.4832.83 ▼6.53
Add New Post /wp-admin/post-new.php1,535 ▼218.43 ▼0.15611.08 ▼14.0970.40 ▲3.38
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0398.79 ▼17.6843.10 ▼3.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% 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)
Even though everything seems fine, this is not 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 fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > OPPWA Plugin
      ./config.app.php is required for non-sandbox mode.
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bankpay-open-banking-sepa-payments-for-woocommerce/plugin/oppwa/plugin.php:1291
    • > OPPWA Plugin
      ./config.app.php is required for non-sandbox mode.
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/bankpay-open-banking-sepa-payments-for-woocommerce/plugin/oppwa/callback.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/bankpay-open-banking-sepa-payments-for-woocommerce/callback.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can look at the official readme.txt

bankpay-open-banking-sepa-payments-for-woocommerce/class.bankpay.php 85% from 13 tests

The entry point to "BANKpay+ SEPA Open Banking Payment Gateway + Apple Pay™ | Google Pay™ for WooCommerce" version 1.1.24 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 82 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("bankpay-open-banking-sepa-payments-for-woocommerce.php" instead of "class.bankpay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,382 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP127641,0863,175
JavaScript2216142
CSS110038
Markdown212027

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity34.86
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods84
▷ Static methods00.00%
▷ Public methods4755.95%
▷ Protected methods3541.67%
▷ Private methods22.38%
Functions38
▷ Named functions1847.37%
▷ Anonymous functions2052.63%
Constants26
▷ Global constants00.00%
▷ Class constants26100.00%
▷ Public constants26100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin