Code Analysis: Genesis Custom Blocks 1.3.1

Function Rating Maintainability Complexity Lines of code
Genesis\CustomBlocks\Util::locate_template()
A
46 13 40
Genesis\CustomBlocks\Admin\Onboarding::admin_notices()
A
45 13 39
Genesis\CustomBlocks\Blocks\Loader::render_block_template()
A
46 11 35
Genesis\CustomBlocks\Blocks\Loader::block_template()
A
47 11 35
Genesis\CustomBlocks\Blocks\Field::cast_value()
A
49 11 34
Genesis\CustomBlocks\Admin\Import::render_page()
A
43 10 49
Genesis\CustomBlocks\Blocks\Block::from_array()
A
50 10 28
block_field()
A
48 9 35
Genesis\CustomBlocks\Admin\Import::import_blocks()
A
47 8 38
Genesis\CustomBlocks\Admin\Onboarding::add_dummy_data()
A
37 4 90
Genesis\CustomBlocks\Blocks\Loader::retrieve_blocks()
S
49 7 28
Genesis\CustomBlocks\PostTypes\BlockPost::template_location()
S
50 7 27
Genesis\CustomBlocks\Blocks\Controls\ControlSetting::__construct()
S
56 7 20
Genesis\CustomBlocks\Blocks\Field::from_array()
S
55 7 19
Genesis\CustomBlocks\Blocks\Controls\Image::validate()
S
57 7 16
Genesis\CustomBlocks\PostTypes\BlockPost::list_table_content()
S
48 6 31
Genesis\CustomBlocks\Admin\Onboarding::show_add_to_post_notice()
S
52 6 24
Genesis\CustomBlocks\Blocks\Loader::register_categories()
S
59 6 14
Genesis\CustomBlocks\Admin\EditBlock::enqueue_assets()
S
43 3 52
Genesis\CustomBlocks\Admin\Import::validate_upload()
S
51 4 28
Genesis\CustomBlocks\Blocks\Loader::add_rest_method()
S
61 5 11
Genesis\CustomBlocks\Admin\Onboarding::show_edit_block_notice()
S
47 2 45
Genesis\CustomBlocks\Blocks\Loader::editor_assets()
S
45 2 45
Genesis\CustomBlocks\PluginAbstract::register_component()
S
59 4 15
Genesis\CustomBlocks\PostTypes\BlockPost::enqueue_scripts()
S
60 4 14
Genesis\CustomBlocks\Blocks\Loader::get_attributes_from_field()
S
59 4 14
Genesis\CustomBlocks\PostTypes\BlockPost::register_controls()
S
52 3 27
Genesis\CustomBlocks\PostTypes\BlockPost::add_caps()
S
62 4 12
Genesis\CustomBlocks\Blocks\Field::cast_value_to_string()
S
62 4 12
Genesis\CustomBlocks\Admin\Import::render_choose_blocks()
S
53 3 27
Genesis\CustomBlocks\Blocks\Controls\Textarea::register_settings()
S
48 2 38
Genesis\CustomBlocks\Blocks\Loader::enqueue_block_styles()
S
54 3 22
Genesis\CustomBlocks\Admin\Onboarding::show_publish_notice()
S
49 2 37
Genesis\CustomBlocks\Admin\Onboarding::show_welcome_notice()
S
50 2 33
Genesis\CustomBlocks\Blocks\Loader::register_block()
S
58 3 16
Genesis\CustomBlocks\Admin\Upgrade::enqueue_scripts()
S
59 3 15
Genesis\CustomBlocks\Admin\Admin::init()
S
60 3 14
Genesis\CustomBlocks\PostTypes\BlockPost::get_control()
S
62 3 11
Genesis\CustomBlocks\Blocks\Block::__construct()
S
63 3 11
Genesis\CustomBlocks\Admin\Onboarding::show_add_fields_notice()
S
54 2 24
Genesis\CustomBlocks\Blocks\Controls\ControlAbstract::create_settings_config()
S
49 1 38
Genesis\CustomBlocks\Blocks\Controls\Range::register_settings()
S
49 1 37
Genesis\CustomBlocks\PostTypes\BlockPost::register_post_type()
S
47 1 36
Genesis\CustomBlocks\Admin\Import::render_welcome()
S
50 1 36
Genesis\CustomBlocks\Admin\EditBlock::get_template_file()
S
55 2 20
Genesis\CustomBlocks\Blocks\Loader::enqueue_global_styles()
S
59 2 16
Genesis\CustomBlocks\Util::get_url_from_path()
S
65 3 8
Genesis\CustomBlocks\PluginAbstract::__call()
S
64 3 9
Genesis\CustomBlocks\PostTypes\BlockPost::get_field_value()
S
69 3 6
Genesis\CustomBlocks\Admin\EditBlock::should_replace_editor()
S
65 3 9
Genesis\CustomBlocks\PostTypes\BlockPost::page_row_actions()
S
64 3 10
Genesis\CustomBlocks\Blocks\Block::to_json()
S
57 2 15
Genesis\CustomBlocks\PluginAbstract::get_version()
S
71 3 6
Genesis\CustomBlocks\Admin\EditBlock::is_gcb_editor()
S
67 3 8
Genesis\CustomBlocks\Blocks\Loader::dynamic_block_loader()
S
64 3 10
Genesis\CustomBlocks\Blocks\Loader::add_field()
S
65 3 9
Genesis\CustomBlocks\Blocks\TemplateEditor::render_css()
S
65 3 9
Genesis\CustomBlocks\Plugin::require_helpers()
S
68 3 7
block_field_config()
S
68 3 7
Genesis\CustomBlocks\Admin\Upgrade::add_submenu_pages()
S
60 2 14
Genesis\CustomBlocks\Blocks\Controls\Text::register_settings()
S
60 2 13
Genesis\CustomBlocks\Blocks\Loader::register_hooks()
S
62 2 11
Genesis\CustomBlocks\Util::allowed_svg_tags()
S
54 1 24
Genesis\CustomBlocks\Blocks\Controls\Multiselect::register_settings()
S
54 1 23
Genesis\CustomBlocks\Blocks\Controls\Select::register_settings()
S
55 1 22
Genesis\CustomBlocks\Blocks\Controls\Radio::register_settings()
S
55 1 22
Genesis\CustomBlocks\Admin\EditBlock::register_route_template_file()
S
57 1 18
Genesis\CustomBlocks\Plugin::init()
S
59 1 16
genesis_custom_blocks()
S
70 2 7
Genesis\CustomBlocks\Blocks\Loader::add_block()
S
70 2 6
Genesis\CustomBlocks\Blocks\Controls\File::validate()
S
78 2 3
Genesis\CustomBlocks\Admin\Documentation::maybe_redirect()
S
68 2 7
Genesis\CustomBlocks\Blocks\Block::from_json()
S
66 2 8
Genesis\CustomBlocks\PluginAbstract::set_version()
S
66 2 8
Genesis\CustomBlocks\Admin\EditBlock::should_use_block_editor_for_post_type()
S
71 2 6
Genesis\CustomBlocks\Blocks\Loader::get_data()
S
66 2 8
Genesis\CustomBlocks\Admin\EditBlock::conditionally_prevent_footer_text()
S
72 2 6
Genesis\CustomBlocks\Admin\EditBlock::conditionally_prevent_update_text()
S
72 2 6
Genesis\CustomBlocks\PostTypes\BlockPost::get_controls()
S
65 2 10
Genesis\CustomBlocks\Blocks\Loader::get_block_attributes()
S
66 2 8
Genesis\CustomBlocks\ComponentAbstract::__call()
S
63 2 9
Genesis\CustomBlocks\Admin\EditBlock::get_template_file_response()
S
65 2 9
block_config()
S
69 2 7
Genesis\CustomBlocks\Blocks\Controls\Color::register_settings()
S
71 2 5
Genesis\CustomBlocks\Blocks\Controls\ControlSetting::get_value()
S
72 2 6
Genesis\CustomBlocks\Blocks\Controls\File::register_settings()
S
72 2 5
Genesis\CustomBlocks\Plugin::require_deprecated()
S
73 2 5
Genesis\CustomBlocks\Blocks\Controls\Image::register_settings()
S
72 2 5
Genesis\CustomBlocks\Admin\Import::block_exists()
S
69 2 7
Genesis\CustomBlocks\Blocks\Field::to_array()
S
60 1 14
Genesis\CustomBlocks\Blocks\Controls\Url::register_settings()
S
60 1 14
Genesis\CustomBlocks\Blocks\Controls\Number::register_settings()
S
60 1 14
Genesis\CustomBlocks\Blocks\Loader::init()
S
60 1 14
Genesis\CustomBlocks\Blocks\Controls\Email::register_settings()
S
60 1 14
genesis_custom_blocks_deprecated_function()
S
63 1 13
Genesis\CustomBlocks\PostTypes\BlockPost::register_hooks()
S
59 1 13
add_block()
S
60 1 13
Genesis\CustomBlocks\Blocks\Controls\Toggle::register_settings()
S
61 1 13
Genesis\CustomBlocks\Blocks\TemplateEditor::render_markup()
S
61 1 13
Genesis\CustomBlocks\Blocks\Controls\Checkbox::register_settings()
S
61 1 13
add_field()
S
62 1 11
Genesis\CustomBlocks\Admin\Documentation::add_submenu_page()
S
64 1 11
Genesis\CustomBlocks\PostTypes\BlockPost::get_capabilities()
S
62 1 11
Genesis\CustomBlocks\Admin\Import::render_import_success()
S
64 1 11
Genesis\CustomBlocks\Admin\Upgrade::register_hooks()
S
75 1 4
Genesis\CustomBlocks\Admin\Onboarding::enqueue_scripts()
S
69 1 8
Genesis\CustomBlocks\Admin\Import::render_import_error()
S
73 1 5
Genesis\CustomBlocks\PostTypes\BlockPost::bulk_actions()
S
76 1 4
Genesis\CustomBlocks\PluginAbstract::init()
S
100 1 0
Genesis\CustomBlocks\Blocks\Controls\Text::__construct()
S
75 1 4
block_row()
S
76 1 4
Genesis\CustomBlocks\PluginAbstract::set_url()
S
75 1 4
Genesis\CustomBlocks\PluginAbstract::get_url()
S
78 1 3
Genesis\CustomBlocks\Admin\Import::register_importer()
S
68 1 8
Genesis\CustomBlocks\Blocks\Controls\File::__construct()
S
75 1 4
Genesis\CustomBlocks\PluginAbstract::set_directory()
S
75 1 4
Genesis\CustomBlocks\ComponentAbstract::register_hooks()
S
100 1 0
Genesis\CustomBlocks\ComponentAbstract::set_plugin()
S
77 1 4
Genesis\CustomBlocks\Admin\Import::register_hooks()
S
79 1 3
Genesis\CustomBlocks\PluginAbstract::get_basename()
S
82 1 3
Genesis\CustomBlocks\Blocks\Controls\Url::__construct()
S
75 1 4
reset_block_rows()
S
76 1 4
block_lab_allowed_svg_tags()
S
76 1 4
block_rows()
S
76 1 4
Genesis\CustomBlocks\Blocks\Controls\Range::__construct()
S
75 1 4
Genesis\CustomBlocks\Admin\Admin::register_hooks()
S
79 1 3
Genesis\CustomBlocks\Admin\Import::render_page_header()
S
75 1 5
block_row_count()
S
76 1 4
Genesis\CustomBlocks\Blocks\Block::get_category_array_from_slug()
S
69 1 7
Genesis\CustomBlocks\Blocks\Controls\Textarea::__construct()
S
75 1 4
Genesis\CustomBlocks\Admin\Import::render_done()
S
75 1 5
Genesis\CustomBlocks\Blocks\Field::__construct()
S
81 1 3
Genesis\CustomBlocks\PluginAbstract::get_directory()
S
82 1 3
Genesis\CustomBlocks\PluginAbstract::set_slug()
S
77 1 4
Genesis\CustomBlocks\Blocks\Controls\Image::__construct()
S
75 1 4
Genesis\CustomBlocks\Plugin::plugin_loaded()
S
77 1 4
Genesis\CustomBlocks\PostTypes\BlockPost::__construct()
S
80 1 3
Genesis\CustomBlocks\Blocks\Controls\ControlAbstract::__construct()
S
78 1 4
Genesis\CustomBlocks\Blocks\Controls\Checkbox::__construct()
S
75 1 4
Genesis\CustomBlocks\Admin\Admin::enqueue_scripts()
S
69 1 8
Genesis\CustomBlocks\Util::get_icons()
S
66 1 10
Genesis\CustomBlocks\Admin\Upgrade::render_page()
S
69 1 8
Genesis\CustomBlocks\Util::register_hooks()
S
98 1 1
Genesis\CustomBlocks\Admin\Documentation::add_redirect_host()
S
79 1 3
Genesis\CustomBlocks\Blocks\Controls\Toggle::__construct()
S
75 1 4
Genesis\CustomBlocks\PluginAbstract::get_assets_url()
S
78 1 3
Genesis\CustomBlocks\Util::get_template_locations()
S
69 1 7
Genesis\CustomBlocks\Admin\Onboarding::prepare_welcome_notice()
S
79 1 3
Genesis\CustomBlocks\Blocks\Controls\Multiselect::__construct()
S
75 1 4
Genesis\CustomBlocks\Blocks\Controls\Number::__construct()
S
75 1 4
block_lab_add_field()
S
75 1 4
Genesis\CustomBlocks\Blocks\Controls\ControlAbstract::jsonSerialize()
S
73 1 5
Genesis\CustomBlocks\Util::get_stylesheet_locations()
S
68 1 7
Genesis\CustomBlocks\Blocks\Controls\InnerBlocks::validate()
S
75 1 4
Genesis\CustomBlocks\Blocks\Controls\Select::__construct()
S
75 1 4
Genesis\CustomBlocks\PluginAbstract::get_assets_path()
S
78 1 3
Genesis\CustomBlocks\PluginAbstract::get_slug()
S
82 1 3
Genesis\CustomBlocks\Admin\EditBlock::register_hooks()
S
65 1 8
Genesis\CustomBlocks\PluginAbstract::set_basename()
S
77 1 4
Genesis\CustomBlocks\Admin\Onboarding::register_hooks()
S
79 1 3
Genesis\CustomBlocks\Blocks\Controls\InnerBlocks::__construct()
S
71 1 5
Genesis\CustomBlocks\PluginAbstract::plugin_loaded()
S
100 1 0
block_lab_get_icons()
S
76 1 4
block_lab_add_block()
S
75 1 4
block_sub_value()
S
76 1 4
block_sub_field()
S
76 1 4
Genesis\CustomBlocks\Util::get_post_type_slug()
S
82 1 3
Genesis\CustomBlocks\Blocks\Controls\Radio::__construct()
S
75 1 4
Genesis\CustomBlocks\PostTypes\BlockPost::list_table_columns()
S
64 1 10
Genesis\CustomBlocks\Blocks\Controls\Email::__construct()
S
75 1 4
Genesis\CustomBlocks\Blocks\Controls\Color::__construct()
S
75 1 4
Genesis\CustomBlocks\Blocks\Controls\InnerBlocks::register_settings()
S
79 1 3
Genesis\CustomBlocks\Blocks\Controls\ControlAbstract::register_settings()
S
100 1 0
Genesis\CustomBlocks\PluginAbstract::get_file()
S
82 1 3
Genesis\CustomBlocks\Admin\Documentation::register_hooks()
S
72 1 5
block_value()
S
80 1 3
Genesis\CustomBlocks\PluginAbstract::get_path()
S
78 1 3
Genesis\CustomBlocks\PluginAbstract::set_file()
S
77 1 4
Genesis\CustomBlocks\Admin\Onboarding::plugin_activation()
S
78 1 4
block_row_index()
S
76 1 4