Code Analysis: LearnPress - Course Wishlist 4.0.2

Function Rating Maintainability Complexity Lines of code
LP_Addon_Wishlist::toggle_course_wishlist()
A
43 14 45
LP_Jwt_Wishlist_V1_Controller::add_remove_to_wishlist()
A
45 10 40
LP_Jwt_Wishlist_V1_Controller::get_course_wishlist()
S
49 6 30
LP_Addon_Wishlist::wishlist_button()
S
54 6 20
learn_press_update_wish_list()
S
60 5 14
LP_Jwt_Wishlist_V1_Controller::get_wishlists()
S
54 4 20
LP_Addon_Wishlist_Preload::__construct()
S
53 3 23
LP_Addon_Wishlist::get_wishlist_courses()
S
54 3 21
learn_press_course_wishlist_loop_stars()
S
62 3 12
LP_Jwt_Wishlist_V1_Controller::register_routes()
S
48 1 42
LP_Jwt_Wishlist_V1_Controller::rest_do_course_request()
S
62 3 11
learn_press_user_wishlist_has_course()
S
64 3 10
learn_press_buddypress_is_active()
S
69 3 6
learn_press_wishlist_tab()
S
61 2 12
LP_Addon_Wishlist::_get_state_message()
S
70 2 6
LP_Addon_Wishlist::_get_state_title()
S
70 2 6
LP_Wishlist_Rest_API::instance()
S
72 2 6
learn_press_bp_courses_nav_wishlist()
S
60 1 13
learn_press_bp_courses_bar_wishlist()
S
62 1 11
learn_press_course_wishlist_template()
S
80 1 3
LP_Addon_Wishlist::wishlist_tab()
S
65 1 9
learn_press_bp_courses_wishlist()
S
72 1 5
LP_Addon_Wishlist_Preload::load()
S
79 1 3
LP_Addon_Wishlist::_define_constants()
S
79 1 5
LP_Wishlist_Rest_API::rest_api_init()
S
76 1 4
LP_Addon_Wishlist::__construct()
S
71 1 5
LP_Addon_Wishlist_Preload::show_note_errors_require_lp()
S
69 1 7
LP_Wishlist_Rest_API::__construct()
S
79 1 3
learn_press_bp_courses_wishlist_content()
S
75 1 4
LP_Addon_Wishlist::_enqueue_assets()
S
73 1 4
LP_Addon_Wishlist::profile_tab_endpoints()
S
76 1 4
LP_Addon_Wishlist::_includes()
S
74 1 5
learn_press_wishlist_get_template()
S
78 1 3
LP_Addon_Wishlist::_init_hooks()
S
70 1 6
learn_press_bp_courses_wishlist_title()
S
80 1 3
learn_press_user_wishlist_tab_content()
S
70 1 6
LP_Addon_Wishlist::get_tab_slug()
S
79 1 3
learn_press_wishlist_loop_item_title()
S
82 1 3
LP_Addon_Wishlist::wishlist_tab_content()
S
67 1 9
LP_Addon_Wishlist::rewrite_endpoint()
S
71 1 5