Code Analysis: Paykit payment gateway 1.0.0

Function Rating Maintainability Complexity Lines of code
paykit_handle_webhook_http()
A
44 13 46
Paykit_Base_WC_Payment_Gateway::process_refund()
A
42 11 53
paykit_handle_webhook()
A
43 11 51
paykit_display_currency_conversion_input()
A
38 8 88
Paykit_Base_WC_Payment_Gateway::process_payment()
A
42 10 51
paykit_handle_webhook_https()
A
50 9 29
paykit_update_refund()
S
52 7 23
paykit_update_currency_conversion_input_value()
S
55 7 19
Paykit_PGW_Client::payment_page_checkout()
S
54 7 19
Paykit_Checkout_Page_Service::get_current_cart_currency_note_html()
S
49 6 30
paykit_https_webhook_request_schema()
S
39 1 103
paykit_filter_woocommerce_available_payment_gateways()
S
56 6 17
Paykit_PGW_Client::prepare_request_args()
S
60 5 13
paykit_get_current_currency_conversion_rate()
S
61 5 12
paykit_get_amount_in_vnd()
S
61 5 11
Paykit_Base_WC_Payment_Gateway::generate_image_html()
S
44 1 63
paykit_convert_iso8601_str_to_datetime()
S
60 4 14
Paykit_PGW_Client::post_http()
S
60 4 12
Paykit_Base_WC_Blocks_Support::get_payment_method_script_handles()
S
55 3 20
paykit_update_order_needed()
S
68 4 6
paykit_get_settings()
S
46 1 45
Paykit_Base_WC_Payment_Gateway::get_display_language()
S
63 3 11
paykit_woocommerce_checkout_after_terms_and_conditions()
S
58 2 22
Paykit_Payment::from_json()
S
58 2 16
Paykit_Bank_Transfer_WC_Payment_Gateway::init_form_fields()
S
51 1 30
Paykit_Refund_Response::from_json()
S
65 3 9
Paykit_Retrieve_Refund_Response::from_json()
S
65 3 9
Paykit_Domestic_Card_WC_Payment_Gateway::init_form_fields()
S
51 1 30
Paykit_International_Card_WC_Payment_Gateway::init_form_fields()
S
51 1 30
paykit_load_paykit_textdomain()
S
66 3 7
paykit_create_refund()
S
59 2 14
paykit_init()
S
62 2 12
Paykit_Refund::from_json()
S
61 2 12
Paykit_Bank_Transfer_WC_Payment_Gateway::__construct()
S
60 2 12
paykit_http_webhook_request_schema()
S
58 1 19
Paykit_International_Card_WC_Payment_Gateway::get_icon()
S
73 2 4
paykit_is_order_paid_via_paykit_pgw()
S
71 2 5
Paykit_Https_Webhook_Request::from_json()
S
68 2 7
Paykit_Bank_Transfer_WC_Payment_Gateway::get_icon()
S
73 2 4
Paykit_Domestic_Card_WC_Payment_Gateway::get_icon()
S
73 2 4
Paykit_Retrieve_Payment_Response::from_json()
S
63 2 10
Paykit_Payment::__construct()
S
59 1 14
Paykit_PGW_Client::refund()
S
62 1 11
Paykit_PGW_Client::retrieve_payment()
S
69 1 6
Paykit_International_Card_WC_Payment_Gateway::setup_properties()
S
65 1 8
Paykit_Setting_Key_Enum::values()
S
68 1 9
Paykit_International_Card_WC_Payment_Gateway::__construct()
S
63 1 10
paykit_add_domestic_card_to_wc()
S
77 1 4
paykit_add_bank_transfer_to_wc()
S
77 1 4
Paykit_Http_Webhook_Request::from_json()
S
68 1 7
Paykit_Payment_Page_Checkout_Response::from_json()
S
66 1 9
Paykit_Base_WC_Payment_Gateway::__construct()
S
80 1 3
Paykit_Http_Webhook_Request::__construct()
S
74 1 5
Paykit_Base_WC_Blocks_Support::is_active()
S
81 1 3
Paykit_Retrieve_Payment_Response::__construct()
S
72 1 5
Paykit_Base_WC_Blocks_Support::get_payment_method_data()
S
64 1 10
Paykit_Bank_Transfer_WC_Payment_Gateway::setup_properties()
S
65 1 8
Paykit_Base_WC_Blocks_Support::__construct()
S
72 1 5
paykit_filter_woocommerce_settings_tabs_array()
S
75 1 4
paykit_add_international_card_to_wc()
S
77 1 4
paykit_save_settings()
S
82 1 3
Paykit_PGW_Client::__construct()
S
70 1 6
Paykit_Base_WC_Blocks_Support::initialize()
S
100 1 0
Paykit_Response::__construct()
S
74 1 5
Paykit_PGW_Client::retrieve_refund()
S
65 1 9
Paykit_International_Card_WC_Blocks_Support::initialize()
S
75 1 4
Paykit_Domestic_Card_WC_Payment_Gateway::setup_properties()
S
65 1 8
paykit_display_settings()
S
82 1 3
Paykit_Refund::__construct()
S
64 1 10
Paykit_Domestic_Card_WC_Blocks_Support::initialize()
S
75 1 4
Paykit_Refund_Response::__construct()
S
72 1 5
Paykit_Retrieve_Refund_Response::__construct()
S
72 1 5
Paykit_Response::from_json()
S
69 1 7
Paykit_Language_Enum::values()
S
72 1 6
Paykit_Https_Webhook_Request::__construct()
S
74 1 5
Paykit_Bank_Transfer_WC_Blocks_Support::initialize()
S
75 1 4
Paykit_Payment_Method_Enum::values()
S
71 1 7
Paykit_Payment_Page_Checkout_Response::__construct()
S
72 1 5
Paykit_Domestic_Card_WC_Payment_Gateway::__construct()
S
63 1 10