Code Analysis: CHIP for WooCommerce 1.1.3

Function Rating Maintainability Complexity Lines of code
wc_chip_payment_gateway_init()
C
17
2 435
WC_Chip_Gateway::payment_fields()
B
37 14 77
WC_Chip_Gateway::get_language()
A
51 10 29
WC_Chip_Gateway::process_payment()
S
38 4 70
WC_Chip_Gateway::handle_callback()
S
47 6 38
WC_Chip_Gateway::process_refund()
S
50 5 27
WC_Chip_Gateway::__construct()
S
49 4 34
WC_Chip_API::request()
S
50 4 30
WC_Chip_API::call()
S
52 4 26
WC_Chip_Gateway::init_form_fields()
S
43 1 63
WC_Chip_Gateway::can_refund_order()
S
74 5 4
WC_Chip_Gateway::get_notes()
S
58 4 14
WC_Chip_Gateway::chip_api()
S
64 2 11
WC_Chip_API::log_info()
S
73 2 5
WC_Chip_API::log_error()
S
68 2 7
WC_Chip_Gateway::unsupported_currency()
S
66 2 8
WC_Chip_API::was_payment_successful()
S
64 2 9
ChipWCLogger::__construct()
S
80 1 3
ChipWCLogger::log()
S
80 1 3
WC_Chip_API::create_payment()
S
74 1 4
WC_Chip_Gateway::get_due_timestamp()
S
77 1 3
WC_Chip_Gateway::log_order_info()
S
76 1 4
WC_Chip_API::payment_methods()
S
68 1 7
WC_Chip_API::refund_payment()
S
65 1 9
WC_Chip_API::__construct()
S
71 1 6
wc_chip_add_gateway()
S
77 1 4
wc_chip_setting_link()
S
67 1 8