WC_Gateway_Swedbank_Pay_Checkout D

Total Complexity 202
Dependencies 23
Dependents 0
Total lines 1,859
Lines of code 1,166
Logical lines of code 523
Comment lines 409
Methods 32
Properties 29

Methods 32

Method Rating Maintainability Complexity Lines of code
process_payment()
D
27
27 162
__construct()
C
33 29 80
return_handler()
B
35 17 86
get_consumer_profile()
A
38 14 73
init_form_fields()
A
28
6 182
ajax_check_payment()
A
38 13 73
payment_scripts()
A
38 7 83
thankyou_scripts()
A
45 9 41
get_remote_address()
A
45 7 44
swedbank_card_store()
A
44 7 43
update_address()
A
46 7 35
payment_method_title()
S
53 6 24
override_template()
S
55 5 20
process_refund()
S
56 5 18
thankyou_page()
S
56 5 18
ajax_swedbank_pay_checkout_log_error()
S
55 4 19
process_admin_options()
S
57 4 16
add_payment_method()
S
48 2 34
get_transaction_url()
S
61 3 12
process_recurring_payment()
S
58 2 16
capture_payment()
S
64 3 10
cancel_payment()
S
64 3 10
update_consumer_profile()
S
62 2 11
drop_consumer_profile()
S
63 2 11
payment_fields()
S
68 2 8
update_consumer_address()
S
68 2 7
order_contains_subscription()
S
71 2 6
wcs_is_subscription_product()
S
75 2 4
wcs_is_payment_change()
S
75 2 4
validate_fields()
S
91 1 2
admin_options()
S
78 1 4
get_post_id_by_meta()
S
65 1 10