Code Analysis: PaymentsDS - Mpesa Payment Gateway for WooCommerce 0.1.1

Function Rating Maintainability Complexity Lines of code
mpesa_wp_init()
B
20
2 359
Mpesa_WP_Plugin::process_action()
A
38 8 74
Mpesa_WP_Plugin::payment_fields()
S
46 4 47
Mpesa_WP_Plugin::payment_scripts()
S
43 3 57
Mpesa_WP_Plugin::wc_mpesa_validate_number()
S
61 4 12
Mpesa_WP_Plugin::wc_minimum_order_amount()
S
55 3 24
Mpesa_WP_Plugin::validate_fields()
S
56 3 20
Mpesa_WP_Plugin::init_form_fields()
S
46 1 45
Mpesa_WP_Plugin::__construct()
S
47 1 40
Mpesa_WP_Plugin::payment_form_html()
S
59 1 16
mpesa_wp_install()
S
64 2 9
mpesa_wp_update_check()
S
74 2 5
Mpesa_WP_Plugin::generate_reference_id()
S
77 1 3
mpesa_wp_add_gateway_class()
S
77 1 4
Mpesa_WP_Plugin::process_payment()
S
66 1 9