SiteOrigin_Widgets_Bundle_Widget_Block C

Total Complexity 121
Dependencies 4
Dependents 1
Total lines 843
Lines of code 533
Logical lines of code 231
Comment lines 186
Methods 23
Properties 4

Methods 23

Method Rating Maintainability Complexity Lines of code
get_widget_preview()
B
38 18 70
prepare_widget_data()
B
38 17 65
render_widget_block()
B
37 16 72
enqueue_widget_block_editor_assets()
A
39 7 67
get_block_widget()
S
51 7 29
sanitize_blocks()
S
55 7 20
load_editor_scripts()
S
51 6 29
sanitize_block()
S
57 5 17
block_migration_consent()
S
59 4 16
server_side_validation()
S
60 4 14
find_widget_class_by_block_name()
S
61 4 12
register_widget_block()
S
56 3 19
has_valid_widget_class()
S
64 4 10
legacy_render_widget_block()
S
59 3 15
setup_rest_validation()
S
64 3 9
return_invalid_widget_class_notice()
S
60 2 14
get_widget_icon()
S
61 2 13
wpml_render_check()
S
62 2 13
single()
S
75 2 4
__construct()
S
65 2 9
setup_block_category()
S
68 1 7
keywords_to_array()
S
70 1 6
add_widget_id()
S
82 1 3