WP_Theme_JSON_Gutenberg D

Total Complexity 609
Dependencies 3
Dependents 11
Total lines 4,394
Lines of code 2,015
Logical lines of code 1,185
Comment lines 1,567
Methods 72
Properties 2

Methods 72

Method Rating Maintainability Complexity Lines of code
get_layout_styles()
D
23
55 158
get_styles_for_block()
D
31 30 107
compute_spacing_sizes()
C
34 29 81
remove_insecure_properties()
C
34 26 88
get_data()
C
35 25 86
compute_style_properties()
B
38 23 62
get_stylesheet()
B
35 21 85
sanitize()
B
37 20 77
merge()
B
38 17 67
get_feature_declarations_for_node()
B
43 17 50
get_block_nodes()
B
40 16 62
get_blocks_metadata()
A
41 15 55
set_spacing_sizes()
A
48 16 29
get_from_editor_settings()
A
44 14 45
remove_insecure_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_root_layout_rules()
A
47 10 33
get_property_value()
A
49 10 32
convert_variables_to_value()
A
48 9 35
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_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
unwrap_shared_block_style_variations()
S
55 6 19
scope_style_node_selectors()
S
57 6 17
get_setting_nodes()
S
53 5 24
process_blocks_custom_css()
S
52 5 23
get_block_custom_css_nodes()
S
55 5 19
should_override_preset()
S
57 5 17
get_settings_slugs()
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
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_block_style_variation_selector()
S
55 3 20
get_preset_classes()
S
61 3 12
append_to_selector()
S
62 3 11
prepend_to_selector()
S
62 3 11
get_patterns()
S
70 3 6
convert_custom_properties()
S
59 2 15
get_valid_block_style_variations()
S
63 3 10
do_opt_in_into_settings()
S
66 3 8
get_block_classes()
S
64 3 10
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_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
get_block_custom_css()
S
75 1 4