WP_Theme_JSON_Gutenberg D

Total Complexity 639
Dependencies 3
Dependents 9
Total lines 4,578
Lines of code 2,112
Logical lines of code 1,243
Comment lines 1,633
Methods 74
Properties 2

Methods 74

Method Rating Maintainability Complexity Lines of code
get_layout_styles()
D
23
55 158
get_styles_for_block()
D
29 35 115
compute_spacing_sizes()
C
34 29 81
compute_style_properties()
C
36 29 73
get_data()
C
35 25 86
get_block_nodes()
C
35 23 95
get_stylesheet()
B
35 21 85
remove_insecure_properties()
B
36 21 77
sanitize()
B
37 20 77
merge()
B
36 19 81
get_feature_declarations_for_node()
B
43 17 50
get_blocks_metadata()
A
41 15 55
set_spacing_sizes()
A
48 16 29
remove_insecure_settings()
A
44 14 45
get_from_editor_settings()
A
44 14 45
remove_keys_not_in_schema()
A
49 13 31
update_separator_declarations()
A
52 13 24
__construct()
A
44 11 44
get_style_nodes()
A
46 11 39
get_property_value()
A
48 11 33
get_root_layout_rules()
A
47 10 33
convert_variables_to_value()
A
48 9 35
process_blocks_custom_css()
A
47 9 33
scope_selector()
A
53 9 23
compute_preset_classes()
A
49 8 29
maybe_opt_in_into_settings()
A
57 8 17
get_settings_values_by_slug()
S
51 7 27
get_template_parts()
S
58 7 15
get_custom_templates()
S
58 7 15
get_default_slugs()
S
54 6 22
get_svg_filters()
S
54 6 21
remove_insecure_element_styles()
S
56 6 19
unwrap_shared_block_style_variations()
S
55 6 19
scope_style_node_selectors()
S
57 6 17
get_setting_nodes()
S
53 5 24
get_block_custom_css_nodes()
S
55 5 19
get_settings_slugs()
S
57 5 17
should_override_preset()
S
57 5 17
remove_indirect_properties()
S
60 5 13
filter_slugs()
S
61 5 12
resolve_custom_css_format()
S
61 5 11
flatten_tree()
S
55 4 20
get_css_variables()
S
56 4 17
compute_preset_vars()
S
58 4 16
get_block_element_selectors()
S
57 4 16
remove_insecure_styles()
S
58 4 15
merge_spacing_sizes()
S
60 4 14
get_name_from_defaults()
S
60 4 14
get_block_selectors()
S
60 4 13
get_metadata_boolean()
S
62 4 12
get_valid_block_style_variations()
S
62 4 11
get_block_style_variation_selector()
S
55 3 20
get_preset_classes()
S
61 3 12
remove_insecure_inner_block_styles()
S
62 3 11
prepend_to_selector()
S
62 3 11
append_to_selector()
S
62 3 11
convert_custom_properties()
S
59 2 15
get_block_classes()
S
64 3 10
get_patterns()
S
70 3 6
do_opt_in_into_settings()
S
66 3 8
to_ruleset()
S
61 2 12
compute_theme_vars()
S
61 2 12
resolve_variables()
S
57 1 17
get_element_class_name()
S
69 2 7
get_base_custom_css()
S
73 2 4
get_custom_css()
S
64 2 9
get_settings()
S
69 2 7
is_assoc()
S
69 2 6
schema_in_root_and_per_origin()
S
69 2 7
get_styles_block_nodes()
S
80 1 3
get_raw_data()
S
82 1 3
is_safe_css_declaration()
S
71 1 5
replace_slug_in_string()
S
78 1 3
get_block_custom_css()
S
75 1 4