Code Analysis: Zarinpal Gateway 5.0.16

Function Rating Maintainability Complexity Lines of code
Load_ZarinPal_Gateway()
D
8
4 884
WC_ZPal::add_zarinpal_fee_to_cart()
D
28
45 110
WC_ZPal::checkout_create_order_fee()
C
35 26 74
zpal_display_transaction_info()
C
27
20 146
WC_ZPal::blocks_add_fee()
C
36 24 73
zpal_manual_verify_transaction()
C
36 24 66
WC_ZPal::Send_to_ZarinPal_Gateway()
B
32 17 102
zarinpal_ajax_get_fee()
B
39 18 59
WC_ZPal::Return_from_ZarinPal_Gateway()
B
39 17 59
zarinpal_update_payment_method()
A
48 9 32
gregorian_to_jalali()
A
49 9 27
zarinpal_plugin_updated()
A
57 9 15
WC_ZPal::auto_detect_fee_payer()
A
51 8 25
WC_ZPal::adjust_decimals_for_zarinpal_fee()
S
61 9 10
WC_ZPal::process_refund()
S
49 7 29
WC_ZPal::init_form_fields()
S
36 1 103
WC_ZPal::__construct()
S
40 4 56
ZarinPal::recursive_array_filter()
S
59 6 15
ZarinpalHelperClass::recursive_array_filter()
S
59 6 15
add_IR_currency_symbol()
S
59 5 17
ZarinpalHelperClass::getTransactions()
S
46 2 58
ZarinPal::getTransactions()
S
46 2 58
ZarinpalHelperClass::verifyPayment()
S
58 4 14
ZarinPal::verifyPayment()
S
58 4 14
WC_ZPal::remove_zarinpal_fees()
S
60 4 13
ZarinPal::refundPayment()
S
49 2 38
ZarinpalHelperClass::refundPayment()
S
49 2 38
ZarinPal::sendGraphQLRequest()
S
53 3 23
ZarinpalHelperClass::sendGraphQLRequest()
S
53 3 23
ZarinPal::requestPayment()
S
55 3 19
ZarinpalHelperClass::requestPayment()
S
55 3 19
WC_ZPal::email_instructions()
S
67 4 8
WC_ZPal::save_fee_to_order()
S
72 4 5
WC_ZPal::update_checkout_fees()
S
65 4 9
ZarinpalHelperClass::calculateFee()
S
58 3 14
zpal_manual_verify_button()
S
54 2 28
ZarinpalHelperClass::inquiryPayment()
S
59 3 13
ZarinpalHelperClass::__construct()
S
60 3 13
ZarinPal::reversePayment()
S
59 3 13
ZarinPal::inquiryPayment()
S
59 3 13
ZarinPal::__construct()
S
60 3 13
ZarinpalHelperClass::reversePayment()
S
59 3 13
ZarinpalHelperClass::unverifiedTransactions()
S
60 3 12
ZarinPal::unverifiedTransactions()
S
60 3 12
ZarinPal::sendRequest()
S
55 2 19
ZarinpalHelperClass::sendRequest()
S
55 2 19
WC_ZPal::admin_notice_missing_accesstoken()
S
72 3 5
WC_ZPal::enqueue_zarinpal_scripts()
S
73 3 5
WC_ZPal::blocks_order_processed()
S
72 3 5
WC_ZPal::blocks_payment_method_changed()
S
71 3 6
WC_ZPal::add_fee_notice()
S
65 3 8
WC_ZPal::admin_notice_missing_merchantcode()
S
65 3 8
WC_ZPal::add_sandbox_notice_to_admin_bar()
S
62 2 12
WC_ZPal::get_transaction_url()
S
62 2 12
format_jalali_date()
S
61 2 11
WC_ZPal::generate_trust_logo_html()
S
58 1 18
WC_Zarinpal_Gateway_Blocks_Support::get_payment_method_script_handles()
S
60 1 16
WC_Zarinpal_Gateway_Blocks_Support::get_payment_method_script_handles()
S
60 1 16
WC_Zarinpal_Gateway_Blocks_Support::is_active()
S
77 2 3
WC_ZPal::thankyou_page()
S
74 2 5
WC_ZPal::register_store_api_data()
S
63 2 10
WC_ZPal::tokenization_script()
S
71 2 6
WC_ZPal::payment_fields()
S
72 2 6
WC_ZPal::sanitize_access_token()
S
70 2 6
WC_Zarinpal_Gateway_Blocks_Support::is_active()
S
77 2 3
WC_ZPal::store_api_schema_callback()
S
61 1 14
Woocommerce_Add_ZarinPal_Gateway()
S
77 1 4
WC_Zarinpal_Gateway_Blocks_Support::initialize()
S
71 1 5
WC_ZPal::admin_options()
S
68 1 7
WC_ZPal::add_cart_css()
S
83 1 3
WC_Zarinpal_Gateway_Blocks_Support::get_payment_method_data()
S
65 1 9
WC_ZPal::get_icon()
S
74 1 4
render_row()
S
71 1 6
WC_ZPal::process_payment()
S
68 1 7
zarinpal_gateway_block_support()
S
67 1 9
WC_Zarinpal_Gateway_Blocks_Support::initialize()
S
71 1 5
WC_ZPal::store_api_data_callback()
S
72 1 6
load_zarinpal_textdomain()
S
78 1 3
WC_Zarinpal_Gateway_Blocks_Support::get_payment_method_data()
S
69 1 7
add_IR_currency()
S
67 1 7
ZarinPal::getRedirectUrl()
S
80 1 3
ZarinpalHelperClass::getRedirectUrl()
S
80 1 3
WC_ZPal::save_payment_method_checkbox()
S
67 1 9