WC_ZPal D

Total Complexity 214
Dependencies 5
Dependents 0
Total lines 956
Lines of code 838
Logical lines of code 472
Comment lines 3
Methods 35
Properties 9

Methods 35

Method Rating Maintainability Complexity Lines of code
add_zarinpal_fee_to_cart()
D
28
45 110
checkout_create_order_fee()
C
35 26 74
blocks_add_fee()
C
36 24 73
Send_to_ZarinPal_Gateway()
B
32 17 102
Return_from_ZarinPal_Gateway()
B
39 17 59
auto_detect_fee_payer()
A
51 8 25
adjust_decimals_for_zarinpal_fee()
S
61 9 10
process_refund()
S
49 7 29
init_form_fields()
S
36 1 103
__construct()
S
40 4 56
remove_zarinpal_fees()
S
60 4 13
email_instructions()
S
67 4 8
save_fee_to_order()
S
72 4 5
update_checkout_fees()
S
65 4 9
admin_notice_missing_merchantcode()
S
65 3 8
admin_notice_missing_accesstoken()
S
72 3 5
blocks_order_processed()
S
72 3 5
blocks_payment_method_changed()
S
71 3 6
add_fee_notice()
S
65 3 8
enqueue_zarinpal_scripts()
S
73 3 5
get_transaction_url()
S
62 2 12
add_sandbox_notice_to_admin_bar()
S
62 2 12
generate_trust_logo_html()
S
58 1 18
payment_fields()
S
72 2 6
tokenization_script()
S
71 2 6
thankyou_page()
S
74 2 5
sanitize_access_token()
S
70 2 6
register_store_api_data()
S
63 2 10
store_api_schema_callback()
S
61 1 14
admin_options()
S
68 1 7
get_icon()
S
74 1 4
process_payment()
S
68 1 7
save_payment_method_checkbox()
S
67 1 9
store_api_data_callback()
S
72 1 6
add_cart_css()
S
83 1 3