WC_Gateway_Dibs_MasterPass_New D

Total Complexity 175
Dependencies 3
Dependents 1
Total lines 1,503
Lines of code 935
Logical lines of code 472
Comment lines 340
Methods 37
Properties 0

Methods 37

Method Rating Maintainability Complexity Lines of code
__construct()
B
39 23 52
masterpass_validate()
B
34 14 92
override_checkout_fields()
B
44 16 47
process_payment()
A
35 10 91
process_refund()
A
42 10 47
init_form_fields()
A
30 1 172
get_shipping_name()
S
54 7 19
mpinit()
S
42 4 55
get_available_shipping_countries()
S
55 6 21
get_available_cards()
S
55 6 20
mpauthorize()
S
44 4 46
single_masterpass_button_mpinit()
S
55 5 19
cart_masterpass_button_mpinit()
S
55 5 19
process_cart_contents()
S
50 4 29
filter_gateways()
S
61 5 12
maybe_change_default_checkout_billing_country()
S
62 5 11
admin_options()
S
54 4 23
flatten_array()
S
56 4 19
get_order_button_text()
S
60 4 15
maybe_change_default_checkout_billing_postcode()
S
65 4 9
payment_fields()
S
62 3 12
get_item_reference()
S
64 3 11
get_item_name()
S
62 3 11
get_item_tax_rate()
S
65 3 8
check_customer_login_form_visibility()
S
71 3 5
check_payment_method_visibility()
S
72 3 5
can_refund_order()
S
80 2 3
get_image_src()
S
66 2 9
get_read_more_text()
S
63 2 10
get_read_more_url()
S
63 2 10
is_available()
S
70 2 7
get_item_quantity()
S
80 1 3
get_item_price()
S
68 1 6
get_item_tax_amount()
S
71 1 5
clear_mp_sessions()
S
74 1 5
receipt_page()
S
78 1 3
get_icon()
S
75 1 4