Code Analysis: BitPay Checkout for WooCommerce 5.5.0

Function Rating Maintainability Complexity Lines of code
BitPayLib\WcGatewayBitpay::init_form_fields()
A
26
1 222
BitPayLib\BitPayInvoiceCreate::execute()
A
39 11 61
BitPayVendor\BitPayLib\BitPayInvoiceCreate::execute()
A
39 11 61
BitPayLib\BitPayIpnProcess::process()
A
47 9 36
BitPayVendor\BitPayLib\BitPayIpnProcess::process()
A
47 9 35
BitPayLib\BitPayLogger::execute()
S
50 7 26
BitPayVendor\BitPayLib\BitPayLogger::execute()
S
50 7 25
BitPayVendor\BitPayLib\BitPayPaymentSettings::check_token()
S
57 7 15
BitPayLib\BitPayPaymentSettings::check_token()
S
57 7 15
BitPayLib\BitPayIpnProcess::execute()
S
51 6 25
BitPayVendor\BitPayLib\BitPayIpnProcess::execute()
S
51 6 25
BitPayLib\BitPayPluginSetup::check_requirements()
S
55 6 17
BitPayVendor\BitPayLib\BitPayPluginSetup::check_requirements()
S
55 6 17
BitPayLib\BitPayIpnProcess::process_completed()
S
49 5 31
BitPayLib\BitPayPluginSetup::validate_wc_payment_gateway()
S
56 6 16
BitPayVendor\BitPayLib\BitPayPluginSetup::validate_wc_payment_gateway()
S
56 6 16
BitPayVendor\BitPayLib\BitPayIpnProcess::process_completed()
S
50 5 28
BitPayLib\BitPayCancelOrder::execute()
S
52 5 24
BitPayVendor\BitPayLib\BitPayCancelOrder::execute()
S
52 5 24
BitPayVendor\BitPayLib\BitPayPages::checkout_thank_you()
S
47 4 38
BitPayLib\BitPayCheckoutTransactions::update_db_1()
S
53 5 22
BitPayVendor\BitPayLib\BitPayPaymentSettings::redirect_after_purchase()
S
57 5 17
BitPayLib\BitPayPaymentSettings::redirect_after_purchase()
S
57 5 17
BitPayVendor\BitPayLib\BitPayCheckoutTransactions::update_db_1()
S
56 5 15
BitPayLib\BitPayPages::checkout_thank_you()
S
50 4 28
BitPayLib\BitPayIpnProcess::process_confirmed()
S
51 4 26
BitPayVendor\BitPayLib\BitPayIpnProcess::process_confirmed()
S
53 4 22
BitPayLib\WcGatewayBitpay::email_instructions()
S
70 5 5
BitPayVendor\BitPayLib\WcGatewayBitpay::email_instructions()
S
70 5 5
BitPayLib\BitPayIpnProcess::validate_order()
S
58 3 15
BitPayVendor\BitPayLib\BitPayIpnProcess::process_abandoned()
S
58 3 15
BitPayVendor\BitPayLib\BitPayIpnProcess::should_process_completed_action()
S
65 4 9
BitPayLib\BitPayIpnProcess::should_process_completed_action()
S
66 4 9
BitPayLib\BitPayIpnProcess::process_abandoned()
S
58 3 15
BitPayLib\WcGatewayBitpay::get_processing_link()
S
59 3 15
BitPayVendor\BitPayLib\WcGatewayBitpay::get_processing_link()
S
59 3 15
BitPayVendor\BitPayLib\BitPayPaymentSettings::bitpay_mini_checkout()
S
54 2 28
BitPayLib\BitPayInvoiceCreate::get_redirect_url()
S
60 3 13
BitPayVendor\BitPayLib\BitPayIpnProcess::validate_order()
S
59 3 13
BitPayLib\BitPayInvoiceCreate::add_buyer_to_invoice()
S
62 3 12
BitPayVendor\BitPayLib\BitPayInvoiceCreate::add_buyer_to_invoice()
S
62 3 12
BitPayVendor\BitPayLib\BitPayInvoiceCreate::get_redirect_url()
S
61 3 12
BitPayVendor\BitPayLib\BitPayPaymentSettings::get_bitpay_token()
S
63 3 11
BitPayLib\BitPayPaymentSettings::bitpay_mini_checkout()
S
54 2 26
BitPayLib\BitPayPaymentSettings::get_bitpay_token()
S
63 3 11
BitPayLib\WcGatewayBitpay::__construct()
S
51 2 25
BitPayLib\BitPayPluginSetup::execute()
S
48 1 37
BitPayVendor\BitPayLib\WcGatewayBitpay::__construct()
S
54 2 19
BitPayVendor\BitPayLib\BitPayIpnProcess::get_bitpay_dashboard_link()
S
63 3 10
BitPayLib\BitPayIpnProcess::get_bitpay_dashboard_link()
S
63 3 10
BitPayLib\BitPayClientFactory::get_environment()
S
64 3 10
BitPayLib\BitPayPluginSetup::validate_woo_commerce()
S
64 3 10
BitPayLib\BitPayIpnProcess::process_processing()
S
58 2 15
BitPayLib\BitPayInvoiceCreate::bitpay_checkout_insert_order_note()
S
62 3 10
BitPayVendor\BitPayLib\BitPayClientFactory::get_environment()
S
63 3 10
BitPayVendor\BitPayLib\BitPayInvoiceCreate::bitpay_checkout_insert_order_note()
S
62 3 10
BitPayVendor\BitPayLib\BitPayPluginSetup::validate_woo_commerce()
S
63 3 10
BitPayLib\BitPayCheckoutTransactions::get_order_id_by_invoice_id()
S
61 2 13
BitPayVendor\BitPayLib\BitPayIpnProcess::process_processing()
S
60 2 12
BitPayLib\BitPayIpnProcess::process_refunded()
S
63 2 11
BitPayLib\BitPayClientFactory::create()
S
62 2 11
BitPayVendor\BitPayLib\WcGatewayBitpay::init_form_fields()
S
49 1 21
BitPayLib\BitPayPluginSetup::register_payment_block()
S
58 1 18
BitPayVendor\BitPayLib\BitPayPluginSetup::execute()
S
55 1 18
BitPayLib\BitPayPaymentSettings::get_checkout_slug()
S
69 2 7
BitPayLib\BitPayIpnProcess::get_gateway_settings()
S
71 2 6
BitPayVendor\BitPayLib\BitPayIpnProcess::clear_cart()
S
70 2 7
BitPayLib\BitPayPluginSetup::__construct()
S
59 1 15
BitPayVendor\BitPayLib\BitPayIpnProcess::process_refunded()
S
66 2 8
BitPayLib\BitPayCart::woocommerce_clear_cart_url()
S
71 2 6
BitPayLib\BitPayIpnProcess::validate_bitpay_status_in_available_statuses()
S
66 2 8
BitPayVendor\BitPayLib\BitPayPaymentSettings::bitpay_checkout_replace_order_button_html()
S
73 2 6
BitPayLib\BitPayIpnProcess::clear_cart()
S
70 2 7
BitPayVendor\BitPayLib\BitPayPaymentSettings::get_custom_redirect_page()
S
69 2 7
BitPayVendor\BitPayLib\BitPayPaymentSettings::get_checkout_slug()
S
69 2 7
BitPayLib\BitPayCart::load_cart()
S
74 2 5
BitPayVendor\BitPayLib\BitPayCart::woocommerce_clear_cart_url()
S
71 2 6
BitPayVendor\BitPayLib\BitPayCart::load_cart()
S
74 2 5
BitPayVendor\BitPayLib\BitPayCheckoutTransactions::get_order_id_by_invoice_id()
S
63 2 10
BitPayLib\BitPayPaymentSettings::bitpay_checkout_replace_order_button_html()
S
73 2 6
BitPayVendor\BitPayLib\BitPayClientFactory::create()
S
65 2 8
BitPayLib\BitPayPaymentSettings::get_custom_redirect_page()
S
69 2 7
BitPayVendor\BitPayLib\BitPayIpnProcess::get_gateway_settings()
S
71 2 6
BitPayVendor\BitPayLib\BitPayIpnProcess::validate_bitpay_status_in_available_statuses()
S
67 2 7
BitPayLib\BitPayCheckoutTransactions::create_table()
S
61 1 14
BitPayLib\Blocks\BitPayPaymentsBlocks::get_payment_method_data()
S
63 1 13
BitPayLib\WcGatewayBitpay::get_bitpay_version_info()
S
62 1 12
BitPayVendor\BitPayLib\BitPayPaymentSettings::should_capture_email()
S
79 1 3
BitPayVendor\BitPayLib\BitPayPluginSetup::process_ipn()
S
81 1 3
BitPayVendor\BitPayLib\BitPayPaymentSettings::get_bitpay_checkout_endpoint()
S
79 1 3
BitPayVendor\BitPayLib\BitPayPaymentSettings::get_bitpay_gateway_settings()
S
80 1 3
BitPayVendor\BitPayLib\BitPayPluginSetup::wc_bitpay_checkout_add_to_gateways()
S
80 1 3
BitPayLib\BitPayPluginSetup::bitpay_checkout_replace_order_button_html()
S
79 1 3
BitPayVendor\BitPayLib\Blocks\BitPayPaymentsBlocks::initialize()
S
72 1 5
BitPayVendor\BitPayLib\Blocks\BitPayPaymentsBlocks::is_active()
S
81 1 3
BitPayVendor\BitPayLib\Blocks\BitPayPaymentsBlocks::get_payment_method_script_handles()
S
66 1 8
BitPayVendor\BitPayLib\Blocks\BitPayPaymentsBlocks::get_payment_method_data()
S
76 1 3
BitPayVendor\BitPayLib\BitPayCancelOrder::__construct()
S
74 1 5
BitPayLib\BitPayInvoiceCreate::clear_invoice_id_cookie()
S
78 1 3
BitPayVendor\BitPayLib\BitPayCancelOrder::clear_cookie_for_invoice_id()
S
78 1 3
BitPayLib\BitPayPluginSetup::bitpay_mini_checkout()
S
82 1 3
BitPayLib\BitPayPluginSetup::setup_plugin()
S
78 1 4
BitPayLib\BitPayPluginSetup::create_bitpay_invoice()
S
82 1 3
BitPayLib\BitPayCancelOrder::__construct()
S
74 1 5
BitPayLib\BitPayPluginSetup::process_ipn()
S
81 1 3
BitPayVendor\BitPayLib\BitPayPluginSetup::cancel_order()
S
81 1 3
BitPayLib\BitPayIpnProcess::process_failed()
S
65 1 9
BitPayLib\BitPayCheckoutTransactions::count_transaction_id()
S
65 1 9
BitPayVendor\BitPayLib\BitPayIpnProcess::has_final_status()
S
78 1 3
BitPayVendor\BitPayLib\BitPayIpnProcess::should_process_refund()
S
75 1 4
BitPayLib\BitPayIpnProcess::get_wc_order_statuses()
S
81 1 3
BitPayVendor\BitPayLib\BitPayClientFactory::__construct()
S
81 1 3
BitPayVendor\BitPayLib\BitPayIpnProcess::get_start_order_note()
S
78 1 3
BitPayVendor\BitPayLib\BitPayInvoiceCreate::add_redirect_url()
S
80 1 3
BitPayVendor\BitPayLib\BitPayPaymentSettings::should_use_modal()
S
75 1 4
BitPayVendor\BitPayLib\BitPayInvoiceCreate::clear_invoice_id_cookie()
S
78 1 3
BitPayVendor\BitPayLib\BitPayPaymentSettings::wc_bitpay_checkout_add_to_gateways()
S
76 1 4
BitPayLib\BitPayPaymentSettings::get_bitpay_environment()
S
80 1 3
BitPayVendor\BitPayLib\BitPayCheckoutTransactions::get_wpdb()
S
78 1 4
BitPayVendor\BitPayLib\BitPayCheckoutTransactions::create_transaction()
S
74 1 4
BitPayVendor\BitPayLib\BitPayIpnProcess::process_declined()
S
69 1 6
BitPayLib\BitPayPluginSetup::cancel_order()
S
81 1 3
BitPayVendor\BitPayLib\BitPayPluginSetup::update_db()
S
82 1 3
BitPayLib\BitPayPluginSetup::bitpay_checkout_thankyou_page()
S
75 1 4
BitPayVendor\BitPayLib\BitPayPluginSetup::setup_plugin()
S
78 1 4
BitPayLib\BitPayPaymentSettings::get_bitpay_gateway_settings()
S
80 1 3
BitPayVendor\BitPayLib\BitPayCheckoutTransactions::count_transaction_id()
S
69 1 6
BitPayLib\BitPayPluginSetup::bitpay_checkout_check_token()
S
82 1 3
BitPayVendor\BitPayLib\BitPayPaymentSettings::get_checkout_message()
S
79 1 3
BitPayVendor\BitPayLib\BitPayPages::__construct()
S
81 1 3
BitPayVendor\BitPayLib\BitPayCheckoutTransactions::create_table()
S
68 1 7
BitPayVendor\BitPayLib\BitPayPluginSetup::register_payment_block()
S
65 1 9
BitPayVendor\BitPayLib\BitPayPaymentSettings::get_payment_logo_url()
S
74 1 4
BitPayLib\BitPayPages::__construct()
S
81 1 3
BitPayLib\BitPayCheckoutTransactions::get_wpdb()
S
78 1 4
BitPayLib\BitPayPaymentSettings::get_bitpay_gateway_setting()
S
79 1 3
BitPayVendor\BitPayLib\BitPayPluginSetup::bitpay_checkout_check_token()
S
82 1 3
BitPayLib\BitPayPaymentSettings::should_capture_email()
S
79 1 3
BitPayLib\BitPayPluginSetup::update_db()
S
82 1 3
BitPayVendor\BitPayLib\BitPayCart::execute()
S
80 1 3
BitPayLib\BitPayPaymentSettings::get_bitpay_checkout_endpoint()
S
79 1 3
BitPayVendor\BitPayLib\BitPayInvoiceCreate::__construct()
S
71 1 6
BitPayLib\BitPayIpnProcess::has_final_status()
S
78 1 3
BitPayVendor\BitPayLib\BitPayIpnProcess::__construct()
S
74 1 5
BitPayLib\BitPayCheckoutTransactions::update_transaction_status()
S
65 1 10
BitPayLib\Blocks\BitPayPaymentsBlocks::initialize()
S
72 1 5
BitPayVendor\BitPayLib\BitPayInvoiceCreate::set_cookie_for_redirects_and_updating_order_status()
S
71 1 5
BitPayLib\WcGatewayBitpay::process_payment()
S
67 1 8
BitPayVendor\BitPayLib\BitPayPluginSetup::bitpay_checkout_thankyou_page()
S
75 1 4
BitPayLib\BitPayInvoiceCreate::add_redirect_url()
S
80 1 3
BitPayLib\BitPayCancelOrder::clear_cookie_for_invoice_id()
S
78 1 3
BitPayLib\BitPayCart::execute()
S
80 1 3
BitPayVendor\BitPayLib\BitPayPluginSetup::bitpay_checkout_replace_order_button_html()
S
79 1 3
BitPayLib\BitPayClientFactory::__construct()
S
81 1 3
BitPayLib\BitPayIpnProcess::process_declined()
S
69 1 6
BitPayVendor\BitPayLib\BitPayCheckoutTransactions::update_transaction_status()
S
77 1 3
BitPayLib\BitPayCheckoutTransactions::create_transaction()
S
66 1 9
BitPayLib\WcGatewayBitpay::get_icon_on_payment_page()
S
75 1 4
BitPayLib\BitPayPluginSetup::bitpay_checkout_custom_message()
S
81 1 3
BitPayLib\Blocks\BitPayPaymentsBlocks::is_active()
S
81 1 3
BitPayVendor\BitPayLib\BitPayPluginSetup::bitpay_mini_checkout()
S
82 1 3
BitPayLib\Blocks\BitPayPaymentsBlocks::get_payment_method_script_handles()
S
66 1 8
BitPayVendor\BitPayLib\BitPayPaymentSettings::get_bitpay_gateway_setting()
S
79 1 3
BitPayLib\BitPayPaymentSettings::get_payment_logo_url()
S
74 1 4
BitPayLib\BitPayPluginSetup::wc_bitpay_checkout_add_to_gateways()
S
80 1 3
BitPayVendor\BitPayLib\BitPayIpnProcess::get_wc_order_statuses()
S
81 1 3
BitPayLib\BitPayIpnProcess::get_start_order_note()
S
75 1 4
BitPayLib\BitPayPaymentSettings::should_use_modal()
S
75 1 4
BitPayVendor\BitPayLib\WcGatewayBitpay::process_payment()
S
71 1 5
BitPayLib\BitPayInvoiceCreate::__construct()
S
71 1 6
BitPayLib\BitPayPaymentSettings::get_close_url()
S
79 1 3
BitPayVendor\BitPayLib\WcGatewayBitpay::get_icon_on_payment_page()
S
75 1 4
BitPayVendor\BitPayLib\BitPayIpnProcess::process_failed()
S
69 1 6
BitPayLib\BitPayPaymentSettings::wc_bitpay_checkout_add_to_gateways()
S
76 1 4
BitPayLib\BitPayIpnProcess::should_process_refund()
S
75 1 4
BitPayLib\BitPayInvoiceCreate::set_cookie_for_redirects_and_updating_order_status()
S
71 1 5
BitPayVendor\BitPayLib\WcGatewayBitpay::get_bitpay_version_info()
S
71 1 5
BitPayVendor\BitPayLib\BitPayPluginSetup::bitpay_checkout_custom_message()
S
81 1 3
BitPayVendor\BitPayLib\BitPayPluginSetup::create_bitpay_invoice()
S
82 1 3
BitPayVendor\BitPayLib\BitPayPaymentSettings::get_bitpay_environment()
S
80 1 3
BitPayLib\BitPayPaymentSettings::get_checkout_message()
S
79 1 3
BitPayVendor\BitPayLib\BitPayPluginSetup::add_error_page()
S
73 1 4
BitPayLib\BitPayPluginSetup::add_error_page()
S
64 1 10
BitPayVendor\BitPayLib\BitPayPluginSetup::__construct()
S
63 1 10
BitPayVendor\BitPayLib\BitPayPaymentSettings::get_close_url()
S
79 1 3
BitPayLib\BitPayIpnProcess::__construct()
S
74 1 5