Sensei_Quiz D

Total Complexity 357
Dependencies 12
Dependents 7
Total lines 2,563
Lines of code 1,270
Logical lines of code 695
Comment lines 872
Methods 67
Properties 4

Methods 67

Method Rating Maintainability Complexity Lines of code
action_buttons()
B
37 14 88
submit_answers_for_grading()
B
40 16 56
reset_user_lesson_data()
A
40 15 59
maybe_get_button_html_for_quiz_footer()
A
47 13 32
get_user_answers_feedback()
A
47 12 34
get_user_question_feedback()
A
51 12 23
get_user_answers()
A
47 11 34
get_user_grades()
A
48 11 33
maybe_create_quiz_progress()
A
52 11 25
save_user_answers_feedback()
A
48 10 32
set_user_grades()
A
48 10 32
prepare_form_submitted_answers()
A
50 9 26
save_user_answers()
A
50 9 26
start_quiz_questions_loop()
A
45 8 40
get_user_question_answer()
A
56 9 17
is_quiz_awaiting_grade_for_user()
A
56 8 17
set_questions()
S
50 7 27
user_quiz_submit_listener()
S
51 7 26
page_change_listener()
S
51 7 26
user_save_quiz_answers_listener()
S
52 7 23
is_quiz_completed()
S
57 7 16
get_user_question_grade()
S
61 7 11
load_global_quiz_data()
S
48 5 34
set_quiz_author_on_create()
S
56 6 19
delete_quiz_question_meta()
S
56 6 18
is_quiz_available()
S
57 6 17
filter_out_incomplete_questions()
S
58 6 15
update_after_lesson_change()
S
54 5 21
the_quiz_progress_bar()
S
54 5 19
is_multiple_choice_question_complete()
S
58 5 15
quiz_has_no_questions()
S
59 5 13
get_lesson_id()
S
61 5 12
update_quiz_author()
S
57 4 18
reset_button_click_listener()
S
58 4 15
is_block_based_editor_enabled()
S
63 5 9
get_button_inline_styles()
S
60 4 13
get_question_inner_block()
S
61 4 12
get_questions()
S
52 3 24
__construct()
S
49 2 31
single_quiz_title()
S
59 3 13
parse_form_answers()
S
62 3 12
get_user_quiz_grade()
S
63 3 11
get_primary_button_html()
S
55 2 22
get_allowed_html_for_modal_form()
S
51 1 33
redirect_if_lesson_is_protected()
S
65 3 10
add_quiz_blocks_class()
S
70 3 6
is_gap_fill_question_complete()
S
66 3 7
maybe_delete_quiz()
S
68 3 7
is_uploaded_file_valid()
S
65 3 8
enqueue_styles()
S
66 3 9
the_user_status_message()
S
61 2 11
get_option()
S
65 2 9
is_reset_allowed()
S
66 2 8
merge_quiz_answers_with_questions_asked()
S
68 2 7
disable_block_editor_functions_when_question_types_are_registered()
S
79 2 3
get_incorrect_answer_feedback()
S
74 2 4
get_correct_answer_feedback()
S
74 2 4
the_quiz_pagination()
S
64 2 9
output_quiz_hidden_fields()
S
68 2 8
is_pass_required()
S
66 2 8
the_title()
S
62 1 14
get_lesson_ids()
S
63 1 11
stop_quiz_questions_loop()
S
62 1 11
replace_pagination_links_with_buttons()
S
71 1 7
has_sensei_blocks()
S
76 1 4
get_incorrect_answer_feedback_block()
S
78 1 3
get_correct_answer_feedback_block()
S
78 1 3