Code Analysis: CHIP for GiveWP 1.2.1

Function Rating Maintainability Complexity Lines of code
Chip_Givewp_Listener::handle_processing()
B
32 20 96
Chip_Givewp_Purchase::create()
B
31 15 104
ChipGateway::createPayment()
A
38 8 62
Chip_Givewp_Refund_Button::refund()
A
43 8 43
ChipGateway::refundDonation()
S
45 6 37
Chip_Givewp_Admin_Settings::setting_fields()
S
39 3 78
Chip_Givewp::filter_gateway()
S
60 5 12
Chip_Givewp::billing_fields()
S
62 5 11
Chip_Givewp_Purchase::get_instructions()
S
53 4 26
Chip_Givewp_API::call()
S
54 4 23
Chip_Givewp_Refund_Button::refund_button()
S
56 4 20
Chip_Givewp_Listener::handle_callback()
S
58 4 15
Chip_Givewp_Admin_Metabox_Settings::metabox_fields()
S
51 3 26
Chip_Givewp_API::request()
S
58 3 16
Chip_Givewp_Admin_Global_Settings::register_setting_fields()
S
58 2 18
Chip_Givewp_Admin_Metabox_Settings::enqueue_js()
S
71 3 5
Chip_Givewp_Listener::handle_redirect()
S
64 3 10
Chip_Givewp_Admin_Metabox_Settings::add_tab()
S
59 2 14
Chip_Givewp::includes()
S
60 2 14
ChipGateway::enqueueScript()
S
61 2 13
Chip_Givewp_Admin_Metabox_Settings::get_instance()
S
71 2 6
Chip_Givewp::get_instance()
S
71 2 6
Chip_Givewp_Purchase::get_formatted_content()
S
73 2 4
Chip_Givewp_Purchase::get_timezone()
S
71 2 6
Chip_Givewp_Listener::get_callback_url()
S
64 2 9
ChipGateway::get_timezone()
S
71 2 6
Chip_Givewp_Refund_Button::get_instance()
S
71 2 6
Chip_Givewp_API::get_instance()
S
70 2 6
Chip_Givewp_Refund_Button::__construct()
S
74 2 5
Chip_Givewp_API::was_payment_successful()
S
74 2 4
Chip_Givewp_Refund_Button::enqueue_js()
S
72 2 5
Chip_Givewp_Helper::get_fields()
S
70 2 6
Chip_Givewp_Helper::update_fields()
S
70 2 6
Chip_Givewp_Listener::get_instance()
S
71 2 6
Chip_Givewp_Block::get_instance()
S
71 2 6
Chip_Givewp_Admin_Global_Settings::get_instance()
S
71 2 6
Chip_Givewp_Purchase::get_instance()
S
71 2 6
Chip_Givewp_Purchase::cc_form()
S
63 1 12
Chip_Givewp_Helper::log()
S
61 1 12
Chip_Givewp::register_payment_method()
S
68 1 7
Chip_Givewp::setting_link()
S
66 1 8
Chip_Givewp_Listener::get_redirect_url()
S
74 1 4
Chip_Givewp_API::__construct()
S
77 1 4
Chip_Givewp_Block::add_filters()
S
91 1 2
Chip_Givewp_Admin_Metabox_Settings::__construct()
S
72 1 5
Chip_Givewp_Block::add_actions()
S
70 1 6
Chip_Givewp_Listener::__construct()
S
75 1 4
Chip_Givewp::register_payment_gateway_sections()
S
75 1 4
ChipGateway::id()
S
81 1 3
ChipGateway::getName()
S
79 1 3
Chip_Givewp_API::get_public_key()
S
79 1 3
Chip_Givewp::__construct()
S
73 1 6
Chip_Givewp::add_actions()
S
79 1 3
ChipGateway::getLegacyFormFieldMarkup()
S
77 1 5
Chip_Givewp_API::create_payment()
S
78 1 3
Chip_Givewp_Admin_Global_Settings::__construct()
S
79 1 3
Chip_Givewp_Refund_Button::add_actions()
S
71 1 5
ChipGateway::getId()
S
80 1 3
Chip_Givewp_API::refund_payment()
S
77 1 3
Chip_Givewp_Purchase::__construct()
S
75 1 4
Chip_Givewp::define()
S
81 1 4
ChipGateway::getPaymentMethodLabel()
S
79 1 3
Chip_Givewp::add_filters()
S
69 1 6
Chip_Givewp_API::payment_methods()
S
70 1 6
Chip_Givewp_API::get_payment()
S
74 1 4
Chip_Givewp_Block::__construct()
S
78 1 4