Code Analysis: myCred - LifterLMS Integration 1.7.1

Function Rating Maintainability Complexity Lines of code
LLMS_Payment_Gateway_Mycred::llms_checkout_footer_before()
A
40 10 64
LLMS_Payment_Gateway_Mycred::handle_pending_order()
A
37 7 72
myCRED_LifterLMS_Course::sanitise_preferences()
A
54 10 21
myCRED_LifterLMS_Quiz::sanitise_preferences()
A
54 10 21
LLMS_Notification_View_Mycred_Points::set_merge_data()
A
48 9 32
myCRED_LifterLMS_Course::preferences()
A
34 1 149
myCRED_LifterLMS_Quiz::preferences()
A
34 1 149
LLMS_Payment_Gateway_Mycred::settings_gateway_llms()
A
36 3 92
LLMS_Payment_Gateway_Mycred::record_transaction()
S
48 6 34
myCRED_LifterLMS::__construct()
S
53 5 21
LLMS_Payment_Gateway_Mycred::process_refund()
S
46 4 36
myCRED_LifterLMS::prevent_mycred_lifterlms_integration_activation()
S
60 5 14
myCRED_LifterLMS_Achievement::user_earned_achievement()
S
56 4 18
myCRED_LifterLMS_Certificate::user_earned_certificate()
S
56 4 18
myCRED_LifterLMS_Section::section_completed()
S
58 4 15
myCRED_LifterLMS_Lesson::lesson_completed()
S
58 4 15
myCRED_LifterLMS_Course::course_completed()
S
58 4 15
myCRED_LifterLMS_Course::course_track_completed()
S
58 4 15
myCRED_LifterLMS_Course::user_enrolled_in_course()
S
58 4 15
myCRED_LifterLMS_Membership::user_added_to_membership_level()
S
58 4 15
myCRED_LifterLMS_Quiz::quiz_passed()
S
58 4 15
myCRED_LifterLMS_Quiz::quiz_completed()
S
58 4 15
myCRED_LifterLMS_Quiz::quiz_failed()
S
58 4 15
myCRED_LifterLMS_Endpoint::array_insert_after()
S
61 4 13
myCRED_LifterLMS_Endpoint::dashboard_title_my_balance()
S
61 4 11
myCRED_LifterLMS_Course::run()
S
62 4 11
myCRED_LifterLMS_Quiz::run()
S
62 4 11
myCRED_LifterLMS_Membership::preferences()
S
45 1 52
myCRED_LifterLMS_Achievement::preferences()
S
45 1 52
myCRED_LifterLMS_Section::preferences()
S
45 1 52
myCRED_LifterLMS_Certificate::preferences()
S
45 1 52
myCRED_LifterLMS_Lesson::preferences()
S
45 1 52
myCRED_LifterLMS_Plan::preferences()
S
45 1 52
myCRED_LifterLMS_Notification::add_mycred_notices()
S
56 3 19
myCRED_LifterLMS_Membership::sanitise_preferences()
S
64 4 9
myCRED_LifterLMS_Section::sanitise_preferences()
S
64 4 9
myCRED_LifterLMS_Certificate::sanitise_preferences()
S
64 4 9
myCRED_LifterLMS_Achievement::sanitise_preferences()
S
64 4 9
LLMS_Payment_Gateway_Mycred::mycred_before_view_order_table()
S
63 4 9
myCRED_LifterLMS::define()
S
69 4 6
myCRED_LifterLMS_Lesson::sanitise_preferences()
S
64 4 9
myCRED_LifterLMS_Plan::sanitise_preferences()
S
64 4 9
myCRED_LifterLMS::register_hooks()
S
46 1 43
myCRED_LifterLMS_Plan::access_plan_purchased()
S
60 3 13
LLMS_Payment_Gateway_Mycred::record_refund()
S
55 2 19
myCRED_LifterLMS::mycred_lifterlms_admin_styles_scripts()
S
55 2 18
LLMS_Payment_Gateway_Mycred::__construct()
S
57 2 15
LLMS_Payment_Gateway_Mycred::mycred_add_settings_fields()
S
64 3 10
LLMS_Payment_Gateway_Mycred::configure_variables()
S
51 1 28
LLMS_Payment_Gateway_Mycred::handle_payment_source_switch()
S
62 2 11
myCRED_LifterLMS_Course::__construct()
S
55 1 23
myCRED_LifterLMS_Quiz::__construct()
S
55 1 23
myCRED_LifterLMS::setup_references()
S
58 1 15
LLMS_Payment_Gateway_Mycred::get()
S
71 2 6
myCRED_LifterLMS_Plan::run()
S
71 2 5
myCRED_LifterLMS_Membership::run()
S
71 2 5
LLMS_Payment_Gateway_Mycred::get_price()
S
67 2 7
myCRED_LifterLMS::file()
S
70 2 6
myCRED_LifterLMS_Certificate::run()
S
71 2 5
myCRED_LifterLMS_Lesson::run()
S
71 2 5
LLMS_Notification_Controller_Mycred_Points::get_subscriber()
S
65 2 10
LLMS_Payment_Gateway_Mycred::is_enabled()
S
78 2 3
myCRED_LifterLMS_Section::run()
S
71 2 5
LLMS_Notification_Controller_Mycred_Points::set_subscriber_options()
S
66 2 9
LLMS_Payment_Gateway_Mycred::get_payment_instructions()
S
64 2 9
myCRED_LifterLMS_Endpoint::render_my_points_endpoint()
S
74 2 5
myCRED_LifterLMS::instance()
S
72 2 6
myCRED_LifterLMS_Notification::instance()
S
72 2 6
myCRED_LifterLMS_Achievement::run()
S
71 2 5
myCRED_LifterLMS::includes()
S
61 1 13
LLMS_Payment_Gateway_Mycred::complete_transaction()
S
63 1 11
myCRED_LifterLMS_Membership::__construct()
S
64 1 10
myCRED_LifterLMS::__clone()
S
90 1 1
mycred_lifterlms_plugin()
S
82 1 3
LLMS_Notification_View_Mycred_Points::set_title()
S
79 1 3
myCRED_LifterLMS::display_activation_notice()
S
65 1 10
myCRED_LifterLMS_Notification::__construct()
S
83 1 3
LLMS_Notification_View_Mycred_Points::set_subject()
S
82 1 3
LLMS_Notification_View_Mycred_Points::set_icon()
S
82 1 3
myCRED_LifterLMS_Endpoint::add_endpoint()
S
63 1 10
LLMS_Notification_View_Mycred_Points::set_merge_codes()
S
64 1 10
myCRED_LifterLMS_Notification::user_gets_notification()
S
74 1 4
myCRED_LifterLMS::mycred_inactive_admin_notice()
S
71 1 5
myCRED_LifterLMS_Notification::run()
S
71 1 5
LLMS_Notification_Controller_Mycred_Points::get_title()
S
79 1 3
LLMS_Notification_View_Mycred_Points::set_body()
S
70 1 9
LLMS_Notification_Controller_Mycred_Points::set_supported_types()
S
73 1 5
myCRED_LifterLMS_Endpoint::__construct()
S
74 1 4
myCRED_LifterLMS::define_constants()
S
66 1 8
myCRED_LifterLMS::enqueue_lifterlms_front_scripts()
S
73 1 4
myCRED_LifterLMS_Certificate::__construct()
S
64 1 10
LLMS_Notification_Controller_Mycred_Points::action_callback()
S
72 1 5
myCRED_LifterLMS_Section::__construct()
S
64 1 10
myCRED_LifterLMS_Plan::__construct()
S
64 1 10
LLMS_Payment_Gateway_Mycred::mycred_add_new_llms_order_status()
S
68 1 7
myCRED_LifterLMS::__wakeup()
S
90 1 1
myCRED_LifterLMS_Notification::trigger_llms_notification()
S
75 1 4
myCRED_LifterLMS::get_gateway()
S
80 1 3
myCRED_LifterLMS_Lesson::__construct()
S
64 1 10
myCRED_LifterLMS_Achievement::__construct()
S
64 1 10
LLMS_Notification_View_Mycred_Points::set_supported_fields()
S
67 1 9
myCRED_LifterLMS::add_core_mycred_gateways()
S
77 1 4
LLMS_Notification_View_Mycred_Points::set_footer()
S
82 1 3