Code Analysis: BitPay Checkout for WooCommerce 3.41.2102

Function Rating Maintainability Complexity Lines of code
bitpay_checkout_ipn()
B
33 16 101
woo_custom_redirect_after_purchase()
B
34 16 88
wc_bitpay_checkout_gateway_init()
B
26
6 201
bitpay_checkout_check_token()
A
51 11 26
WC_Gateway_BitPay::init_form_fields()
A
32 1 144
bitpay_checkout_thankyou_page()
A
43 5 65
bitpay_checkout_plugin_setup()
S
50 5 28
bitpay_default_payment_gateway()
S
60 6 12
BPC_Logger()
S
51 5 26
bitpay_checkout_woocommerce_bitpay_failed_requirements()
S
56 5 17
BPC_getBitPayLogo()
S
58 5 15
bitpay_checkout_cart_restore()
S
52 4 22
update_db_1()
S
54 4 22
WC_Gateway_BitPay::email_instructions()
S
70 5 5
bitpay_checkout_insert_order_note()
S
55 3 19
bitpay_checkout_update_order_note()
S
62 4 9
BPC_getProcessingLink()
S
61 3 13
BPC_getBitPayToken()
S
62 3 12
BPC_getBitPayDashboardLink()
S
64 3 11
bitpay_mini_checkout()
S
55 2 25
WC_Gateway_BitPay::__construct()
S
54 2 19
BPC_Configuration::__construct()
S
67 3 8
bitpay_checkout_custom_message()
S
63 3 10
BPC_autoloader()
S
68 3 7
BPC_Token::BPC_checkToken()
S
60 2 13
BPC_getBitPaymentIcon()
S
60 2 13
BPC_getBitPayVersionInfo()
S
61 2 12
BPC_Invoice::BPC_updateBuyersEmail()
S
57 1 17
BPC_Invoice::BPC_updateBuyerCurrency()
S
57 1 17
BPC_Invoice::BPC_createInvoice()
S
57 1 16
bp_redirect_to_checkout()
S
65 2 9
BPC_isValidBitPayToken()
S
64 2 9
woocommerce_clear_cart_url()
S
71 2 6
bitpay_checkout_replace_order_button_html()
S
71 2 7
BPC_Configuration::BPC_checkHash()
S
70 2 6
BPC_Invoice::__construct()
S
81 1 3
BPC_Token::__construct()
S
77 1 4
BPC_Invoice::BPC_getInvoiceURL()
S
76 1 4
BPC_Configuration::BPC_getNetwork()
S
83 1 3
_isCurl()
S
81 1 3
BPC_Buttons::__construct()
S
100 1 2
BPC_Configuration::BPC_getApiPort()
S
82 1 3
bitpay_checkout_get_order_transaction()
S
70 1 6
wc_bitpay_checkout_add_to_gateways()
S
77 1 4
BPC_Configuration::BPC_getInvoiceURL()
S
80 1 3
bitpay_checkout_get_order_id_bitpay_invoice_id()
S
70 1 6
BPC_Configuration::BPC_getApiHostProd()
S
82 1 3
BPC_Invoice::BPC_getInvoiceData()
S
82 1 3
BPC_Invoice::BPC_checkInvoiceStatus()
S
63 1 10
BPC_Configuration::BPC_getApiHostDev()
S
82 1 3
BPC_Configuration::BPC_generateHash()
S
78 1 3
BPC_Configuration::BPC_getAPIToken()
S
83 1 3
BPC_Client::__construct()
S
100 1 2
enable_bitpayquickpay_js()
S
79 1 3
BPC_Item::__construct()
S
71 1 6
BPC_Buttons::BPC_getButtons()
S
64 1 10
bitpay_checkout_delete_order_transaction()
S
72 1 5
WC_Gateway_BitPay::process_payment()
S
67 1 8
BPC_Item::BPC_getItem()
S
70 1 6