Code Analysis: Payment gateway via Teya SecurePay for WooCommerce 1.3.20

Function Rating Maintainability Complexity Lines of code
woocommerce_borgun_init()
D
13
2 588
WC_Gateway_Borgun::check_borgun_response()
C
33 28 90
WC_Gateway_Borgun::get_borgun_args()
B
33 19 90
borgun_cancel_order()
A
48 13 31
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 103
WC_Gateway_Borgun::receipt_page()
S
59 6 13
WC_Gateway_Borgun::get_translated_string()
S
54 5 22
WC_Gateway_Borgun::__construct()
S
48 2 32
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::fee_tax_display()
S
75 2 4
WC_Gateway_Borgun::check_hash()
S
57 1 15
borgun_wc_active()
S
69 2 7
WC_Gateway_Borgun::currency_has_decimals()
S
70 2 6
WC_Gateway_Borgun::round()
S
68 2 7
WC_Gateway_Borgun::error_response_process()
S
70 2 7
WC_Gateway_Borgun::check_order_hash()
S
61 1 11
add_borgun_gateway()
S
77 1 4