Code Analysis: CHIP for WooCommerce 1.6.8

Function Rating Maintainability Complexity Lines of code
WC_Gateway_Chip::process_payment()
D
17
56 227
WC_Gateway_Chip::payment_fields()
C
39 27 53
WC_Gateway_Chip::handle_callback_order()
C
36 24 69
WC_Gateway_Chip::bypass_chip()
B
45 19 36
WC_Gateway_Chip::auto_charge()
B
35 15 76
WC_Gateway_Chip::process_payment_method_change()
A
36 14 72
WC_Gateway_Chip::handle_payment_method_change()
A
40 15 53
WC_Gateway_Chip::validate_fields()
A
51 17 21
WC_Gateway_Chip::process_pre_order_payments()
A
35 13 78
WC_Gateway_Chip::init_form_fields()
A
24
1 246
WC_Gateway_Chip_Blocks_Support::get_payment_method_data()
A
50 12 25
Chip_Woocommerce_Migration::v_127_to_130()
A
42 9 55
WC_Gateway_Chip_Blocks_Support::get_payment_method_script_handles()
A
43 9 48
WC_Gateway_Chip::get_language()
A
51 10 29
WC_Gateway_Chip::handle_change_payment_method_shortcode()
A
52 10 22
WC_Gateway_Chip::process_admin_options()
A
45 8 39
WC_Gateway_Chip::store_recurring_token()
A
46 8 36
WC_Gateway_Chip::handle_callback_token()
A
48 8 30
WC_Gateway_Chip::add_payment_method()
A
40 6 60
WC_Gateway_Chip::check_order_status()
A
49 7 33
Chip_Woocommerce_Bulk_Action::handle_bulk_actions()
A
48 7 31
WC_Gateway_Chip::handle_callback_event()
S
50 7 27
WC_Gateway_Chip::list_razer_ewallets()
S
52 7 24
WC_Gateway_Chip::meta_box_scripts()
S
54 7 19
WC_Gateway_Chip::form()
S
44 5 45
WC_Gateway_Chip::init_one_time_gateway()
S
58 7 15
WC_Gateway_Chip::handle_callback()
S
62 7 11
WC_Gateway_Chip::maybe_delete_payment_token()
S
62 7 11
WC_Gateway_Chip::metabox_ajax_handler()
S
52 6 23
WC_Gateway_Chip::add_item_order_fee()
S
49 5 31
WC_Gateway_Chip::filter_non_available_fpx()
S
61 6 12
Chip_Woocommerce_Bulk_Action::bulk_admin_notices()
S
59 6 12
WC_Gateway_Chip::process_refund()
S
51 5 24
WC_Gateway_Chip::load_metabox_info()
S
52 5 23
WC_Gateway_Chip::__construct()
S
43 3 49
Chip_Woocommerce_Receipt_Link::receipt_button()
S
56 5 17
Chip_Woocommerce_API_FPX::request()
S
50 4 31
Chip_Woocommerce_API::request()
S
50 4 31
WC_Gateway_Chip::payment_complete()
S
58 5 14
Chip_Woocommerce_API::call()
S
52 4 26
Chip_Woocommerce_API_FPX::call()
S
53 4 24
WC_Gateway_Chip::payment_token_deleted()
S
56 4 17
WC_Gateway_Chip::add_payment_token()
S
58 4 16
WC_Gateway_Chip::can_refund_order()
S
70 5 5
WC_Gateway_Chip::register_metabox()
S
60 4 13
WC_Gateway_Chip::list_fpx_b2b1_banks()
S
47 2 34
WC_Gateway_Chip::list_fpx_banks()
S
47 2 33
Chip_Woocommerce::includes()
S
57 3 17
WC_Gateway_Chip::maybe_dont_update_payment_method()
S
63 4 10
WC_Gateway_Chip::get_payment_method_for_recurring()
S
65 4 8
WC_Gateway_Chip::change_failing_payment_method()
S
61 3 13
Chip_Woocommerce_Receipt_Link::view_button()
S
61 3 12
Chip_Woocommerce_Receipt_Link::invoice_button()
S
62 3 11
WC_Gateway_Chip::metabox_html()
S
53 1 32
Chip_Woocommerce::block_support()
S
58 2 17
WC_Gateway_Chip::add_actions()
S
56 2 16
Chip_Woocommerce::get_chip_gateway_class()
S
66 3 8
Chip_Woocommerce::load()
S
71 3 6
WC_Gateway_Chip::order_requires_payment_tokenization()
S
68 3 8
WC_Gateway_Chip::order_contains_pre_order()
S
68 3 8
Chip_Woocommerce::setting_link()
S
59 2 14
CHIP_Woocommerce_Site_Health::CHIP_plugin_check_api_health()
S
63 2 11
WC_Gateway_Chip::api()
S
64 2 11
CHIP_Woocommerce_Site_Health::response_success()
S
59 1 16
CHIP_Woocommerce_Site_Health::response_fail()
S
59 1 16
Chip_Woocommerce::get_instance()
S
71 2 6
Chip_Woocommerce_Queue::get_instance()
S
71 2 6
WC_Gateway_Chip::get_icon()
S
63 2 9
WC_Gateway_Chip::fpx_api()
S
67 2 9
Chip_Woocommerce_Receipt_Link::get_instance()
S
71 2 6
WC_Gateway_Chip::get_timezone_list()
S
65 2 9
WC_Gateway_Chip::get_due_timestamp()
S
68 2 7
Chip_Woocommerce_Queue::delete_payment_token()
S
69 2 7
WC_Gateway_Chip::get_public_key()
S
68 2 7
Chip_Woocommerce_API::log_info()
S
73 2 5
Chip_Woocommerce_Migration::get_instance()
S
71 2 6
Chip_Woocommerce_API::log_error()
S
68 2 7
Chip_Woocommerce_API_FPX::log_info()
S
73 2 5
Chip_Woocommerce_Bulk_Action::get_instance()
S
71 2 6
Chip_Woocommerce_API_FPX::log_error()
S
68 2 7
WC_Gateway_Chip::admin_notices()
S
68 2 9
Chip_Woocommerce::payment_token_deleted()
S
68 2 7
WC_Gateway_Chip::maybe_hide_add_new_payment_method()
S
71 2 6
WC_Gateway_Chip::init_icon()
S
63 2 9
WC_Gateway_Chip::init_currency_check()
S
67 2 7
Chip_Woocommerce_Queue::check_order_status()
S
68 2 7
WC_Gateway_Chip_5::init_form_fields()
S
61 1 12
Chip_Woocommerce::define()
S
77 1 6
WC_Gateway_Chip_5::init_one_time_gateway()
S
79 1 3
WC_Gateway_Chip_5::init_title()
S
79 1 3
Chip_Woocommerce_Bulk_Action::define_bulk_actions()
S
75 1 4
Chip_Woocommerce_API::create_client()
S
75 1 4
CHIP_Woocommerce_Site_Health::CHIP_plugin_register_site_health_tests()
S
68 1 7
WC_Gateway_Chip_5::get_payment_method_list()
S
80 1 3
WC_Gateway_Chip::delete_payment_token()
S
81 1 3
WC_Gateway_Chip_2::init_form_fields()
S
71 1 5
WC_Gateway_Chip_4::init_form_fields()
S
71 1 5
Chip_Woocommerce_API::charge_payment()
S
74 1 4
WC_Gateway_Chip::get_bypass_chip()
S
82 1 3
WC_Gateway_Chip::init_method_title()
S
78 1 3
WC_Gateway_Chip::init_title()
S
79 1 3
Chip_Woocommerce_Queue::add_actions()
S
74 1 4
Chip_Woocommerce_API_FPX::get_fpx_b2b1()
S
75 1 4
Chip_Woocommerce_Bulk_Action::handle_bulk_actions_hpos()
S
74 1 4
Chip_Woocommerce_API::balance()
S
73 1 5
WC_Gateway_Chip::init_id()
S
79 1 3
WC_Gateway_Chip_Blocks_Support::is_active()
S
81 1 3
Chip_Woocommerce_Receipt_Link::__construct()
S
82 1 3
Chip_Woocommerce_Migration::update_migrations()
S
76 1 4
WC_Gateway_Chip::init_supports()
S
72 1 4
WC_Gateway_Chip::filter_customer_full_name()
S
71 1 5
Chip_Woocommerce_API::__construct()
S
71 1 6
Chip_Woocommerce_API::public_key()
S
69 1 6
Chip_Woocommerce_Logger::__construct()
S
80 1 3
Chip_Woocommerce_Migration::__construct()
S
76 1 4
Chip_Woocommerce_API::refund_payment()
S
69 1 6
WC_Gateway_Chip::init_has_fields()
S
81 1 3
WC_Gateway_Chip::get_payment_method_whitelist()
S
82 1 3
WC_Gateway_Chip_3::init_title()
S
79 1 3
Chip_Woocommerce_API::get_payment()
S
68 1 6
Chip_Woocommerce_API::payment_recurring_methods()
S
68 1 7
WC_Gateway_Chip::get_payment_method_list()
S
74 1 3
Chip_Woocommerce_API::payment_methods()
S
68 1 7
WC_Gateway_Chip_4::init_title()
S
79 1 3
Chip_Woocommerce_API_FPX::get_fpx()
S
75 1 4
Chip_Woocommerce_Queue::__construct()
S
82 1 3
WC_Gateway_Chip::release_lock()
S
78 1 3
Chip_Woocommerce_Migration::update()
S
80 1 3
Chip_Woocommerce_API_FPX::__construct()
S
77 1 4
WC_Gateway_Chip_6::init_title()
S
79 1 3
Chip_Woocommerce_API::create_payment()
S
74 1 4
Chip_Woocommerce_API::get_client_by_email()
S
71 1 5
Chip_Woocommerce::__construct()
S
73 1 6
Chip_Woocommerce::add_actions()
S
74 1 4
Chip_Woocommerce::add_filters()
S
74 1 4
Chip_Woocommerce::add_gateways()
S
77 1 4
Chip_Woocommerce_API::delete_token()
S
74 1 4
CHIP_Woocommerce_Site_Health::__construct()
S
79 1 3
Chip_Woocommerce_API::turnover()
S
73 1 5
Chip_Woocommerce_Logger::log()
S
79 1 3
WC_Gateway_Chip_3::init_form_fields()
S
71 1 5
Chip_Woocommerce_Bulk_Action::__construct()
S
78 1 4
WC_Gateway_Chip_5::init_icon()
S
77 1 3
Chip_Woocommerce_Bulk_Action::add_filters()
S
69 1 6
Chip_Woocommerce_Bulk_Action::add_actions()
S
79 1 3
Chip_Woocommerce_API::capture_payment()
S
74 1 4
chip_clone_wc_gateways()
S
68 1 8
WC_Gateway_Chip::register_script()
S
64 1 10
WC_Gateway_Chip_5::__construct()
S
76 1 4
WC_Gateway_Chip::init_method_description()
S
78 1 3
Chip_Woocommerce_API::release_payment()
S
74 1 4
WC_Gateway_Chip::schedule_requery()
S
76 1 3
WC_Gateway_Chip::add_filters()
S
74 1 4
Chip_Woocommerce_API::patch_client()
S
74 1 4
WC_Gateway_Chip::log_order_info()
S
79 1 3
Chip_Woocommerce_Receipt_Link::add_actions()
S
73 1 5
WC_Gateway_Chip_6::init_form_fields()
S
71 1 5
WC_Gateway_Chip::get_lock()
S
78 1 3
Chip_Woocommerce_API::set_key()
S
77 1 4
WC_Gateway_Chip_2::init_title()
S
79 1 3
WC_Gateway_Chip_Blocks_Support::initialize()
S
76 1 4