SiteOrigin_Widget D

Total Complexity 235
Dependencies 7
Dependents 10
Total lines 1,467
Lines of code 867
Logical lines of code 455
Comment lines 396
Methods 56
Properties 11

Methods 56

Method Rating Maintainability Complexity Lines of code
get_instance_css()
B
38 21 58
generate_and_enqueue_instance_styles()
B
42 17 47
add_defaults()
B
45 17 41
form()
A
38 11 76
widget()
A
37 11 71
update()
A
47 11 36
get_less_import_contents()
A
49 8 30
save_css()
A
49 8 30
dynamic_preset_add_state_handler()
A
49 8 30
is_preview()
S
60 8 11
enqueue_registered_scripts()
S
55 7 19
enqueue_registered_styles()
S
55 7 19
display_teaser_message()
S
51 6 27
enqueue_scripts()
S
45 5 41
is_block_editor_page()
S
61 7 11
so_get_field_id()
S
54 5 21
delete_css()
S
55 5 17
so_get_field_name()
S
55 4 19
get_style_hash()
S
59 4 13
sub_widget()
S
61 4 13
form_options()
S
61 3 12
dynamic_preset_extract_fields()
S
62 3 12
dynamic_preset_state_handler()
S
58 2 18
__construct()
S
56 2 18
less_widget_inject()
S
64 3 8
register_frontend_scripts()
S
68 3 7
enqueue_field_scripts()
S
63 3 10
get_global_settings()
S
63 3 9
get_form()
S
65 3 8
register_frontend_styles()
S
68 3 7
get_wrapper_data()
S
60 2 13
footer_admin_templates()
S
56 1 26
is_customize_preview()
S
75 2 4
display_siteorigin_premium_teaser()
S
75 2 4
get_widget_form()
S
78 2 3
get_cached_widget_form()
S
65 2 9
show_preview_button()
S
71 2 5
parse_markdown()
S
71 2 5
save_global_settings()
S
68 1 7
scripts_loading_message()
S
73 1 6
has_form()
S
78 1 3
enqueue_admin_scripts()
S
100 1 1
enqueue_frontend_scripts()
S
73 1 5
initialize()
S
100 1 2
get_template_variables()
S
82 1 3
get_template_name()
S
83 1 3
get_javascript_variables()
S
100 1 2
modify_instance()
S
83 1 3
clear_file_cache()
S
79 1 3
modify_form()
S
83 1 3
get_stored_instance()
S
78 1 3
modify_stored_instance()
S
83 1 3
get_less_variables()
S
83 1 3
get_style_name()
S
83 1 3
get_template_dir()
S
83 1 3
modify_child_widget_form()
S
83 1 3