78% bank-transfer-confirmation-form

Code Review | Bank Transfer Confirmation Form

WordPress plugin Bank Transfer Confirmation Form scored78%from 54 tests.

About plugin

  • Plugin page: bank-transfer-con...
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2015
  • Latest release: Mar 28, 2015
  • Number of updates: 14
  • Update frequency: every 0.6 days
  • Top authors: piya23300 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /4,280 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▲2.39ms] Passed 4 tests

This is a short check of server-side resources used by Bank Transfer Confirmation Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0943.87 ▲0.45
Dashboard /wp-admin3.41 ▲0.1152.71 ▲3.57
Posts /wp-admin/edit.php3.52 ▲0.1749.57 ▲2.20
Add New Post /wp-admin/post-new.php5.99 ▲0.1194.74 ▲5.82
Media Library /wp-admin/upload.php3.33 ▲0.1136.27 ▲3.34

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Bank Transfer Confirmation Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.28 ▼1.001.69 ▼0.1440.85 ▼10.01
Dashboard /wp-admin2,213 ▲214.85 ▼0.22100.75 ▼11.9236.74 ▼4.25
Posts /wp-admin/edit.php2,093 ▲72.05 ▲0.0639.46 ▲2.4335.54 ▲2.09
Add New Post /wp-admin/post-new.php1,517 ▼317.83 ▼4.99751.47 ▲88.9558.77 ▲2.59
Media Library /wp-admin/upload.php1,389 ▲44.25 ▲0.0795.27 ▼8.9843.00 ▼1.76
Bank Transfer /wp-admin/bank-transfer-setting-page.php260.440.1914.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bank-transfer-confirmation-form/confirmation-payment.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'BankTransfer' not found in wp-content/plugins/bank-transfer-confirmation-form/templates/confirm-payment-template.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'InputField' not found in wp-content/plugins/bank-transfer-confirmation-form/models/inputs/form_input_field.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'InputField' not found in wp-content/plugins/bank-transfer-confirmation-form/models/inputs/setting_input_field.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/bank-transfer-setting-page.php
    • > Network (severe)
    wp-admin/bank-transfer-setting-page.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid URI ("-")
The official readme.txt is a good inspiration

bank-transfer-confirmation-form/confirmation-payment.php 92% from 13 tests

The primary PHP file in "Bank Transfer Confirmation Form" version 0.0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("bank-transfer-confirmation-form.php" instead of "confirmation-payment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin541 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP1115698539
Markdown1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.56
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2266.67%
▷ Protected methods13.03%
▷ Private methods1030.30%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin