83% fr-multi-bank-transfer-payment-gateways-for-woocommerce

Code Review | Fr Multi Bank Transfer Payment Gateways for WooCommerce

WordPress plugin Fr Multi Bank Transfer Payment Gateways for WooCommerce scored 83% from 54 tests.

About plugin

  • Plugin page: fr-multi-bank-tra...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 7, 2017
  • Latest release: Jul 23, 2023
  • Number of updates: 16
  • Update frequency: every 136.1 days
  • Top authors: fahrirusliyadi (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

2,000+ active / 13,297 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.20ms] Passed 4 tests

A check of server-side resources used by Fr Multi Bank Transfer Payment Gateways for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0633.95 ▼7.82
Dashboard /wp-admin3.35 ▲0.0543.39 ▼6.29
Posts /wp-admin/edit.php3.47 ▲0.1147.62 ▲1.45
Add New Post /wp-admin/post-new.php5.93 ▲0.0579.11 ▼14.50
Media Library /wp-admin/upload.php3.28 ▲0.0538.10 ▼0.19

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Fr Multi Bank Transfer Payment Gateways for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.61 ▼1.041.57 ▼0.1736.35 ▼15.08
Dashboard /wp-admin2,206 ▲184.89 ▼0.96112.05 ▲10.9645.41 ▲1.14
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0639.64 ▲4.6733.93 ▼2.49
Add New Post /wp-admin/post-new.php1,513 ▼1517.61 ▼5.72599.03 ▼70.5562.40 ▲11.85
Media Library /wp-admin/upload.php1,391 ▲34.26 ▲0.0894.59 ▼18.9440.82 ▼7.02

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Fr_Multi_Bank_Transfer_Gateways_For_Woocommerce_Bank_Transfer' not found in wp-content/plugins/fr-multi-bank-transfer-payment-gateways-for-woocommerce/includes/gateways/class-fr-multi-bank-transfer-gateways-for-woocommerce-bank-transfer-3.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Fr_Multi_Bank_Transfer_Gateways_For_Woocommerce_Bank_Transfer' not found in wp-content/plugins/fr-multi-bank-transfer-payment-gateways-for-woocommerce/includes/gateways/class-fr-multi-bank-transfer-gateways-for-woocommerce-bank-transfer-10.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Fr_Multi_Bank_Transfer_Gateways_For_Woocommerce_Bank_Transfer' not found in wp-content/plugins/fr-multi-bank-transfer-payment-gateways-for-woocommerce/includes/gateways/class-fr-multi-bank-transfer-gateways-for-woocommerce-bank-transfer-8.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Gateway_BACS' not found in wp-content/plugins/fr-multi-bank-transfer-payment-gateways-for-woocommerce/includes/gateways/class-fr-multi-bank-transfer-gateways-for-woocommerce-bank-transfer.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Fr_Multi_Bank_Transfer_Gateways_For_Woocommerce_Bank_Transfer' not found in wp-content/plugins/fr-multi-bank-transfer-payment-gateways-for-woocommerce/includes/gateways/class-fr-multi-bank-transfer-gateways-for-woocommerce-bank-transfer-2.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Fr_Multi_Bank_Transfer_Gateways_For_Woocommerce_Bank_Transfer' not found in wp-content/plugins/fr-multi-bank-transfer-payment-gateways-for-woocommerce/includes/gateways/class-fr-multi-bank-transfer-gateways-for-woocommerce-bank-transfer-6.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Fr_Multi_Bank_Transfer_Gateways_For_Woocommerce_Bank_Transfer' not found in wp-content/plugins/fr-multi-bank-transfer-payment-gateways-for-woocommerce/includes/gateways/class-fr-multi-bank-transfer-gateways-for-woocommerce-bank-transfer-5.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Fr_Multi_Bank_Transfer_Gateways_For_Woocommerce_Bank_Transfer' not found in wp-content/plugins/fr-multi-bank-transfer-payment-gateways-for-woocommerce/includes/gateways/class-fr-multi-bank-transfer-gateways-for-woocommerce-bank-transfer-1.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Fr_Multi_Bank_Transfer_Gateways_For_Woocommerce_Bank_Transfer' not found in wp-content/plugins/fr-multi-bank-transfer-payment-gateways-for-woocommerce/includes/gateways/class-fr-multi-bank-transfer-gateways-for-woocommerce-bank-transfer-4.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Fr_Multi_Bank_Transfer_Gateways_For_Woocommerce_Bank_Transfer' not found in wp-content/plugins/fr-multi-bank-transfer-payment-gateways-for-woocommerce/includes/gateways/class-fr-multi-bank-transfer-gateways-for-woocommerce-bank-transfer-9.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === fr-multi-bank-transfer-payment-gateways-for-woocommerce === )
Please take inspiration from this readme.txt

fr-multi-bank-transfer-payment-gateways-for-woocommerce/fr-multi-bank-transfer-gateways-for-woocommerce.php 85% from 13 tests

The entry point to "Fr Multi Bank Transfer Payment Gateways for WooCommerce" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fr-multi-bank-transfer-payment-gateways-for-woocommerce.php" instead of "fr-multi-bank-transfer-gateways-for-woocommerce.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected545 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP25133687444
PO File1283483
Markdown18018

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity3.40
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods3193.94%
▷ Protected methods00.00%
▷ Private methods26.06%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected