Code Analysis: Lazy Blocks 2.3.0

Function Rating Maintainability Complexity Lines of code
LazyBlocks_Icons::get_all()
D
5
1 936
LazyBlocks_Blocks::prepare_handlebars()
D
25
44 158
LazyBlocks_Blocks::render_callback()
C
35 27 76
LazyBlocks_Blocks::get_blocks()
B
32 20 103
LazyBlocks_Tools::import_json()
B
39 22 58
LazyBlocks_Blocks::save_meta_boxes()
B
42 22 51
get_lzb_meta()
B
43 22 44
LazyBlocks_Admin::in_admin_header()
B
40 17 58
LazyBlocks_Blocks::prepare_block_attributes()
A
41 13 58
LazyBlocks_Tools::maybe_export_json()
A
49 13 30
LazyBlocks_Blocks::manage_posts_custom_column()
A
47 12 34
LazyBlocks_Blocks::register_block_meta()
A
51 12 26
LazyBlocks_Tools::duplicate_block()
A
41 10 49
LazyBlocks_Rest::get_block()
A
48 10 31
LazyBlocks_Control_Radio::filter_lzb_block_render_attributes()
A
54 10 21
LazyBlocks_Dummy::add()
A
35 4 108
LazyBlocks_Tools::import_block()
A
48 9 31
LazyBlocks_Control_Select::get_new_attribute_value()
A
53 9 22
LazyBlocks_Control_Radio::filter_get_lzb_meta_json()
A
56 9 19
LazyBlocks_Control_Gallery::filter_lzb_block_render_attributes()
A
55 9 18
LazyBlocks_Templates::add_template_to_posts()
A
51 8 28
LazyBlocks_Tools::export_json()
A
51 8 26
LazyBlocks_Control_Select::filter_lzb_block_render_attributes()
A
57 8 16
LazyBlocks_Tools::import_template()
S
50 7 27
LazyBlocks_Blocks::block_categories()
S
53 7 24
LazyBlocks_Tools::admin_enqueue_scripts()
S
47 6 37
LazyBlocks_Blocks::get_meta_value()
S
55 7 20
LazyBlocks_Blocks::add_block()
S
58 7 16
LazyBlocks_Control_Select::filter_get_lzb_meta_json()
S
60 7 14
LazyBlocks_Control_Toggle::filter_lzb_prepare_block_attribute()
S
59 7 14
LazyBlocks_Control_Checkbox::filter_lzb_prepare_block_attribute()
S
59 7 14
LazyBlocks_Tools::maybe_duplicate_block()
S
58 7 14
LazyBlocks_Control_Gallery::maybe_update_image_data()
S
50 6 27
LazyBlocks_Control_Image::maybe_update_image_data()
S
50 6 27
LazyBlocks_Control_Repeater::filter_lzb_block_render_attributes()
S
61 7 11
LazyBlocks_Control_File::filter_lzb_block_render_attributes()
S
61 7 11
LazyBlocks_Control_Image::filter_lzb_block_render_attributes()
S
61 7 11
LazyBlocks_Templates::get_templates()
S
51 6 25
LazyBlocks_Controls::include_controls()
S
47 5 38
LazyBlocks_Blocks::get_blocks_categories()
S
54 6 23
LazyBlocks_Migration::v_2_1_0()
S
54 6 20
LazyBlocks_Control_Select::filter_lzb_prepare_block_attribute()
S
57 6 16
LazyBlocks_Rest::get_block_permission()
S
57 6 15
LazyBlocks_Rest::get_block_data_permission()
S
57 6 15
LazyBlocks_Rest::update_block_data()
S
59 6 13
LazyBlocks_Control_InnerBlocks::filter_lzb_block_render_attributes()
S
61 6 11
LazyBlocks_Control_Repeater::filter_lzb_prepare_block_attribute()
S
57 5 16
LazyBlocks_Control_Toggle::filter_get_lzb_meta_default()
S
64 6 9
LazyBlocks_Control_Checkbox::filter_get_lzb_meta_default()
S
64 6 9
LazyBlocks_Control_Radio::get_choice_data_by_value()
S
60 5 14
LazyBlocks_Control_Select::get_choice_data_by_value()
S
60 5 14
LazyBlocks_Blocks::sanitize_array()
S
60 5 14
LazyBlocks_Rest::get_block_data()
S
58 5 14
LazyBlocks_Control_Gallery::filter_get_lzb_meta_json()
S
59 5 14
LazyBlocks_Blocks::post_row_actions()
S
47 3 42
LazyBlocks_Templates::admin_enqueue_scripts()
S
52 4 24
LazyBlocks_Blocks::include_template()
S
59 4 13
LazyBlocks_Migration::init()
S
61 4 12
LazyBlocks_Admin::admin_footer_text()
S
62 4 10
LazyBlocks_Rest::get_post_types()
S
66 4 7
LazyBlocks_Templates::admin_list_redirect()
S
65 4 9
LazyBlocks_Templates::register_post_type()
S
47 1 42
LazyBlocks_Blocks::register_post_type()
S
46 1 42
LazyBlocks_Tools::admin_notices()
S
64 3 11
LazyBlocks_Blocks::template_exists()
S
61 3 11
LazyBlocks_Admin::constructor_enqueue_scripts()
S
52 2 25
LazyBlocks_Rest::register_routes()
S
49 1 39
LazyBlocks_Blocks::__construct()
S
55 2 19
LazyBlocks_Blocks::add_role_caps()
S
57 2 19
LazyBlocks_Tools::clean_block_to_export()
S
65 3 9
LazyBlocks_Blocks::register_block()
S
51 1 30
LazyBlocks_Control_Repeater::filter_get_lzb_meta_json()
S
69 3 6
LazyBlocks_Force_Gutenberg::classic_plugin_force_gutenberg_3()
S
71 3 6
LazyBlocks_Force_Gutenberg::user_can_richedit_force()
S
69 3 7
LazyBlocks_Control_File::filter_get_lzb_meta_json()
S
69 3 6
LazyBlocks_Blocks::get_block()
S
65 3 9
LazyBlocks_Control_Image::filter_get_lzb_meta_json()
S
69 3 6
LazyBlocks_Control_Repeater::__construct()
S
52 1 25
LazyBlocks_Admin::admin_enqueue_scripts()
S
53 1 21
LazyBlocks_Tools::render_tools_page()
S
62 1 19
LazyBlocks_Templates::render_templates_page()
S
62 1 19
LazyBlocks_Control_InnerBlocks::__construct()
S
56 1 18
LazyBlocks_Control_Select::__construct()
S
56 1 17
LazyBlocks_Control_Toggle::__construct()
S
56 1 17
LazyBlocks_Control_Checkbox::__construct()
S
56 1 17
LazyBlocks_Control_Radio::__construct()
S
57 1 16
LazyBlocks_Control::get_control_data()
S
59 1 16
LazyBlocks_Admin::admin_menu()
S
60 1 16
LazyBlocks_Control_File::__construct()
S
57 1 16
LazyBlocks_Control_Gallery::__construct()
S
57 1 16
LazyBlocks_Control_Image::__construct()
S
57 1 16
LazyBlocks_Blocks::register_block_render()
S
63 2 10
LazyBlocks_Blocks::handle_bulk_actions_edit()
S
69 2 7
LazyBlocks_Blocks::get_meta_boxes()
S
68 2 7
LazyBlocks_Control::action_script_depends()
S
74 2 5
LazyBlocks_Control::action_style_depends()
S
74 2 5
LazyBlocks::instance()
S
70 2 7
LazyBlocks_Migration::__construct()
S
68 2 7
LazyBlocks_Force_Gutenberg::classic_plugin_force_gutenberg()
S
66 2 9
LazyBlocks_Force_Gutenberg::classic_plugin_force_gutenberg_2()
S
72 2 6
LazyBlocks_Blocks::disable_months_dropdown()
S
79 2 3
LazyBlocks_Rest::get_post_types_permission()
S
70 2 6
LazyBlocks_Blocks::allowed_block_types()
S
71 2 6
LazyBlocks_Admin::enqueue_script_translations()
S
67 2 7
LazyBlocks_Templates::add_template()
S
71 2 6
LazyBlocks_Admin::maybe_hide_menu_item()
S
70 2 6
LazyBlocks_Control::__construct()
S
60 1 14
LazyBlocks_Tools::clean_php_string_code()
S
60 1 14
LazyBlocks_Control_Number::__construct()
S
61 1 13
LazyBlocks_Control_Range::__construct()
S
62 1 12
LazyBlocks::include_dependencies()
S
62 1 12
LazyBlocks_Controls::get_controls_categories()
S
62 1 12
LazyBlocks_Tools::admin_menu()
S
63 1 11
LazyBlocks_Control_TextArea::__construct()
S
63 1 11
LazyBlocks_Control_DateTime::__construct()
S
63 1 11
LazyBlocks::init()
S
63 1 11
LazyBlocks_Control_Email::__construct()
S
63 1 11
LazyBlocks_Control_Password::__construct()
S
63 1 11
LazyBlocks_Control_RichText::__construct()
S
63 1 11
LazyBlocks_Control_CodeEditor::__construct()
S
63 1 11
LazyBlocks_Control_Text::__construct()
S
63 1 11
LazyBlocks_Control_Color::__construct()
S
63 1 11
LazyBlocks_Rest::error()
S
64 1 11
LazyBlocks_Control_File::register_assets()
S
66 1 9
LazyBlocks_Control_Range::get_script_depends()
S
81 1 3
LazyBlocks_Blocks::bulk_actions_edit()
S
72 1 5
LazyBlocks_Control_URL::get_script_depends()
S
81 1 3
LazyBlocks_Control_Radio::get_script_depends()
S
81 1 3
LazyBlocks_Icons::__construct()
S
91 1 2
LazyBlocks_Control_ClassicEditor::__construct()
S
66 1 8
LazyBlocks_Control_Number::register_assets()
S
66 1 9
LazyBlocks_Control::register_assets()
S
91 1 2
LazyBlocks_Blocks::remove_custom_fields_support()
S
80 1 3
LazyBlocks_Control::get_script_depends()
S
82 1 3
LazyBlocks_Dummy::__construct()
S
98 1 1
LazyBlocks_Control_Image::register_assets()
S
66 1 9
LazyBlocks_Control_Range::register_assets()
S
66 1 9
LazyBlocks_Control_RichText::register_assets()
S
66 1 9
LazyBlocks_Blocks::manage_posts_columns()
S
64 1 10
LazyBlocks_Control_Toggle::get_script_depends()
S
81 1 3
LazyBlocks_Rest::update_block_data_permission()
S
81 1 3
LazyBlocks::tools()
S
82 1 3
LazyBlocks_Tools::get_template_php_string_code()
S
68 1 7
LazyBlocks_Control_RichText::get_script_depends()
S
81 1 3
LazyBlocks_Tools::add_notice()
S
71 1 6
LazyBlocks_Control_TextArea::register_assets()
S
66 1 9
LazyBlocks_Control_ClassicEditor::get_script_depends()
S
81 1 3
LazyBlocks_Controls::get_controls()
S
80 1 3
LazyBlocks_Control_DateTime::register_assets()
S
66 1 9
LazyBlocks_Control_Text::register_assets()
S
66 1 9
LazyBlocks_Admin::__construct()
S
65 1 9
LazyBlocks::deactivation_hook()
S
98 1 1
LazyBlocks_Control_InnerBlocks::register_assets()
S
66 1 9
LazyBlocks::activation_hook()
S
82 1 3
LazyBlocks_Templates::__construct()
S
68 1 7
LazyBlocks_Control_Email::register_assets()
S
66 1 9
LazyBlocks_Control_DateTime::get_script_depends()
S
81 1 3
LazyBlocks_Control_Password::get_script_depends()
S
81 1 3
LazyBlocks_Control_Gallery::register_assets()
S
66 1 9
LazyBlocks_Control_Color::get_script_depends()
S
81 1 3
LazyBlocks_Control_URL::register_assets()
S
66 1 9
LazyBlocks::icons()
S
82 1 3
LazyBlocks_Control_InnerBlocks::get_script_depends()
S
81 1 3
LazyBlocks_Control_Toggle::register_assets()
S
66 1 9
LazyBlocks_Migration::get_migrations()
S
68 1 8
LazyBlocks_Control_Password::register_assets()
S
66 1 9
LazyBlocks::__construct()
S
91 1 2
LazyBlocks_Templates::admin_menu()
S
65 1 10
LazyBlocks_Control_CodeEditor::get_script_depends()
S
81 1 3
LazyBlocks_Controls::ends_with()
S
77 1 3
LazyBlocks_Control_File::get_script_depends()
S
81 1 3
LazyBlocks_Control_ClassicEditor::register_assets()
S
66 1 9
LazyBlocks::blocks()
S
82 1 3
LazyBlocks_Control_CodeEditor::register_assets()
S
66 1 9
LazyBlocks_Control_Checkbox::get_script_depends()
S
81 1 3
LazyBlocks::load_text_domain()
S
77 1 3
LazyBlocks_Control_Select::get_script_depends()
S
81 1 3
LazyBlocks_Control_Repeater::get_script_depends()
S
81 1 3
LazyBlocks_Control_Select::register_assets()
S
66 1 9
LazyBlocks::templates()
S
82 1 3
LazyBlocks_Blocks::php_eval()
S
73 1 5
LazyBlocks_Control_Image::get_script_depends()
S
81 1 3
LazyBlocks_Control_URL::__construct()
S
68 1 7
LazyBlocks_Control::get_style_depends()
S
82 1 3
LazyBlocks_Control_Email::get_script_depends()
S
81 1 3
LazyBlocks_Tools::__construct()
S
68 1 7
LazyBlocks::plugin_path()
S
79 1 3
LazyBlocks::add_template()
S
80 1 3
LazyBlocks_Rest::__construct()
S
79 1 3
LazyBlocks_Control_Text::get_script_depends()
S
81 1 3
LazyBlocks_Blocks::sanitize_slug()
S
78 1 3
lazyblocks()
S
82 1 3
LazyBlocks::controls()
S
82 1 3
LazyBlocks_Force_Gutenberg::__construct()
S
69 1 6
LazyBlocks::plugin_url()
S
79 1 3
LazyBlocks_Control_Checkbox::register_assets()
S
66 1 9
LazyBlocks_Rest::success()
S
67 1 9
LazyBlocks_Control_Number::get_script_depends()
S
81 1 3
LazyBlocks_Tools::get_block_php_string_code()
S
67 1 8
LazyBlocks_Control_Gallery::get_script_depends()
S
81 1 3
LazyBlocks_Control_TextArea::get_script_depends()
S
81 1 3
LazyBlocks_Control_Repeater::register_assets()
S
66 1 9
LazyBlocks_Control_Radio::register_assets()
S
66 1 9
LazyBlocks_Control_Color::register_assets()
S
66 1 9
LazyBlocks::add_block()
S
80 1 3
LazyBlocks_Controls::__construct()
S
82 1 3