Mega_Menu_Widget_Manager D

Total Complexity 156
Dependencies 1
Dependents 3
Total lines 1,380
Lines of code 689
Logical lines of code 425
Comment lines 305
Methods 46
Properties 0

Methods 46

Method Rating Maintainability Complexity Lines of code
populate_saved_grid_data()
B
42 16 54
populate_grid_menu_item_titles()
A
49 9 30
ajax_show_menu_item_form()
S
41 5 56
get_second_level_menu_items()
S
51 7 25
get_widgets_for_menu_id()
S
54 7 19
persist_mega_menu_widget_settings()
S
61 7 12
reorder_items()
S
55 6 19
ajax_save_menu_item()
S
55 6 17
get_widgets_and_menu_items_for_menu_id()
S
54 5 20
ajax_save_grid_data()
S
54 5 20
ajax_reorder_items()
S
56 5 17
show_widget()
S
49 4 30
ajax_add_widget()
S
56 4 17
add_widget()
S
51 3 26
show_widget_form()
S
50 2 32
get_available_widgets()
S
58 3 16
ajax_save_widget()
S
58 3 15
ajax_update_menu_item_columns()
S
58 3 15
ajax_update_widget_columns()
S
58 3 15
ajax_delete_widget()
S
59 3 14
ajax_show_widget_form()
S
61 3 12
remove_widget_from_sidebar()
S
63 3 11
sort_by_order()
S
70 3 6
clear_caches()
S
69 3 8
get_title_for_widget_id()
S
68 3 7
get_id_base_for_widget_id()
S
65 3 9
add_widget_instance()
S
61 2 13
update_menu_item_columns()
S
63 2 11
remove_widget_instance()
S
62 2 11
get_grid_widgets_and_menu_items_for_menu_id()
S
62 2 11
__construct()
S
57 1 16
get_mega_menu_sidebar_widgets()
S
69 2 7
send_json_success()
S
72 2 6
update_menu_item_order()
S
64 2 9
get_name_for_widget_id()
S
67 2 8
save_widget()
S
64 2 10
get_widget_class()
S
69 2 7
get_settings_for_widget_id()
S
65 2 9
send_json_error()
S
72 2 6
update_widget_order()
S
65 1 8
update_widget_columns()
S
64 1 9
delete_widget()
S
71 1 6
add_widget_to_sidebar()
S
67 1 8
get_widget_number_for_widget_id()
S
75 1 4
set_mega_menu_sidebar_widgets()
S
73 1 5
sort_by_text()
S
79 1 3