WC_Gateway_Paypal D

Total Complexity 144
Dependencies 14
Dependents 16
Total lines 965
Lines of code 524
Logical lines of code 342
Comment lines 305
Methods 33
Properties 11

Methods 33

Method Rating Maintainability Complexity Lines of code
get_icon_image()
B
40 21 63
update_addresses_in_order()
A
41 10 53
__construct()
A
40 8 59
capture_payment()
A
46 9 36
enqueue_scripts()
S
48 7 30
should_use_orders_v2()
S
52 7 27
can_refund_order()
S
64 8 9
process_refund()
S
52 6 22
maybe_remove_fields()
S
61 6 13
process_payment()
S
54 5 20
maybe_onboard_with_transact()
S
57 5 18
process_admin_options()
S
61 4 13
log()
S
61 4 12
should_load()
S
62 4 11
init_api()
S
66 4 7
admin_scripts()
S
62 4 10
get_icon()
S
59 3 13
get_icon_url()
S
57 3 12
order_received_text()
S
70 3 6
hide_action_buttons()
S
69 3 6
admin_options()
S
63 2 13
get_instance()
S
71 2 6
get_transaction_url()
S
68 2 8
add_paypal_sdk_attributes()
S
65 2 9
has_paypal_orders()
S
64 2 10
get_jetpack_connection_manager()
S
71 2 6
set_transact_onboarding_complete()
S
69 2 7
set_instance()
S
80 1 3
needs_setup()
S
80 1 3
is_valid_for_use()
S
61 1 10
init_form_fields()
S
79 1 3
render_buttons_container()
S
82 1 3
is_transact_onboarding_complete()
S
82 1 3