WP_Duotone_Gutenberg C

Total Complexity 123
Dependencies 5
Dependents 5
Total lines 1,070
Lines of code 516
Logical lines of code 257
Comment lines 440
Methods 38
Properties 5

Methods 38

Method Rating Maintainability Complexity Lines of code
render_duotone_support()
A
43 12 47
colord_parse_rgba_string()
A
48 12 33
colord_parse_hsla_string()
A
49 7 31
colord_parse_hex()
S
50 7 28
get_filter_svg()
S
42 4 65
set_global_style_block_names()
S
55 6 19
get_selector()
S
56 6 17
restore_image_outer_container()
S
52 5 25
register_duotone_support()
S
58 5 16
output_footer_assets()
S
58 5 16
add_editor_settings()
S
57 3 18
colord_hsla_to_hsva()
S
59 3 13
get_global_styles_presets()
S
60 3 12
colord_clamp()
S
78 3 3
set_global_styles_presets()
S
63 3 10
migrate_experimental_duotone_support_flag()
S
66 3 7
colord_clamp_hue()
S
74 3 4
get_filter_css_property_value_from_preset()
S
65 3 8
colord_parse()
S
65 3 10
enqueue_block_css()
S
59 2 14
colord_parse_hue()
S
61 2 12
enqueue_global_styles_preset()
S
61 2 12
colord_hsva_to_rgba()
S
56 1 17
get_svg_definitions()
S
66 2 8
output_global_styles()
S
72 2 5
get_filter_id_from_preset()
S
66 2 8
get_slug_from_attribute()
S
73 2 4
output_block_styles()
S
65 2 10
get_filter_svg_from_preset()
S
71 1 5
colord_clamp_rgba()
S
67 1 7
colord_clamp_hsla()
S
67 1 7
get_filter_url()
S
80 1 3
get_css_var()
S
75 1 4
is_preset()
S
72 1 5
enqueue_custom_filter()
S
74 1 4
get_css_custom_property_name()
S
80 1 3
get_filter_id()
S
80 1 3
colord_hsla_to_rgba()
S
79 1 3