Code Analysis: BitPay Checkout for WooCommerce 5.0.0

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