Code Analysis: PaymentsDS - Mpesa Payment Gateway for WooCommerce 1.0

Function Rating Maintainability Complexity Lines of code
mpesa_wp_init()
C
18
2 416
Mpesa_WP_Plugin::process_action()
A
37 8 83
Mpesa_WP_Plugin::process_refund()
S
46 6 39
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 41
mpesa_wp_install()
S
58 2 17
Mpesa_WP_Plugin::payment_form_html()
S
54 1 24
mpesa_wp_update_check()
S
74 2 5
mpesa_wp_add_gateway_class()
S
77 1 4
Mpesa_WP_Plugin::generate_reference_id()
S
77 1 3
Mpesa_WP_Plugin::process_payment()
S
66 1 9