Code Analysis: zahls.ch Credit Cards, PostFinance and TWINT for WooCommerce 2.0.5

Function Rating Maintainability Complexity Lines of code
WC_Zahls_offline_gateway_init()
B
20
1 337
ZahlsPaymentGateway\Service\OrderService::handleTransactionStatus()
B
42 16 52
ZahlsPaymentGateway\Controller\PaymentController::createBasketByCart()
B
39 15 65
WC_Zahls_Gateway::process_payment()
A
36 13 77
ZahlsPaymentGateway\Webhook\Dispatcher::check_webhook_response()
A
42 12 50
WC_Zahls_Gateway::get_icon()
A
53 10 17
WC_Zahls_Gateway::mutateDescription()
A
48 7 36
ZahlsPaymentGateway\Service\SubscriptionService::process_recurring_payment()
S
52 7 24
WC_Zahls_Blocks_Support::get_payment_method_script_handles()
S
51 6 29
WC_Zahls_Blocks_Support::get_payment_icons()
S
53 6 20
ZahlsPaymentGateway\Util\StatusUtil::determineNewOrderStatus()
S
64 7 8
WC_Zahls_Blocks_Support::get_payment_method_data()
S
58 6 14
ZahlsPaymentGateway\Util\CartUtil::isSubscription()
S
61 6 12
ZahlsPaymentGateway\Service\ZahlsApiService::createZahlsGateway()
S
44 4 40
WC_Zahls_Gateway::admin_options()
S
41 1 84
ZahlsPaymentGateway\Util\StatusUtil::getAmountByStatusAndGateway()
S
63 4 10
WC_Zahls_Gateway::mutateTitle()
S
67 4 7
ZahlsPaymentGateway\Util\CartUtil::getOrderType()
S
69 4 6
zahls_woocommerce_blocks_support()
S
61 3 14
WC_Zahls_Gateway::__construct()
S
59 3 14
WC_Zahls_Gateway::handleError()
S
61 3 12
WC_Zahls_Gateway::register_hooks()
S
54 2 20
WC_Zahls_Gateway::init_settings()
S
55 2 19
ZahlsPaymentGateway\Util\CartUtil::isManualSubscription()
S
71 3 5
ZahlsPaymentGateway\Util\CartUtil::isAutomaticSubscription()
S
71 3 5
ZahlsPaymentGateway\Controller\PaymentController::createPurposeByBasket()
S
61 2 12
ZahlsPaymentGateway\Service\ZahlsApiService::chargeTransaction()
S
61 2 12
ZahlsPaymentGateway\Service\ZahlsApiService::deleteGatewayById()
S
62 2 11
ZahlsPaymentGateway\Service\ZahlsApiService::getZahlsGateway()
S
62 2 11
ZahlsPaymentGateway\Service\ZahlsApiService::getZahlsTransaction()
S
62 2 11
ZahlsPaymentGateway\Service\ZahlsApiService::getInterface()
S
71 2 5
ZahlsPaymentGateway\Webhook\Dispatcher::send_response()
S
65 2 9
ZahlsPaymentGateway\Service\OrderService::setOrderPaid()
S
66 2 9
ZahlsPaymentGateway\Util\CartUtil::isPaymentMethodChange()
S
76 2 4
ZahlsPaymentGateway\Service\ZahlsApiService::registerAutoloader()
S
65 2 9
ZahlsPaymentGateway\Controller\PaymentController::getBasketAmount()
S
66 2 8
wc_zahls_add_to_gateways()
S
77 1 4
ZahlsPaymentGateway\Service\OrderService::getCustomTransactionStatus()
S
79 1 3
WC_Zahls_Blocks_Support::get_supported_features()
S
76 1 4
WC_Zahls_Blocks_Support::is_active()
S
73 1 5
WC_Zahls_Blocks_Support::initialize()
S
75 1 4
ZahlsPaymentGateway\Webhook\Dispatcher::__construct()
S
74 1 5
ZahlsPaymentGateway\Service\SubscriptionService::__construct()
S
81 1 3
ZahlsPaymentGateway\Service\ZahlsApiService::__construct()
S
69 1 7
sb_zahls_plugin_action_links()
S
69 1 6
WC_Zahls_Gateway::init_form_fields()
S
80 1 3
WC_Zahls_Gateway::load_dependencies()
S
66 1 9
WC_Zahls_Gateway::init_components()
S
64 1 9