WP_Theme_JSON_Gutenberg D

Total Complexity 526
Dependencies 2
Dependents 13
Total lines 3,738
Lines of code 1,767
Logical lines of code 1,040
Comment lines 1,282
Methods 61
Properties 2

Methods 61

Method Rating Maintainability Complexity Lines of code
get_layout_styles()
D
25
47 148
set_spacing_sizes()
D
32 33 91
get_data()
C
35 25 86
get_styles_for_block()
B
35 22 81
get_from_editor_settings()
B
38 22 69
remove_insecure_properties()
B
38 20 72
get_stylesheet()
B
36 19 82
sanitize()
B
38 19 71
compute_style_properties()
B
42 20 49
get_feature_declarations_for_node()
B
43 17 50
get_block_nodes()
A
41 15 60
merge()
A
42 15 52
remove_insecure_settings()
A
44 14 45
update_separator_declarations()
A
52 13 24
get_style_nodes()
A
46 11 39
get_root_layout_rules()
A
45 10 38
__construct()
A
47 10 33
get_property_value()
A
49 10 32
get_blocks_metadata()
A
46 9 36
convert_variables_to_value()
A
49 8 32
maybe_opt_in_into_settings()
A
57 8 17
remove_keys_not_in_schema()
A
56 8 17
compute_preset_classes()
S
50 7 29
get_settings_values_by_slug()
S
51 7 27
scope_selector()
S
54 7 20
get_custom_templates()
S
58 7 15
get_template_parts()
S
58 7 15
get_default_slugs()
S
54 6 22
get_svg_filters()
S
54 6 21
get_setting_nodes()
S
53 5 24
process_blocks_custom_css()
S
53 5 22
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
get_block_element_selectors()
S
57 4 16
compute_preset_vars()
S
58 4 16
remove_insecure_styles()
S
58 4 15
get_name_from_defaults()
S
60 4 14
get_custom_css()
S
59 4 13
get_block_selectors()
S
60 4 13
get_metadata_boolean()
S
62 4 12
get_preset_classes()
S
61 3 12
prepend_to_selector()
S
62 3 11
append_to_selector()
S
62 3 11
get_block_classes()
S
64 3 10
convert_custom_properties()
S
59 2 15
get_patterns()
S
70 3 6
do_opt_in_into_settings()
S
66 3 8
compute_theme_vars()
S
61 2 12
to_ruleset()
S
61 2 12
resolve_variables()
S
57 1 17
get_settings()
S
69 2 7
get_element_class_name()
S
69 2 7
get_raw_data()
S
82 1 3
is_safe_css_declaration()
S
71 1 5
get_styles_block_nodes()
S
80 1 3
replace_slug_in_string()
S
78 1 3