Code Analysis: Coffee Code - Getnet for WooCommerce 1.2.0

Function Rating Maintainability Complexity Lines of code
WcGetnet\WooCommerce\GateWays\Abstract_Payment::thank_you_page()
A
43 13 43
WcGetnet\Services\WcGetnetPayment::get_checkout_address()
A
48 12 28
WcGetnet\WooCommerce\GateWays\WcGetnet_Billet::process_payment()
A
45 8 41
WcGetnet\WooCommerce\GateWays\WcGetnet_CreditCard::process_payment()
A
41 7 54
WcGetnet\Services\WcGetnetPayment::render_installments_options()
A
47 8 36
WcGetnet\Controllers\Admin\OrderController::update_order_by_webhook()
A
55 9 19
WcGetnet\WooCommerce\GateWays\WcGetnet_Pix::process_payment()
A
46 7 38
WcGetnet\WooCommerce\GateWays\WcGetnet_CreditCard::init_form_fields()
A
35 2 111
WcGetnet\Services\WcGetnetApi::get_webhook_args()
S
51 7 28
WcGetnet\WooCommerce\GateWays\Abstract_Payment::translate_status()
S
55 7 20
WcGetnet\WordPress\AssetsServiceProvider::enqueueFrontendAssets()
S
49 6 33
WcGetnet\Services\WcGetnetApi::is_valid_payment()
S
54 6 21
add_billet_discount()
S
56 6 16
WcGetnet\WooCommerce\GateWays\WcGetnet_Billet::init_form_fields()
S
40 2 75
WcGetnet\WooCommerce\GateWays\WcGetnet_Billet::payment_fields()
S
51 5 28
WcGetnet\WooCommerce\GateWays\Abstract_Payment::get_response_status()
S
60 6 13
gn_get_fields()
S
39 1 80
WcGetnet\WooCommerce\GateWays\Abstract_Payment::update_order_by_status()
S
58 5 15
WcGetnet\WooCommerce\GateWays\Abstract_Payment::admin_options()
S
52 4 27
wc_getnet_should_load_wpemerge()
S
54 4 22
WcGetnet\WooCommerce\GateWays\WcGetnet_CreditCard::getCreditData()
S
54 4 20
WcGetnet\WooCommerce\GateWays\WcGetnet_Pix::payment_fields()
S
56 4 19
WcGetnet\WooCommerce\GateWays\Abstract_Payment::webhook_handle()
S
57 4 17
WcGetnet\WooCommerce\GateWays\WcGetnet_CreditCard::payment_fields()
S
59 4 14
WcGetnet\Services\WcGetnetApi::check_api_credentials()
S
62 4 13
WcGetnet\WooCommerce\GateWays\WcGetnet_Pix::init_form_fields()
S
47 2 43
WcGetnet\Entities\WcGetnet_Settings::payment_statuses_to_notification()
S
63 4 12
WcGetnet\Services\WcGetnetApi::logs_enabled()
S
62 4 11
WcGetnet\Services\WcGetnetApi::send_request_post()
S
55 3 19
WcGetnet\WordPress\AssetsServiceProvider::enqueueAdminAssets()
S
56 3 19
WcGetnet\WooCommerce\GateWays\WcGetnet_CreditCard::__construct()
S
48 2 31
WcGetnet\Services\WcGetnetApi::process_webhook()
S
67 4 7
WcGetnet\WooCommerce\GateWays\WcGetnet_Billet::__construct()
S
49 2 29
WcGetnet\Services\WcGetnetPayment::set_shipping()
S
58 3 14
WcGetnet\Services\WcGetnetApi::get_header()
S
61 3 13
WcGetnet\Services\WcGetnetApi::process_another_types()
S
60 3 13
WcGetnet\WooCommerce\GateWays\WcGetnet_CreditCard::validate_fields()
S
60 3 12
WcGetnet\WooCommerce\GateWays\WcGetnet_Pix::__construct()
S
50 2 27
WcGetnet\Services\WcGetnetPayment::get_auth_token()
S
55 2 19
wc_getnet_declare_loaded_wpemerge()
S
59 2 17
WcGetnet\WordPress\AssetsServiceProvider::loadSvgSprite()
S
59 2 17
plugin_links()
S
52 1 31
add_admin_notices()
S
67 3 8
WcGetnet\Controllers\Admin\OrderController::payment_canceled()
S
62 3 10
WcGetnet\WooCommerce\GateWays\WcGetnet_CreditCard::format_amout()
S
67 3 7
WcGetnet\Controllers\Admin\OrderController::payment_on_hold()
S
62 3 10
WcGetnet\Services\WcGetnetPayment::set_customer()
S
57 2 15
WcGetnet\Controllers\Admin\OrderController::initialize()
S
71 3 6
WcGetnet\Controllers\Admin\OrderController::log()
S
60 2 14
WcGetnet\WooCommerce\GateWays\WcGetnet_Billet::getBilletData()
S
60 2 13
WcGetnet\Services\WcGetnetApi::build_admin_message_api_credentials_if_empty()
S
65 2 11
WcGetnet\Entities\WcGetnet_Checkout::getnet_get_shipping_address()
S
52 1 23
WcGetnet\Entities\WcGetnet_Checkout::getnet_get_billing_address()
S
52 1 23
WcGetnet\Services\WcGetnetApi::get_order_by_billet_id()
S
55 1 21
WcGetnet\WooCommerce\GateWays\WcGetnet_Billet::set_billet_meta()
S
70 2 6
WcGetnet\Services\WcGetnetApi::process_billet_payment_step_2()
S
64 2 9
WcGetnet\WooCommerce\WcGetnetProvider::wcgetnet_gateway_getnet()
S
66 2 9
WcGetnet\Services\WcGetnetPayment::calc_percentage()
S
68 2 7
WcGetnet\Controllers\Admin\OrderController::payment_paid()
S
63 2 10
support_links()
S
70 2 6
WcGetnet\Entities\WcGetnet_Logs::get_pix_order()
S
73 1 4
WcGetnet\WooCommerce\GateWays\WcGetnet_Pix::set_order_id()
S
74 1 5
WcGetnet\Services\WcGetnetApi::check_payment_type()
S
79 1 3
WcGetnet\WooCommerce\GateWays\WcGetnet_CreditCard::getAntifraudData()
S
65 1 8
WcGetnet\Services\WcGetnetApi::getAntifraudCode()
S
75 1 4
WcGetnet\Entities\WcGetnet_Settings::get()
S
78 1 3
WcGetnet\WooCommerce\WcGetnetProvider::bootstrap()
S
79 1 3
WcGetnet\View\ViewServiceProvider::registerComposers()
S
91 1 2
WcGetnet\Entities\WcGetnet_Logs::get_billet_error()
S
73 1 4
WcGetnet\Entities\WcGetnet_Settings::getBilletSettings()
S
80 1 3
WcGetnet\Routing\RouteConditionsServiceProvider::registerRouteCondition()
S
68 1 8
WcGetnet\Entities\WcGetnet_Logs::get_creditcard_error()
S
73 1 4
WcGetnet\Services\WcGetnetAuth::get_seller_id()
S
76 1 4
WcGetnet\Controllers\Admin\ControllerServiceProvider::register()
S
73 1 5
WcGetnet\View\ViewServiceProvider::registerGlobals()
S
91 1 2
WcGetnet\Services\WcGetnetApi::__construct()
S
69 1 6
WcGetnet\Services\WcGetnetApi::get_selected_environment()
S
80 1 3
WcGetnet\WooCommerce\GateWays\WcGetnet_Billet::set_order_id()
S
74 1 5
WcGetnet\Entities\WcGetnet_Logs::get_billet_order()
S
73 1 4
WcGetnet\Routing\RouteConditionsServiceProvider::bootstrap()
S
91 1 2
WcGetnet\Entities\WcGetnet_Logs::get_creditcard_order()
S
73 1 4
WcGetnet\WooCommerce\GateWays\WcGetnet_Billet::validate_fields()
S
82 1 3
admin_notices_message()
S
77 1 3
WcGetnet\WordPress\AssetsServiceProvider::register()
S
91 1 2
WcGetnet\WooCommerce\GateWays\WcGetnet_CreditCard::set_order_id()
S
74 1 5
WcGetnet\WooCommerce\WcGetnetProvider::register()
S
91 1 2
WcGetnet\WordPress\AssetsServiceProvider::bootstrap()
S
72 1 5
add_settings_tab()
S
76 1 4
WcGetnet\WooCommerce\GateWays\WcGetnet_Pix::validate_fields()
S
82 1 3
update_settings()
S
82 1 3
WcGetnet\Entities\WcGetnet_Settings::getPixSettings()
S
80 1 3
getClientIpAddress()
S
78 1 3
WcGetnet\Controllers\Admin\ControllerServiceProvider::bootstrap()
S
91 1 2
wc_getnet_get_loaded_wpemerge()
S
80 1 3
WcGetnet\Services\WcGetnetPayment::str_to_float()
S
78 1 3
add_extra_notices()
S
71 1 7
WcGetnet\View\ViewServiceProvider::register()
S
91 1 2
add_woocommerce_notices()
S
71 1 7
WcGetnet\Entities\WcGetnet_Settings::post()
S
78 1 3
WcGetnet\Services\WcGetnetApi::get_environment_url()
S
75 1 4
WcGetnet\Entities\WcGetnet_Settings::getCreditCardSettings()
S
80 1 3
WcGetnet\WooCommerce\GateWays\Abstract_Payment::is_sandbox()
S
82 1 3
WcGetnet\View\ViewServiceProvider::bootstrap()
S
78 1 4
WcGetnet\Controllers\Admin\OrderController::is_webhook()
S
77 1 4
WcGetnet\WooCommerce\GateWays\WcGetnet_CreditCard::is_min_value_from_installments()
S
79 1 3
WcGetnet\WooCommerce\GateWays\Abstract_Payment::init_actions()
S
70 1 5
WcGetnet\Services\WcGetnetAuth::create_auth_base_64()
S
74 1 4
WcGetnet\Controllers\Admin\OrderController::__construct()
S
76 1 4
WcGetnet\Services\WcGetnetPayment::float_to_str()
S
78 1 3
tab_content()
S
71 1 7
WcGetnet\Entities\WcGetnet_Logs::get_pix_error()
S
73 1 4
WcGetnet\Entities\WcGetnet_Settings::getDigits()
S
78 1 3
WcGetnet\Entities\WcGetnet_Logs::webhook_log()
S
73 1 4
WcGetnet\Entities\WcGetnet_Logs::token_generate_error()
S
73 1 4
WcGetnet\Routing\RouteConditionsServiceProvider::register()
S
91 1 2