Code Analysis: If Block — Visibility control for Blocks 1.2.0

Function Rating Maintainability Complexity Lines of code
IfBlock\Includes\Block::render_callback()
B
40 21 55
IfBlock\IfBlock::autoload()
S
50 5 29
IfBlock\Includes\Block::get_current_user_browser()
S
51 3 31
IfBlock\Includes\API::get_browsers()
S
46 1 49
IfBlock\Includes\API::get_user_roles()
S
57 2 17
IfBlock\IfBlock::instance()
S
67 3 8
IfBlock\IfBlock::block_editor_assets()
S
58 2 13
IfBlock\Includes\API::register_rest_routes()
S
57 1 20
IfBlock\Includes\Block::get_current_user_role()
S
74 2 4
IfBlock\Includes\Block::register_block()
S
65 1 10
IfBlock\IfBlock::__wakeup()
S
77 1 3
IfBlock\Includes\API::__construct()
S
75 1 4
IfBlock\Includes\API::init()
S
79 1 3
IfBlock\IfBlock::init()
S
75 1 4
IfBlock\IfBlock::includes()
S
77 1 4
IfBlock\IfBlock::action_links()
S
68 1 6
IfBlock\Includes\API::get_permission()
S
80 1 3
IfBlock\Includes\Block::init()
S
78 1 4
IfBlock\IfBlock::__clone()
S
77 1 3
IfBlock\Includes\Block::__construct()
S
98 1 1
IfBlock\Includes\Block::includes()
S
77 1 4
ifblock()
S
82 1 3
IfBlock\IfBlock::__construct()
S
74 1 4
IfBlock\IfBlock::load_textdomain()
S
78 1 3