PMProGateway_braintree D

Total Complexity 154
Dependencies 13
Dependents 1
Total lines 1,112
Lines of code 745
Logical lines of code 424
Comment lines 222
Methods 27
Properties 1

Methods 27

Method Rating Maintainability Complexity Lines of code
pmpro_include_payment_information_fields()
C
35 25 78
getCustomer()
C
30 20 131
subscribe()
B
36 16 74
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
__construct()
S
50 4 30
init()
S
55 4 19
pmpro_checkout_order()
S
56 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
getGatewayOptions()
S
59 1 17
pmpro_gateways()
S
72 2 5
checkLevelForPlan()
S
67 2 8
pmpro_save_level_action()
S
67 2 7
loadBraintreeLibrary()
S
66 2 8
user_register()
S
69 2 7
pmpro_payment_options()
S
73 1 5
pmpro_required_billing_fields()
S
73 1 5
pmpro_checkout_before_submit_button()
S
81 1 6
get_plan_id()
S
78 1 3