Code Analysis: PaymentsDS - Mpesa Payment Gateway for WooCommerce 1.0.1

Function Rating Maintainability Complexity Lines of code
mpesa_wp_init()
C
19
2 404
Mpesa_WP_Plugin::process_action()
A
37 8 83
Mpesa_WP_Plugin::process_refund()
S
47 6 37
Mpesa_WP_Plugin::payment_fields()
S
46 4 45
Mpesa_WP_Plugin::payment_scripts()
S
44 3 54
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::process_payment()
S
66 1 9
Mpesa_WP_Plugin::generate_reference_id()
S
77 1 3
wpdocs_load_textdomain()
S
78 1 3