Code Analysis: WooCommerce CardPointe Payment Gateway 3.3.2

Function Rating Maintainability Complexity Lines of code
CardConnectPaymentGateway::process_payment()
D
27
34 132
CardConnectPaymentGatewayAddonsDeprecated::process_subscription()
C
32 22 100
CardConnectPaymentGateway::generate_settings_html()
B
36 19 74
CardConnectPaymentGateway::init_form_fields()
B
24
5 252
CardConnectPaymentGatewayAddons::process_subscription_payment()
B
37 17 67
Pest::checkLastResponseForError()
B
44 17 41
CardConnectPaymentGatewayAddons::generate_cardconnect_request()
B
36 14 82
CardConnectPaymentGateway::bc_validate_checkout_captcha()
A
43 13 43
CardConnectPaymentGatewayAddonsDeprecated::process_subscription_payment()
A
37 11 70
CardConnectPaymentGateway::load_options()
A
46 12 31
CardConnectPaymentGateway::payment_fields()
A
41 9 49
PestJSON::getLastJsonErrorMessage()
A
51 9 29
CardConnectPaymentGateway::__construct()
A
42 7 52
CardConnectPaymentGatewayAddons::process_pre_order_payment()
A
53 9 22
CardConnectPaymentGateway::admin_options()
A
40 4 88
CardConnectPaymentGatewayAddons::handle_cardconnect_response()
A
50 8 27
CardConnectPaymentGatewayAddons::validate_subscription_payment_meta()
A
52 8 22
CardConnectPaymentGatewayAddons::process_pre_order()
A
47 7 35
CardConnectPaymentGateway::get_user_defined_form_fields()
S
53 7 22
CardConnectPaymentGateway_init()
S
49 6 33
CardConnectPaymentGateway::get_cc_client()
S
66 8 7
Pest::prepData()
S
58 7 14
CardConnectRestClient::depositStatus()
S
61 7 11
CardConnectRestClient::send()
S
51 6 26
CardConnectRestClient::settlementStatus()
S
61 7 11
Pest::prepRequest()
S
53 6 21
PestXML::processBody()
S
55 6 19
CardConnectPaymentGatewayAddons::process_payment()
S
63 7 9
CardConnectPaymentGateway::handleVerificationError()
S
50 5 27
CardConnectPaymentGateway::get_custom_fields_mapping_options()
S
55 5 18
Pest::doRequest()
S
58 5 15
PestXML::processError()
S
60 5 14
CardConnectPaymentGateway::getCardConnectCurrencyCode()
S
42 2 59
CardConnectPaymentGateway::verify_customer_data()
S
60 5 13
CardConnectPaymentGatewayAddons::__construct()
S
48 3 39
Pest::setupCookies()
S
57 4 17
CardConnectRestClient::__construct()
S
64 5 9
woocommerce_add_gateway_CardConnectPaymentGateway()
S
60 4 14
CardConnectPaymentGateway::process_refund()
S
50 3 26
CardConnectPaymentGatewayAddons::maybe_render_subscription_payment_method()
S
58 3 15
Pest::__construct()
S
62 4 10
Pest::get()
S
58 3 15
PestJSON::jsonDecode()
S
63 4 10
CardConnectPaymentGatewayAddons::process_pre_order_release_payment()
S
57 3 14
CardConnectPaymentGatewayAddons::process_subscription()
S
60 3 12
CardConnectPaymentGateway::get_card_alias()
S
62 3 11
CardConnectPaymentGatewayAddonsDeprecated::__construct()
S
55 2 21
card_connect_update_message()
S
60 2 16
PestJSON::jsonEncode()
S
64 3 10
CardConnectRestClient::inquireTransaction()
S
68 3 6
CardConnectRestClient::profileGet()
S
68 3 6
CardConnectRestClient::profileDelete()
S
68 3 6
CardConnectPaymentGatewayAddonsDeprecated::maybe_render_subscription_payment_method()
S
73 3 4
CardConnectRestClient::isEmpty()
S
72 3 5
Pest::setupProxy()
S
66 3 8
CardConnectPaymentGatewayAddonsDeprecated::process_payment()
S
68 3 7
Pest::prepHeaders()
S
64 3 10
CardConnectPaymentGatewayAddons::scheduled_subscription_payment()
S
64 3 9
Pest::post()
S
60 2 12
Pest::patch()
S
60 2 12
Pest::put()
S
60 2 12
CardConnectPaymentGateway::handleAuthorizationResponse_Retry()
S
61 2 11
CardConnectPaymentGateway::handleAuthorizationResponse_Declined()
S
61 2 11
CardConnectPaymentGatewayAddons::add_subscription_payment_meta()
S
57 1 18
PestJSON::hasJsonDecodeFailed()
S
71 2 6
CardConnectSavedCards::add_account_to_profile()
S
68 2 7
CardConnectPaymentGatewayAddonsDeprecated::scheduled_subscription_payment()
S
67 2 8
CardConnectPaymentGateway::get_card_name()
S
74 2 4
CardConnectRestClient::inquireMerchant()
S
70 2 5
CardConnectSavedCards::save_user_card()
S
71 2 5
CardConnectPaymentGateway::handleCheckoutFormDataError()
S
65 2 9
CardConnectRestClient::endsWith()
S
77 2 3
CardConnectPaymentGateway::get_saved_card_id()
S
74 2 4
PestJSON::getLastJsonErrorCode()
S
71 2 6
CardConnectPaymentGatewayAddonsDeprecated::remove_renewal_order_meta()
S
71 2 6
CardConnectPaymentGateway::handleNoCardConnectConnection()
S
64 2 10
CardConnectPaymentGateway::handleAuthorizationResponse_NoResponse()
S
63 2 10
CardConnectSavedCards::get_user_cards()
S
73 2 4
CardConnectSavedCards::get_new_acctid()
S
67 2 8
CardConnectPaymentGateway::get_checkout_form_data()
S
58 1 15
CardConnectPaymentGateway::get_expiry()
S
73 2 4
CardConnectPaymentGateway::get_profile_id()
S
75 2 4
CardConnectSavedCards::get_user_profile_id()
S
74 2 4
CardConnectPaymentGateway::get_cvv2()
S
74 2 4
Pest::lastHeader()
S
71 2 6
CardConnectPaymentGateway::get_token()
S
74 2 4
CardConnectPaymentGateway::get_store_new_card()
S
74 2 4
Pest::handle_header()
S
69 2 6
Pest::processError()
S
82 1 3
CardConnectPaymentGatewayAddons::remove_resubscribe_order_meta()
S
82 1 3
CardConnectRestClient::refundTransaction()
S
78 1 3
recaptcha_update_notice()
S
74 1 6
CardConnectPaymentGateway::get_order_total_formatted()
S
70 1 6
CardConnectPaymentGateway::handleAuthorizationResponse_DefaultError()
S
68 1 7
Pest::head()
S
66 1 8
Pest::processBody()
S
82 1 3
CardConnectPaymentGatewayAddonsDeprecated::update_failing_payment_method()
S
78 1 3
cc_recaptcha_dismiss_admin_notice()
S
80 1 3
CardConnectSavedCards::__construct()
S
77 1 4
wc_cc_notice()
S
68 1 8
Pest::_isNumericallyIndexedArray()
S
78 1 3
PestJSON::prepRequest()
S
72 1 5
Pest::lastStatus()
S
80 1 3
cc_add_notice_script()
S
68 1 7
CardConnectSavedCards::set_user_profile_id()
S
79 1 3
CardConnectRestClient::profileCreate()
S
78 1 3
PestJSON::put()
S
78 1 3
PestJSON::post()
S
78 1 3
CardConnectPaymentGatewayAddons::update_failing_payment_method()
S
63 1 10
CardConnectPaymentGateway::register_scripts()
S
71 1 5
CardConnectPaymentGatewayAddons::remove_renewal_order_meta()
S
82 1 3
cc_dismiss_admin_notice()
S
80 1 3
Pest::setupAuth()
S
73 1 4
CardConnectRestClient::authorizeTransaction()
S
78 1 3
PestJSON::processBody()
S
80 1 3
CardConnectRestClient::voidTransaction()
S
78 1 3
CardConnectRestClient::captureTransaction()
S
78 1 3
Pest::delete()
S
65 1 9
cc_recaptcha_add_notice_script()
S
68 1 7
Pest::lastBody()
S
80 1 3