Code Analysis: WooCommerce PayPal Payments 1.9.0

Most Complex Functions

Function Rating Complexity
WooCommerce\PayPalCommerce\WcGateway\Gateway\PayUponInvoice\PayUponInvoice::init()
D
40
WooCommerce\PayPalCommerce\Compat\PPEC\SettingsImporter::get_settings_translated()
D
43
WooCommerce\PayPalCommerce\WcGateway\Settings\SettingsRenderer::render()
C
28
WooCommerce\PayPalCommerce\Button\Assets\SmartButton::message_values()
C
28
WooCommerce\PayPalCommerce\Button\Assets\SmartButton::url()
C
26
WooCommerce\PayPalCommerce\WcGateway\WCGatewayModule::run()
C
17
WooCommerce\PayPalCommerce\WcGateway\Helper\PayUponInvoiceHelper::is_checkout_ready_for_pui()
B
23
WooCommerce\PayPalCommerce\Button\Endpoint\CreateOrderEndpoint::handle_request()
B
21
WooCommerce\PayPalCommerce\Webhooks\Handler\CheckoutOrderApproved::handle_request()
B
17
WooCommerce\PayPalCommerce\Button\Assets\SmartButton::render_wrapper()
B
19
WooCommerce\PayPalCommerce\Onboarding\OnboardingRESTController::set_credentials()
B
19
WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint::create()
B
17