83% advance-bank-payment-transfer-gateway

Code Review | Advance Bank Payment Transfer Gateway

WordPress plugin Advance Bank Payment Transfer Gateway scored83%from 54 tests.

About plugin

  • Plugin page: advance-bank-paym...
  • Plugin version: 6.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 19, 2020
  • Latest release: Oct 6, 2023
  • Number of updates: 28
  • Update frequency: every 43.5 days
  • Top authors: developerramesh (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

900+ active /5,282 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.79ms] Passed 4 tests

An overview of server-side resources used by Advance Bank Payment Transfer Gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.42 ▼1.75
Dashboard /wp-admin3.31 ▲0.0057.07 ▲4.47
Posts /wp-admin/edit.php3.36 ▲0.0044.30 ▼1.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.23 ▼20.52
Media Library /wp-admin/upload.php3.23 ▲0.0041.27 ▲5.01

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advance Bank Payment Transfer Gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.39 ▲0.212.09 ▲0.1143.49 ▲3.75
Dashboard /wp-admin2,195 ▲185.50 ▼0.1784.54 ▼5.7440.48 ▼1.60
Posts /wp-admin/edit.php2,097 ▼02.01 ▲0.0337.30 ▲1.2034.91 ▼0.62
Add New Post /wp-admin/post-new.php1,528 ▲223.01 ▲0.03672.37 ▼6.4552.51 ▼8.29
Media Library /wp-admin/upload.php1,400 ▼04.39 ▲0.25103.36 ▼2.3245.16 ▼2.89

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advance-bank-payment-transfer-gateway/includes/hooks.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/advance-bank-payment-transfer-gateway/classes/wc_gateway_advance_bank_transfer.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 88% 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
These attributes need to be fixed: The official readme.txt might help

advance-bank-payment-transfer-gateway/wc-advanced-bank-transfer.php 92% from 13 tests

The main PHP file in "Advance Bank Payment Transfer Gateway" ver. 6.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advance-bank-payment-transfer-gateway.php" instead of "wc-advanced-bank-transfer.php")

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
Success! There were no dangerous files found in this plugin460 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG images were found in this plugin