Code Analysis: SimpleTOC - Table of Contents Block 6.4.3

Function Rating Maintainability Complexity Lines of code
render_callback_simpletoc()
B
46 21 27
filter_headings_recursive()
A
47 16 35
generate_toc()
A
41 14 48
add_accordion_start()
A
50 10 24
add_ids_to_blocks_recursive()
A
59 10 12
close_list()
A
52 9 26
simpletoc_add_pagenumber()
A
54 9 19
simpletoc_register_settings()
A
42 6 63
add_anchor_attribute()
S
53 4 21
find_min_depth()
S
59 4 15
should_exclude_headline()
S
64 5 8
add_hidden_markup_start()
S
60 4 13
get_page_number_from_headline()
S
60 3 12
simpletoc_settings_page()
S
60 2 17
open_list()
S
65 3 9
add_smooth()
S
71 3 5
add_accordion_end()
S
68 3 7
simpletoc_accordion_enabled_callback()
S
65 2 8
simpletoc_wrapper_enabled_callback()
S
63 2 10
enqueue_accordion_frontend()
S
61 1 15
simpletoc_plugin_meta()
S
65 2 8
register_simpletoc_block()
S
64 2 9
get_empty_blocks_message()
S
66 2 8
add_hidden_markup_end()
S
69 2 7
extract_id()
S
66 2 8
simpletoc_add_ids_to_content()
S
71 1 6
simpletoc_sanitize_string()
S
66 1 8
simpletoc_smooth_enabled_callback()
S
71 1 5
simpletoc_add_settings_page()
S
67 1 9
simpletoc_wrapper_section_callback()
S
66 1 8
simpletoc_absolute_urls_enabled_callback()
S
71 1 5
simpletoc_autoupdate_enabled_callback()
S
71 1 5