Sensei_Quiz D

Total Complexity 363
Dependencies 12
Dependents 6
Total lines 2,499
Lines of code 1,237
Logical lines of code 694
Comment lines 828
Methods 65
Properties 4

Methods 65

Method Rating Maintainability Complexity Lines of code
reset_user_lesson_data()
B
40 16 61
submit_answers_for_grading()
B
40 16 56
action_buttons()
B
38 14 85
get_user_question_feedback()
A
46 16 35
get_user_question_answer()
A
48 14 32
maybe_get_button_html_for_quiz_footer()
A
47 13 32
get_user_answers()
A
47 11 34
get_user_grades()
A
48 11 33
get_user_question_grade()
A
50 11 27
maybe_create_quiz_progress()
A
52 11 25
save_user_answers_feedback()
A
48 10 32
set_user_grades()
A
48 10 32
get_user_answers_feedback()
A
52 10 23
save_user_answers()
A
50 9 26
prepare_form_submitted_answers()
A
50 9 26
start_quiz_questions_loop()
A
45 8 40
set_questions()
S
50 7 27
page_change_listener()
S
51 7 26
user_quiz_submit_listener()
S
51 7 26
user_save_quiz_answers_listener()
S
52 7 23
is_quiz_completed()
S
57 7 16
is_quiz_awaiting_grade_for_user()
S
59 7 13
set_quiz_author_on_create()
S
56 6 19
load_global_quiz_data()
S
48 5 34
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
is_block_based_editor_enabled()
S
63 5 9
reset_button_click_listener()
S
58 4 15
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 30
single_quiz_title()
S
59 3 13
parse_form_answers()
S
62 3 12
get_user_quiz_grade()
S
63 3 11
redirect_if_lesson_is_protected()
S
65 3 10
is_uploaded_file_valid()
S
65 3 8
add_quiz_blocks_class()
S
70 3 6
is_gap_fill_question_complete()
S
66 3 7
maybe_delete_quiz()
S
68 3 7
the_user_status_message()
S
61 2 11
get_option()
S
65 2 9
is_pass_required()
S
66 2 8
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
output_quiz_hidden_fields()
S
68 2 8
get_incorrect_answer_feedback()
S
74 2 4
get_correct_answer_feedback()
S
74 2 4
the_quiz_pagination()
S
64 2 9
the_title()
S
62 1 14
stop_quiz_questions_loop()
S
62 1 11
get_lesson_ids()
S
63 1 11
get_correct_answer_feedback_block()
S
78 1 3
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_primary_button_anchor_html()
S
72 1 5