Code Analysis: Payment gateway via Teya SecurePay for WooCommerce 1.3.24

Function Rating Maintainability Complexity Lines of code
woocommerce_borgun_init()
D
11
2 700
WC_Gateway_Borgun::check_borgun_response()
D
31 31 99
WC_Gateway_Borgun::get_borgun_args()
C
31 23 105
borgun_cancel_order()
A
48 13 31
WC_Gateway_Borgun::process_refund()
A
40 11 58
WC_Gateway_Borgun::checkout_payment_handler()
A
48 12 32
WC_Gateway_Borgun::generate_borgun_form()
S
44 6 44
woocommerce_borgun_textdomain()
S
51 7 25
WC_Gateway_Borgun::init_form_fields()
S
35 1 110
WC_Gateway_Borgun::receipt_page()
S
59 6 13
WC_Gateway_Borgun::get_translated_string()
S
54 5 22
WC_Gateway_Borgun::__construct()
S
46 2 37
WC_Gateway_Borgun::save_order_metas()
S
66 4 8
WC_Gateway_Borgun::cancel_response_process()
S
60 3 14
WC_Gateway_Borgun::is_valid_for_use()
S
57 2 19
WC_Gateway_Borgun::borgun_text_keys_to_translate()
S
68 3 7
WC_Gateway_Borgun::tax_display()
S
74 3 4
WC_Gateway_Borgun::admin_options()
S
64 2 11
WC_Gateway_Borgun::process_payment()
S
63 2 11
WC_Gateway_Borgun::currency_has_decimals()
S
70 2 6
WC_Gateway_Borgun::check_hash()
S
57 1 15
WC_Gateway_Borgun::round()
S
68 2 7
borgun_wc_active()
S
69 2 7
WC_Gateway_Borgun::fee_tax_display()
S
75 2 4
WC_Gateway_Borgun::error_response_process()
S
70 2 7
WC_Gateway_Borgun::check_order_hash()
S
61 1 11
WC_Gateway_Borgun::check_order_refund_hash()
S
62 1 10
add_borgun_gateway()
S
77 1 4