PMProGateway_braintree D

Total Complexity 164
Dependencies 13
Dependents 1
Total lines 1,219
Lines of code 797
Logical lines of code 454
Comment lines 270
Methods 30
Properties 1

Methods 30

Method Rating Maintainability Complexity Lines of code
pmpro_include_payment_information_fields()
C
34 25 82
getCustomer()
C
30 20 131
subscribe()
B
36 16 75
charge()
A
40 9 65
cancel()
A
45 10 47
pmpro_payment_option_fields()
A
45 7 53
process()
A
48 7 39
getPlans()
S
50 6 28
dependencies()
S
51 6 25
pmpro_next_payment()
S
60 6 13
update_subscription_info()
S
51 5 26
__construct()
S
50 4 30
pmpro_checkout_order()
S
56 4 19
init()
S
55 4 19
update()
S
59 4 15
get_subscription()
S
60 4 13
pmpro_checkout_preheader()
S
58 3 15
getPlanByID()
S
64 4 10
cancel_subscription()
S
63 3 11
getGatewayOptions()
S
59 1 17
user_register()
S
69 2 7
supports()
S
64 2 10
pmpro_gateways()
S
72 2 5
checkLevelForPlan()
S
67 2 8
pmpro_save_level_action()
S
67 2 7
loadBraintreeLibrary()
S
66 2 8
pmpro_required_billing_fields()
S
73 1 5
pmpro_payment_options()
S
73 1 5
get_plan_id()
S
78 1 3
pmpro_checkout_before_submit_button()
S
81 1 6