SiteOrigin_Widget D

Total Complexity 236
Dependencies 8
Dependents 10
Total lines 1,505
Lines of code 910
Logical lines of code 478
Comment lines 364
Methods 57
Properties 11

Methods 57

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