Code Analysis: Payment Gateway for Cielo API on WooCommerce 1.10.0

Function Rating Maintainability Complexity Lines of code
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::process_payment()
D
21
33 224
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::process_payment()
D
23
32 176
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::payment_fields()
B
27
4 270
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::get_card_provider()
A
42 14 55
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::get_card_provider()
A
42 14 55
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::payment_fields()
A
34 7 136
LknWCCieloPayment::check_environment()
A
47 12 35
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::process_refund()
A
49 10 26
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::init_form_fields()
A
33 2 137
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::payment_gateway_scripts()
A
47 8 31
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::generate_debit_auth_token()
A
45 7 41
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::process_refund()
S
50 7 26
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::validate_exp_date()
S
52 7 25
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::payment_gateway_scripts()
S
52 7 22
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::validate_fields()
S
53 7 21
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::validate_fields()
S
53 7 21
LknWCCieloPayment::setup_constants()
S
57 7 20
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::init_form_fields()
S
37 2 92
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::validate_exp_date()
S
53 6 23
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::validate_card_number()
S
57 6 16
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::validate_card_number()
S
57 6 16
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::validate_cvv()
S
57 6 16
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::__construct()
S
48 4 30
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::validate_cvv()
S
61 4 12
Lkn\WCCieloPaymentGateway\Includes\LknWcCieloCreditBlocks::get_payment_method_data()
S
50 3 27
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::__construct()
S
51 3 26
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloEndpoint::orderCapture()
S
52 3 23
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::validate_card_holder_name()
S
64 4 9
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::validate_card_holder_name()
S
64 4 9
Lkn\WCCieloPaymentGateway\Includes\LknWcCieloDebitBlocks::get_payment_method_data()
S
49 2 30
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::lknGetCartTotal()
S
59 3 14
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::lknGetCartTotal()
S
59 3 14
Lkn\WCCieloPaymentGateway\Includes\LknWcCieloCreditBlocks::get_payment_method_script_handles()
S
57 2 19
Lkn\WCCieloPaymentGateway\Includes\LknWcCieloDebitBlocks::get_payment_method_script_handles()
S
57 2 19
LknWCCieloPayment::email_order_meta_fields()
S
63 3 10
LknWCCieloPayment::order_details_after_order_table()
S
68 3 6
LknWCCieloPayment::wcEditorBlocksAddPaymentMethod()
S
69 2 7
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::add_notice_once()
S
73 2 5
LknWCCieloPayment::wcEditorBlocksActive()
S
66 2 9
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::add_notice_once()
S
73 2 5
LknWCCieloPayment::__lkn_wc_gateway_cielo_dependency_notice()
S
61 1 13
LknWCCieloPayment::init()
S
59 1 12
LknWCCieloPayment::__lkn_wc_gateway_cielo_inactive_notice()
S
63 1 11
LknWCCieloPayment::add_gateway()
S
73 1 5
LknWCCieloPayment::lkn_wc_cielo_plugin_row_meta_pro()
S
64 1 10
Lkn\WCCieloPaymentGateway\Includes\LknWcCieloDebitBlocks::is_active()
S
81 1 3
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::admin_load_script()
S
77 1 3
LknWCCieloPayment::plugin_abspath()
S
79 1 3
Lkn\WCCieloPaymentGateway\Includes\LknWcCieloCreditBlocks::is_active()
S
81 1 3
LknWCCieloPayment::includes()
S
77 1 4
LknWCCieloPayment::lkn_wc_gateway_cielo_load_textdomain()
S
77 1 3
LknWCCieloPayment::plugin_url()
S
78 1 3
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloEndpoint::registerOrderCaptureEndPoint()
S
68 1 7
LknWCCieloPayment::lkn_wc_cielo_plugin_row_meta()
S
66 1 8
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit::admin_load_script()
S
77 1 3
Lkn\WCCieloPaymentGateway\Includes\LknWcCieloCreditBlocks::initialize()
S
75 1 4
Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloCredit::process_subscription_payment()
S
79 1 3
Lkn\WCCieloPaymentGateway\Includes\LknWcCieloDebitBlocks::initialize()
S
75 1 4