Code Analysis: Nexi XPay 7.1.1

Function Rating Maintainability Complexity Lines of code
Nexi\CapToStateCode::getStateCode()
D
0
2 4,689
Nexi\WC_3DS20_Data_Provider::calculate_params()
B
34 18 93
Nexi\WC_NPG_3DS20_Data_Provider::calculate_params()
B
35 15 89
Nexi\WC_Gateway_Admin::init_form_fields()
B
25
5 222
Nexi\Iso3166::getAlpha3()
B
21
2 258
Nexi\WC_Gateway_Nexi_Register_Available::evaluate_all()
A
43 15 46
Nexi\WC_Pagodil_Data_Provider::calculate_params()
A
37 13 68
Nexi\WC_Gateway_NPG_Process_Completion::change_order_status_by_operation()
A
43 13 45
Nexi\WC_Admin_Page::details_payment_xpay()
A
38 11 65
Nexi\WC_Gateway_XPay_API::get_payment_form()
A
37 10 71
Nexi\WC_Gateway_XPay_API::get_language_id()
A
47 12 39
Nexi\WC_Gateway_NPG_API::exec_rest_curl()
A
38 10 68
Nexi\WC_Gateway_XPay_Cards_Build::process_payment()
A
39 10 60
Nexi\WC_Gateway_NPG_API::get_one_click_params()
A
48 11 32
wp_nexi_polling_executor()
A
44 10 44
Nexi\WC_Gateway_XPay_Process_Completion::s2s()
A
41 9 58
Nexi\WC_Gateway_Nexi_Register_Available::evaluate_one_apm_xpay()
A
50 11 25
Nexi\WC_Gateway_NPG_API::get_recurring_params()
A
46 10 38
Nexi\WC_Gateway_XPay_Cards_Build::payment_fields()
A
41 8 66
Nexi\WC_Gateway_XPay_Process_Completion::redirect()
A
44 9 44
Nexi\WC_Gateway_NPG_Process_Completion::redirect()
A
45 9 41
Nexi\WC_Save_Order_Meta::saveSuccessNpg()
A
47 9 37
Nexi\WC_Gateway_NPG_API::get_account_operation_id()
A
55 10 18
Nexi\WC_Gateway_NPG_API::new_payment_link()
A
41 7 53
Nexi\WC_Gateway_XPay_API::get_profile_info()
A
43 7 48
Nexi\WC_Pagodil_Widget::getArrayOfInstallmentValues()
A
50 8 28
Nexi\WC_Pagodil_Configuration::getSettingsForm()
A
34 2 117
Nexi\WC_Save_Order_Meta::saveSuccessXPay()
A
51 8 25
Nexi\WC_Gateway_NPG_API::recurring_payment()
A
45 7 39
Nexi\WC_Admin_Page::add_meta_box_details_payment_nexixpay()
A
52 8 21
Nexi\WC_Gateway_NPG_API::get_customer_one_click_contracts()
A
53 8 20
Nexi\WC_Pagodil_Data_Provider::getShipIndicator()
A
56 8 17
Nexi\WC_Gateway_Admin::update_profile_info()
A
49 7 31
Nexi\WC_Admin_Page::details_payment_npg()
S
50 7 26
Nexi\WC_Pagodil_Configuration::getCheckoutFields()
S
53 7 23
Nexi\WC_Pagodil_Widget::getPagodilLanguage()
S
56 7 20
Nexi\WC_Gateway_NPG_Process_Completion::save_card_token()
S
54 7 19
Nexi\WC_Gateway_XPay_Cards_Build::__construct()
S
48 6 31
Nexi\WC_Gateway_XPay_Cards::__construct()
S
48 6 30
Nexi\WC_3DS20_Data_Provider::get3ds20FirstUsagedestinationAddress()
S
42 4 58
Nexi\WC_NPG_3DS20_Data_Provider::get3ds20FirstUsagedestinationAddress()
S
42 4 58
Nexi\WC_Pagodil_Configuration::getOptionsConfigCategoriesTree()
S
52 6 24
Nexi\WC_NPG_3DS20_Data_Provider::get3ds20AccountDateIndicator()
S
55 6 20
Nexi\WC_3DS20_Data_Provider::get3ds20AccountDateIndicator()
S
55 6 20
Nexi\WC_Gateway_NPG_API::get_order_status()
S
54 6 19
Nexi\WC_3DS20_Data_Provider::getParamsFromWC()
S
47 5 34
Nexi\WC_Gateway_XPay_API::pagaNonce()
S
43 4 47
Nexi\WC_Gateway_Admin::set_nexi_default_gateway()
S
60 6 14
Nexi\WC_Gateway_NPG_Process_Completion::s2s()
S
50 5 28
Nexi\WC_Pagodil_Widget::checkCategories()
S
59 6 13
Nexi\WC_NPG_Token::is_token_set()
S
60 6 12
Nexi\WC_Pagodil_Widget::woocommerce_review_order_before_payment()
S
59 6 12
Nexi\WC_Gateway_NPG_Cards::process_payment()
S
52 5 24
Nexi\WC_Gateway_XPay_API::exec_curl_post_json()
S
52 5 24
Nexi\WC_Gateway_XPay_Generic_Method::__construct()
S
53 5 24
Nexi\WC_Gateway_NPG_Cards::__construct()
S
51 5 23
Nexi\WC_Gateway_NPG_API::get_profile_info()
S
53 5 22
Nexi\WC_Pagodil_Widget::woocommerce_before_add_to_cart_button()
S
53 5 21
Nexi\WC_Gateway_XPay_API::account()
S
46 4 36
Nexi\WC_Gateway_NPG_API::get_order_info()
S
54 5 19
Nexi\WC_Gateway_NPG_Cards::payment_fields()
S
55 5 19
Nexi\WC_Gateway_NPG_API::enable_apms()
S
56 5 17
Nexi\WC_Gateway_XPay_API::recurring_payment()
S
43 3 47
Nexi\WC_Build_Token::is_token_set()
S
62 6 10
Nexi\WC_Pagodil_Widget::woocommerce_after_shop_loop_item_title()
S
57 5 15
Nexi\WC_Gateway_XPay_API::order_detail()
S
49 4 29
Nexi\WC_Gateway_XPay_API::pagaNonceCreazioneContratto()
S
44 3 43
Nexi\WC_Gateway_XPay_Generic_Method::payment_fields()
S
60 5 12
Nexi\WC_Gateway_NPG_API::refund()
S
51 4 25
Nexi\WC_Gateway_NPG_API::account()
S
51 4 25
Nexi\WC_NPG_3DS20_Data_Provider::get3ds20LastUsagedestinationAddress()
S
45 2 50
Nexi\WC_3DS20_Data_Provider::get3ds20LastUsagedestinationAddress()
S
45 2 50
Nexi\WC_Gateway_XPay_Process_Completion::cancel()
S
54 4 19
Nexi\WC_Gateway_XPay_Process_Completion::process_account()
S
55 4 18
Nexi\WC_Gateway_XPay_API::refund()
S
47 3 33
Nexi\WC_Gateway_XPay_Generic_Method::process_refund()
S
57 4 16
Nexi\WC_Admin_Page::migrate_data()
S
58 4 16
Nexi\WC_Pagodil_Widget::isProductInstallable()
S
62 5 10
Nexi\WC_Gateway_NPG_API::get_customer_contracts()
S
58 4 15
Nexi\WC_Pagodil_Widget::woocommerce_proceed_to_checkout()
S
58 4 14
Nexi\WC_Gateway_XPay_Process_Completion::add_message_to_cart()
S
59 4 13
Nexi\WC_Pagodil_Configuration::getChildOptions()
S
60 4 13
Nexi\WC_NPG_Token::get_token_nexi()
S
62 4 12
Nexi\WC_Gateway_NPG_Process_Completion::add_message_to_cart()
S
61 4 11
Nexi\WC_Pagodil_Widget::getPagodilConfig()
S
62 4 11
Nexi\WC_Gateway_NPG_API::get_refund_operation_id()
S
62 4 11
Nexi\WC_Gateway_XPay_Process_Completion::rest_api_init()
S
46 1 52
Nexi\WC_Gateway_NPG_Process_Completion::rest_api_init()
S
46 1 52
Nexi\WC_Gateway_Admin::__construct()
S
54 3 20
get_xpay_post_meta()
S
57 3 16
Nexi\WC_Gateway_NPG_APM::process_payment()
S
57 3 16
Nexi\WC_Gateway_XPay_Generic_Method::exec_payment()
S
56 3 16
Nexi\WC_Pagodil_Widget::isQuoteInstallable()
S
73 4 4
Nexi\WC_Gateway_Admin::generate_label_html()
S
52 2 30
Nexi\WC_Pagodil_Widget::checkNumberOfProducts()
S
65 4 9
Nexi\WC_Gateway_NPG_APM::scheduled_subscription_payment()
S
58 3 14
Nexi\WC_Gateway_NPG_Cards::scheduled_subscription_payment()
S
58 3 14
Nexi\WC_Gateway_XPay_API::__construct()
S
60 3 14
Nexi\WC_Pagodil_Widget::calc_installments()
S
59 3 13
Nexi\WC_Gateway_NPG_Process_Completion::process_account()
S
59 3 13
Nexi\WC_Gateway_XPay_API::get_payment_build_payload()
S
50 2 28
Nexi\WC_Gateway_NPG_API::deactivate_contract()
S
59 3 13
Nexi\WC_Gateway_XPay_APM::payment_fields()
S
59 3 13
Nexi\WC_Gateway_NPG_Cards::process_refund()
S
62 3 11
Nexi\WC_Gateway_NPG_APM::process_refund()
S
62 3 11
Nexi\WC_Pagodil_Widget::getEnabledCategories()
S
64 3 11
Nexi\WC_Pagodil_Widget::getPagodilSticker()
S
55 2 19
Nexi\WC_Gateway_XPay_Cards_Build::getBuildStyle()
S
50 1 32
Nexi\WC_Build_Token::save_token()
S
57 2 16
Nexi\WC_Gateway_XPay_APM::__construct()
S
56 2 16
Nexi\WC_NPG_Token::save_token()
S
57 2 16
Nexi\WC_NPG_3DS20_Data_Provider::get3ds20CheckName()
S
70 3 6
xpay_plugin_deactivation()
S
66 3 10
Nexi\WC_Build_Token::get_token_nexi()
S
65 3 9
Nexi\WC_Gateway_XPay_API::getUrlXpayBuildJS()
S
70 3 6
Nexi\WC_3DS20_Data_Provider::get3ds20CheckName()
S
70 3 6
nexi_array_key_exists()
S
78 3 3
Nexi\WC_Gateway_NPG_Cards::woocommerce_payment_token_deleted()
S
66 3 8
Nexi\WC_Pagodil_Widget::save_custom_checkout_field()
S
65 3 9
Nexi\WC_Gateway_XPay_API::validate_return_mac()
S
58 2 15
Nexi\WC_Gateway_NPG_API::__construct()
S
61 2 12
Nexi\WC_Gateway_XPay_API::get_cod_trans()
S
62 2 11
Nexi\WC_Gateway_XPay_Cards_Build::get_token_display_name()
S
51 1 26
Nexi\WC_Gateway_XPay_APM::init_form_fields()
S
56 1 20
Nexi\WC_Gateway_NPG_APM::init_form_fields()
S
56 1 20
Nexi\WC_Gateway_Admin::generate_simple_label_html()
S
58 1 18
Nexi\WC_Gateway_XPay_Generic_Method::generate_simple_label_html()
S
58 1 18
Nexi\WC_Admin_Page::migrate_to_v1()
S
56 1 17
Nexi\WC_3DS20_Data_Provider::get3ds20OrderInLastSixMonth()
S
57 1 16
Nexi\WC_NPG_3DS20_Data_Provider::get3ds20OrderInLastSixMonth()
S
57 1 16
Nexi\WC_Admin_Page::get_bcmath_missing_alert()
S
67 2 9
xpay_gw_wp_enqueue_scripts()
S
67 2 7
Nexi\WC_Gateway_Nexi_Register_Available::get_all_nexi_gateways()
S
72 2 6
Nexi\WC_Pagodil_Widget::totalNotBigEnough()
S
71 2 6
Nexi\WC_Gateway_XPay_Generic_Method::process_payment()
S
63 2 10
Nexi\WC_Pagodil_Data_Provider::getCategories()
S
66 2 8
Nexi\WC_Pagodil_Widget::getPagodilMinAmount()
S
70 2 6
Nexi\WC_Gateway_NPG_API::getInstance()
S
71 2 6
Nexi\WC_Pagodil_Widget::getAvailableInstallmentsNumber()
S
67 2 8
Nexi\WC_Gateway_XPay_Generic_Method::init_form_fields()
S
72 2 5
Nexi\WC_Pagodil_Widget::isPagodilEnabled()
S
68 2 7
div_bcdiv()
S
70 2 6
Nexi\WC_Admin_Page::getCurrencyLabel()
S
63 2 10
nexi_array_key_exists_and_in_array()
S
78 2 3
nexi_array_key_exists_and_equals()
S
78 2 3
Nexi\WC_Pagodil_Widget::getPagodilMaxAmount()
S
70 2 6
xpay_plugin_activation()
S
70 2 6
Nexi\WC_Admin_Page::getCurrencySign()
S
63 2 10
wp_nexi_update_npg_payment_methods_executor()
S
69 2 7
nexi_xpay_autoloader()
S
67 2 7
Nexi\WC_Pagodil_Widget::totalTooBig()
S
71 2 6
Nexi\WC_Gateway_XPay_API::getInstance()
S
71 2 6
Nexi\WC_Gateway_NPG_Cards::init_form_fields()
S
60 1 14
Nexi\WC_Gateway_XPay_API::calculate_mac_for_build_oneclick()
S
60 1 13
Nexi\WC_Gateway_XPay_Cards_Build::get_saved_payment_method_option_html()
S
61 1 13
Nexi\WC_Gateway_XPay_API::load_nexi_settings()
S
60 1 12
my_add_nexi_schedules_for_polling()
S
63 1 11
Nexi\WC_Gateway_NPG_Process_Completion::cancel()
S
62 1 11
Nexi\WC_3DS20_Data_Provider::getUserOrders()
S
62 1 11
Nexi\WC_Gateway_NPG_APM::__construct()
S
61 1 11
Nexi\WC_Pagodil_Widget::canSkipCategoriesCheck()
S
79 1 3
Nexi\WC_Pending_Status::wcOrderStatusesFilter()
S
74 1 4
Nexi\WC_Gateway_Admin::getOptionsConfigFontStyle()
S
67 1 9
Nexi\WC_Gateway_NPG_API::exec_post()
S
78 1 3
Nexi\WC_Gateway_NPG_API::generate_npg_order_id()
S
72 1 4
Nexi\WC_Gateway_NPG_Cards::process_admin_save()
S
83 1 3
Nexi\WC_Gateway_XPay_Generic_Method::add_payment_method()
S
91 1 2
Nexi\WC_Pagodil_Widget::getXPaySettings()
S
79 1 3
Nexi\WC_Gateway_XPay_Generic_Method::scheduled_subscription_payment()
S
65 1 8
Nexi\WC_Gateway_XPay_Cards::init_form_fields()
S
82 1 3
Nexi\WC_Pagodil_Widget::isTypeMultipleInstallments()
S
78 1 3
get_nexi_template_path()
S
75 1 4
Nexi\WC_Pagodil_Widget::isTypeSingleInstallment()
S
78 1 3
Nexi\WC_Gateway_NPG_API::exec_get()
S
78 1 3
Nexi\WC_Admin_Page::init()
S
62 1 10
Nexi\WC_Gateway_NPG_API::generate_uuid()
S
72 1 4
Nexi\WC_Gateway_Admin::my_error_notice_xpay()
S
71 1 7
Nexi\WC_Pagodil_Widget::wp_head()
S
74 1 4
Nexi\WC_Gateway_Admin::process_admin_save()
S
79 1 4
Nexi\WC_Gateway_XPay_Cards::wcOrderStatusesFilter()
S
74 1 4
Nexi\WC_Gateway_XPay_Process_Completion::register()
S
79 1 3
Nexi\WC_Gateway_Admin::my_error_notice_npg()
S
71 1 7
Nexi\Log::actionWarning()
S
75 1 4
Nexi\WC_Gateway_XPay_API::is_recurring()
S
78 1 3
Nexi\WC_Pagodil_Widget::register()
S
63 1 10
Nexi\WC_Gateway_XPay_Cards::addNexiPendingPaymentOrderStatus()
S
64 1 10
Nexi\WC_Pagodil_Widget::calcInstallmentsAmount()
S
73 1 4
Nexi\WC_Gateway_Admin::getOptionsConfigFontVariant()
S
68 1 8
Nexi\WC_Pagodil_Configuration::getLogoType()
S
70 1 6
Nexi\WC_Pending_Status::validOrderStatusesForPaymentCompleteFilter()
S
76 1 4
Nexi\Log::getContext()
S
74 1 5
Nexi\WC_Gateway_NPG_API::generate_contract_id()
S
77 1 3
Nexi\WC_Gateway_NPG_Process_Completion::register()
S
79 1 3
Nexi\Log::actionInfo()
S
75 1 4
Nexi\WC_Gateway_Nexi_Register_Available::__construct()
S
82 1 3
xpay_plugin_action_links()
S
69 1 6
Nexi\WC_Gateway_NPG_APM::process_admin_save()
S
83 1 3
Nexi\WC_Gateway_Nexi_Register_Available::register()
S
75 1 4
Nexi\WC_Gateway_XPay_Cards_Build::init_form_fields()
S
82 1 3
Nexi\WC_Gateway_XPay_API::get_build_alias()
S
82 1 3
Nexi\WC_Pagodil_Widget::isTypeRangeInstallment()
S
78 1 3
Nexi\WC_Pagodil_Widget::getCartTotal()
S
78 1 3
Nexi\WC_Gateway_XPay_Cards::validOrderStatusesForPaymentCompleteFilter()
S
76 1 4
Nexi\WC_Pending_Status::addNexiPendingPaymentOrderStatus()
S
64 1 10