Code Analysis: Charge Anywhere Payment Gateway For WooCommerce 4.0

Most Complex Classes

Class Rating Complexity
WC_Gateway_ChargeAnywhere
D
185
WC_ChargeAnywhere_Payments
S
14
WC_Gateway_ChargeAnywhere_Blocks_Support
S
7

Most Complex Functions

Function Rating Complexity
WC_Gateway_ChargeAnywhere::process_refund()
D
52
WC_Gateway_ChargeAnywhere::generate_authorize_form()
D
33
WC_Gateway_ChargeAnywhere::check_authorize_response()
C
28
validate_payment_form()
A
13
WC_Gateway_ChargeAnywhere::init_form_fields()
A
1
WC_Gateway_ChargeAnywhere::process_capture()
A
11
WC_Gateway_ChargeAnywhere::__construct()
A
10
WC_Gateway_ChargeAnywhere::post_transaction()
A
9
WC_Gateway_ChargeAnywhere::process_payment()
A
9
WC_Gateway_ChargeAnywhere::get_payload()
S
5
WC_ChargeAnywhere_Payments::add_gateway()
S
5
WC_Gateway_ChargeAnywhere_Blocks_Support::get_payment_method_script_handles()
S
3