Code Analysis: MONEI Payments for WooCommerce 6.3.0

Function Rating Maintainability Complexity Lines of code
Monei\Gateways\Abstracts\WCMoneiPaymentGatewayHosted::process_payment()
C
31 28 105
Monei\Gateways\Abstracts\WCMoneiPaymentGatewayComponent::create_payload()
C
34 29 77
Monei\Gateways\PaymentMethods\WCGatewayMoneiCC::__construct()
C
37 24 63
Monei\Gateways\PaymentMethods\WCGatewayMoneiPaypal::__construct()
A
45 15 34
WC_Monei_Redirect_Hooks::save_payment_token()
A
41 13 53
Monei\Gateways\PaymentMethods\WCGatewayMoneiBizum::__construct()
A
45 12 35
Monei\Gateways\PaymentMethods\WCGatewayMoneiMBWay::__construct()
A
45 12 34
Monei\Gateways\Abstracts\WCMoneiPaymentGatewayComponent::process_payment()
A
40 10 60
Monei\Gateways\PaymentMethods\WCGatewayMoneiMultibanco::__construct()
A
45 11 34
Monei\Gateways\PaymentMethods\WCGatewayMoneiCofidis::__construct()
A
43 10 45
WC_Monei_IPN::handle_valid_ipn()
A
41 9 58
Monei\Gateways\Blocks\MoneiCCBlocksSupport::get_payment_method_data()
A
44 8 43
monei_get_option_key_from_order()
A
54 9 23
Monei\Gateways\PaymentMethods\WCGatewayMoneiCC::payment_fields()
A
51 8 30
WC_Monei_Addons_Redirect_Hooks::subscriptions_save_sequence_id_on_payment_method_change()
A
49 8 28
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::scheduled_subscription_payment()
A
44 7 43
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::admin_options()
A
53 8 25
Monei\Gateways\PaymentMethods\WCGatewayMoneiCC::monei_scripts()
A
47 7 37
Monei\Services\ApiKeyService::copyKeysToCentralSettings()
S
50 7 28
WC_Monei_Addons_Redirect_Hooks::subscriptions_save_sequence_id()
S
51 7 25
WC_Monei_IPN::check_ipn_request()
S
52 7 24
WC_Monei_Redirect_Hooks::add_notice_monei_order_cancelled()
S
56 7 15
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::get_cart_subscription_interval_in_days()
S
53 6 24
Monei\Gateways\PaymentMethods\WCGatewayMoneiBizum::bizum_scripts()
S
48 5 37
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::process_refund()
S
52 6 22
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::scheduled_subscription_payment()
S
46 5 37
Monei\Services\MoneiApplePayVerificationService::apple_domain_register()
S
54 6 19
Monei\Gateways\PaymentMethods\WCGatewayMoneiCC::add_payment_method()
S
50 5 30
Monei\Gateways\PaymentMethods\WCGatewayMoneiCofidis::cofidis_scripts()
S
52 5 23
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::create_subscription_payload()
S
53 5 22
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::create_subscription_payload()
S
53 5 22
Woocommerce_Gateway_Monei::is_request()
S
64 6 10
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::is_available()
S
63 6 9
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::is_valid_for_use()
S
59 5 14
Monei\Services\PaymentMethodsService::getMethodAvailability()
S
50 4 29
Woocommerce_Gateway_Monei::admin_new_install_notice()
S
58 5 14
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::determineTheTotalAmountToBePassed()
S
60 5 13
Monei\Services\MoneiApplePayVerificationService::expose_on_domain_association_request()
S
60 5 12
Woocommerce_Gateway_Monei::block_compatiblity()
S
55 4 23
Monei\Gateways\Blocks\MoneiPaypalBlocksSupport::get_payment_method_data()
S
54 4 19
Monei\Gateways\Blocks\MoneiMultibancoBlocksSupport::get_payment_method_data()
S
54 4 19
Monei\Gateways\Blocks\MoneiBizumBlocksSupport::get_payment_method_data()
S
54 4 19
Monei\Gateways\Blocks\MoneiMBWayBlocksSupport::get_payment_method_data()
S
54 4 19
WC_Monei_Logger::log()
S
56 4 18
Monei\Gateways\PaymentMethods\WCGatewayMoneiAppleGoogle::__construct()
S
54 4 18
Monei\Settings\MoneiSettings::get_settings()
S
42 1 61
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::is_subscription_order()
S
67 5 7
Woocommerce_Gateway_Monei::get_setting_with_default()
S
60 4 14
WC_Monei_IPN::get_all_headers()
S
59 4 13
WC_Monei_Pre_Auth::is_pre_auth_order()
S
61 4 13
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::subscription_after_payment_success()
S
62 4 12
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::subscription_after_payment_success()
S
62 4 12
Monei\Gateways\PaymentMethods\WCGatewayMoneiAppleGoogle::isBlockCheckout()
S
62 4 11
Monei\Gateways\PaymentMethods\WCGatewayMoneiCC::create_zero_eur_payload()
S
51 3 26
Monei\Repositories\PaymentMethodsRepository::getPaymentMethods()
S
63 4 11
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::checks_before_save()
S
62 4 11
Monei\Settings\MoneiSettings::enqueue_admin_scripts()
S
53 3 26
Woocommerce_Gateway_Monei::includes()
S
56 3 20
WC_Monei_Pre_Auth::capture_payment_when_pre_auth()
S
55 3 18
WC_Monei_Pre_Auth::cancel_payment_when_pre_auth()
S
56 3 17
Woocommerce_Gateway_Monei::continue_init()
S
61 3 13
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::__construct()
S
53 2 25
Monei\Gateways\Blocks\MoneiCCBlocksSupport::get_payment_method_script_handles()
S
54 2 24
Monei\Gateways\Blocks\MoneiPaypalBlocksSupport::get_payment_method_script_handles()
S
55 2 22
Monei\Gateways\Blocks\MoneiBizumBlocksSupport::get_payment_method_script_handles()
S
56 2 21
Monei\Gateways\Blocks\MoneiMBWayBlocksSupport::get_payment_method_script_handles()
S
56 2 21
Monei\Gateways\Blocks\MoneiMultibancoBlocksSupport::get_payment_method_script_handles()
S
56 2 21
Monei\Settings\MoneiSettings::output()
S
57 2 16
monei_get_settings()
S
68 3 7
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::is_subscription_order()
S
70 3 6
WC_Monei_IPN::log_ipn_request()
S
66 3 7
Monei\Gateways\Blocks\MoneiPaypalBlocksSupport::is_active()
S
66 3 8
Monei\Gateways\PaymentMethods\WCGatewayMoneiBizum::needs_setup()
S
71 3 6
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::get_subscription_from_renew_order()
S
71 3 5
Monei\Gateways\PaymentMethods\WCGatewayMoneiCC::needs_setup()
S
71 3 6
Monei\Gateways\PaymentMethods\WCGatewayMoneiCC::render_monei_form()
S
56 1 30
Monei\Gateways\PaymentMethods\WCGatewayMoneiCofidis::needs_setup()
S
71 3 6
Monei\Gateways\PaymentMethods\WCGatewayMoneiMBWay::needs_setup()
S
71 3 6
WC_Monei_Redirect_Hooks::add_notice_monei_order_failed()
S
63 3 10
Monei\Gateways\PaymentMethods\WCGatewayMoneiMultibanco::needs_setup()
S
71 3 6
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::log()
S
72 3 5
Monei\Gateways\PaymentMethods\WCGatewayMoneiPaypal::needs_setup()
S
71 3 6
Monei\Features\Subscriptions\SubscriptionService::getHandler()
S
67 3 9
Monei\Services\BlockSupportService::getBlockSupportClasses()
S
63 3 10
Monei\Gateways\Abstracts\WCMoneiPaymentGatewayHosted::get_frontend_generated_bizum_token()
S
69 3 6
Monei\Gateways\Blocks\MoneiBizumBlocksSupport::is_active()
S
66 3 8
Monei\Gateways\Blocks\MoneiCCBlocksSupport::is_active()
S
66 3 8
Monei\Gateways\Blocks\MoneiMBWayBlocksSupport::is_active()
S
66 3 8
Monei\Gateways\Blocks\MoneiMultibancoBlocksSupport::is_active()
S
66 3 8
monei_token_exits()
S
65 3 9
Woocommerce_Gateway_Monei::add_gateways()
S
60 2 13
Woocommerce_Gateway_Monei::init()
S
51 1 28
Monei\Services\PaymentMethodsService::getEnabledPaymentMethods()
S
62 2 12
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::update_subscription_meta_data()
S
63 2 11
Monei\Templates\NoticeAdminNewInstall::render()
S
54 1 25
Monei\Templates\NoticeGatewayNotAvailableApi::render()
S
56 1 22
Monei\Templates\SettingsHeader::render()
S
56 1 21
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::init_subscriptions()
S
56 1 19
Monei\Repositories\PaymentMethodsRepository::fetchFromAPI()
S
68 2 7
Monei\Services\ApiKeyService::get_api_key()
S
78 2 3
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::get_frontend_generated_monei_token()
S
77 2 3
Woocommerce_Gateway_Monei::define()
S
75 2 5
Monei\Services\payment\MoneiPaymentServices::set_order()
S
75 2 4
Monei\Gateways\PaymentMethods\WCGatewayMoneiPaypal::get_frontend_generated_token()
S
77 2 3
Monei\Gateways\Abstracts\WCMoneiPaymentGatewayComponent::get_frontend_generated_monei_token()
S
77 2 3
Monei\Gateways\Abstracts\WCMoneiPaymentGatewayComponent::isBlockCheckout()
S
77 2 3
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::is_subscription_change_payment_page()
S
78 2 3
Woocommerce_Gateway_Monei::check_dependencies()
S
71 2 6
Monei\Gateways\Abstracts\WCMoneiPaymentGatewayComponent::get_frontend_generated_monei_apple_google_token()
S
77 2 3
Monei\Services\sdk\MoneiSdkClientFactory::get_client()
S
64 2 9
Woocommerce_Gateway_Monei::instance()
S
70 2 7
Monei\Gateways\PaymentMethods\WCGatewayMoneiBizum::get_frontend_generated_token()
S
77 2 3
Monei\Core\ContainerProvider::getContainer()
S
71 2 6
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::update_subscription_meta_data()
S
66 2 8
Monei\Gateways\Blocks\MoneiCCBlocksSupport::filter_saved_payment_methods_list()
S
71 2 6
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::isBlockCheckout()
S
77 2 3
Woocommerce_Gateway_Monei::monei_settings_by_default()
S
67 2 7
WC_Monei_IPN::verify_signature_get_payload()
S
68 2 7
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::get_parent_for_renewal_order_id()
S
64 2 10
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::add_cart_total_fragments()
S
68 2 7
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::is_subscription_change_payment_page()
S
78 2 3
Monei\Gateways\PaymentMethods\WCGatewayMoneiCC::isAppleAvailable()
S
73 2 5
Woocommerce_Gateway_Monei::initalize_plugin()
S
64 2 9
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::add_extra_info_to_subscriptions_payment_method_title()
S
70 2 6
Monei\Gateways\PaymentMethods\WCGatewayMoneiAppleGoogle::payment_fields()
S
68 2 8
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::add_extra_info_to_subscriptions_payment_method_title()
S
70 2 6
Monei\Gateways\Abstracts\WCMoneiPaymentGatewayComponent::get_frontend_generated_monei_cardholder()
S
74 2 4
Woocommerce_Gateway_Monei::dependency_notice()
S
66 2 8
Monei\Gateways\PaymentMethods\WCGatewayMoneiCC::isGoogleAvailable()
S
73 2 5
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::get_icon()
S
74 2 4
Monei\Gateways\PaymentMethods\WCGatewayMoneiCofidis::payment_fields()
S
68 2 8
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::get_payment_token_id_if_selected()
S
76 2 3
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::init_subscriptions()
S
61 1 12
Monei\Gateways\PaymentMethods\WCGatewayMoneiAppleGoogle::render_google_pay_form()
S
68 1 11
Monei\Templates\NoticeGatewayNotEnabledMonei::render()
S
66 1 11
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::__construct()
S
80 1 3
Monei\Gateways\PaymentMethods\WCGatewayMoneiAppleGoogle::process_payment()
S
79 1 3
Monei\Services\payment\MoneiPaymentServices::create_payment()
S
76 1 4
Monei\Gateways\PaymentMethods\WCGatewayMoneiBizum::process_payment()
S
79 1 3
Monei\Gateways\PaymentMethods\WCGatewayMoneiMBWay::init_form_fields()
S
79 1 3
Monei\Repositories\PaymentMethodsRepository::__construct()
S
81 1 3
Monei\Templates\NoticeGatewayNotAvailable::render()
S
67 1 10
Woocommerce_Gateway_Monei::plugins_loaded()
S
79 1 3
Monei\Services\payment\MoneiPaymentServices::confirm_payment()
S
75 1 4
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::is_subscriptions_addon_enabled()
S
80 1 3
Woocommerce_Gateway_Monei::define_constants()
S
65 1 9
Monei\Services\payment\MoneiPaymentServices::cancel_payment()
S
74 1 4
Woocommerce_Gateway_Monei::get_installed_version()
S
80 1 3
WC_Monei_IPN::__construct()
S
68 1 7
Monei\Gateways\Blocks\MoneiMBWayBlocksSupport::__construct()
S
81 1 3
Monei\Gateways\PaymentMethods\WCGatewayMoneiMultibanco::init_form_fields()
S
79 1 3
Monei\Gateways\Blocks\MoneiCCBlocksSupport::__construct()
S
81 1 3
Monei\Settings\MoneiSettings::__construct()
S
66 1 8
Woocommerce_Gateway_Monei::get_ipn_url()
S
80 1 3
Monei\Services\payment\MoneiPaymentServices::recurring_payment()
S
75 1 4
Monei\Templates\TemplateManager::__construct()
S
81 1 3
WC_Monei_Pre_Auth::__construct()
S
65 1 9
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::get_subscription_payment_method_friendly_name()
S
71 1 5
Monei\Gateways\PaymentMethods\WCGatewayMoneiCC::init_form_fields()
S
79 1 3
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::get_subscriptions_for_order()
S
75 1 4
Monei\Gateways\Blocks\MoneiAppleGoogleBlocksSupport::is_active()
S
91 1 2
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::get_sequence_id_from_renewal_order()
S
79 1 3
Monei\Gateways\Blocks\MoneiAppleGoogleBlocksSupport::initialize()
S
91 1 2
locale_iso_639_1_code()
S
73 1 5
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::get_save_payment_card_checkbox()
S
78 1 3
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::save_payment_method_checkbox()
S
65 1 10
Monei\Services\PaymentMethodsService::__construct()
S
81 1 3
Monei\Services\payment\MoneiPaymentServices::register_apple_domain()
S
75 1 4
Woocommerce_Gateway_Monei::ajax_url()
S
79 1 3
Monei\Services\sdk\MoneiSdkClientFactory::__construct()
S
77 1 4
Woocommerce_Gateway_Monei::plugin_url()
S
79 1 3
Monei\Services\payment\MoneiPaymentServices::get_payment()
S
76 1 4
WC_Monei_Redirect_Hooks::__construct()
S
66 1 8
Monei\Services\MoneiApplePayVerificationService::__construct()
S
71 1 5
Monei\Services\ApiKeyService::is_test_mode()
S
80 1 3
Monei\Gateways\PaymentMethods\WCGatewayMoneiCofidis::render_cofidis_widget()
S
83 1 5
Monei\Features\Subscriptions\SubscriptionService::__construct()
S
77 1 4
Monei\Gateways\PaymentMethods\WCGatewayMoneiMultibanco::process_payment()
S
79 1 3
Monei\Gateways\PaymentMethods\WCGatewayMoneiMBWay::process_payment()
S
79 1 3
Monei\Services\payment\MoneiPaymentServices::__construct()
S
81 1 3
Monei\Gateways\Blocks\MoneiPaypalBlocksSupport::initialize()
S
79 1 3
Monei\Gateways\PaymentMethods\WCGatewayMoneiBizum::payment_fields()
S
72 1 9
Monei\Gateways\Blocks\MoneiMBWayBlocksSupport::initialize()
S
79 1 3
Monei\Gateways\Blocks\MoneiMultibancoBlocksSupport::initialize()
S
79 1 3
Monei\Gateways\PaymentMethods\WCGatewayMoneiPaypal::process_payment()
S
79 1 3
Monei\Gateways\Blocks\MoneiPaypalBlocksSupport::__construct()
S
81 1 3
Woocommerce_Gateway_Monei::init_hooks()
S
75 1 4
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::__construct()
S
71 1 6
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::get_sequence_id_from_subscription()
S
80 1 3
Monei\Gateways\Blocks\MoneiCCBlocksSupport::initialize()
S
74 1 4
Monei\Services\ApiKeyService::get_account_id()
S
82 1 3
Monei\Services\payment\MoneiPaymentServices::refund_payment()
S
65 1 10
Monei\Gateways\PaymentMethods\WCGatewayMoneiBizum::init_form_fields()
S
79 1 3
WC_Monei_Addons_Redirect_Hooks::__construct()
S
63 1 10
Monei\Gateways\PaymentMethods\WCGatewayMoneiPaypal::init_form_fields()
S
79 1 3
Monei\Services\ApiKeyService::update_keys()
S
72 1 5
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::is_subscriptions_addon_enabled()
S
80 1 3
Monei\Services\BlockSupportService::__construct()
S
77 1 4
Monei\Features\Subscriptions\YithSubscriptionPluginHandler::get_subscription_payment_method_friendly_name()
S
71 1 5
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::getTestmode()
S
81 1 3
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::getApiKey()
S
81 1 3
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::get_subscriptions_for_order()
S
78 1 3
Monei\Gateways\Abstracts\WCMoneiPaymentGateway::getAccountId()
S
81 1 3
Monei\Templates\TemplateManager::getTemplate()
S
79 1 3
Woocommerce_Gateway_Monei::template_path()
S
79 1 3
Monei\Gateways\PaymentMethods\WCGatewayMoneiCofidis::init_form_fields()
S
79 1 3
Monei\Core\ContainerProvider::buildContainer()
S
72 1 5
Monei\Gateways\Blocks\MoneiAppleGoogleBlocksSupport::get_payment_method_data()
S
91 1 2
Monei\Services\payment\MoneiPaymentServices::capture_payment()
S
74 1 4
Monei\Features\Subscriptions\WooCommerceSubscriptionsHandler::get_parent_for_subscription_id()
S
81 1 3
monei_price_format()
S
77 1 3
Monei\Gateways\Blocks\MoneiBizumBlocksSupport::initialize()
S
79 1 3
Monei\Gateways\Blocks\MoneiMultibancoBlocksSupport::__construct()
S
81 1 3
Monei\Services\payment\MoneiPaymentServices::verify_signature()
S
75 1 4
Monei\Gateways\Blocks\MoneiAppleGoogleBlocksSupport::__construct()
S
81 1 3
Monei\Gateways\Blocks\MoneiBizumBlocksSupport::__construct()
S
81 1 3
Monei\Templates\NoticeAdminDependency::render()
S
68 1 10
Monei\Repositories\PaymentMethodsRepository::generateTransientKey()
S
79 1 3
Monei\Gateways\PaymentMethods\WCGatewayMoneiCC::process_payment()
S
79 1 3
Monei\Gateways\Blocks\MoneiAppleGoogleBlocksSupport::get_payment_method_script_handles()
S
91 1 2
Monei\Settings\MoneiSettings::save()
S
74 1 5
Monei\Services\ApiKeyService::__construct()
S
67 1 7
WC_Monei()
S
82 1 3
Woocommerce_Gateway_Monei::image_url()
S
79 1 3
Monei\Gateways\PaymentMethods\WCGatewayMoneiCofidis::process_payment()
S
79 1 3
Monei\Services\PaymentMethodsService::isAppleEnabled()
S
75 1 4
Woocommerce_Gateway_Monei::plugin_path()
S
80 1 3
Monei\Services\PaymentMethodsService::isGoogleEnabled()
S
75 1 4
Monei\Gateways\PaymentMethods\WCGatewayMoneiAppleGoogle::hideAppleGoogleInCheckout()
S
82 1 3