Code Analysis: Admin Debug Tools 1.0.0

Function Rating Maintainability Complexity Lines of code
AdminDebugTools\Plugin\RestApi\Controllers\WpConfigController::update()
C
32 23 108
AdminDebugTools\Plugin\Plugin::hide_unrelated_admin_notices()
A
48 15 31
AdminDebugTools\Plugin\Core\WpLogParser::conseal_directory()
A
42 10 52
AdminDebugTools\Plugin\Container::resolve()
A
45 10 45
AdminDebugTools\Plugin\RestApi\Controllers\BaseController::validate_param()
A
49 11 29
AdminDebugTools\Plugin\RestApi\RestApi::resolve_route()
A
46 10 38
AdminDebugTools\Plugin\RestApi\Controllers\WpConfigController::test_logging()
A
46 10 38
AdminDebugTools\Plugin\Core\LogParser::parse_children()
A
50 8 28
AdminDebugTools\Plugin\RestApi\Controllers\WpConfigController::get()
A
51 8 28
AdminDebugTools\Plugin\Plugin::setup_container()
A
50 8 27
AdminDebugTools\Plugin\RestApi\Controllers\BaseController::sanitize_type()
A
57 8 18
AdminDebugTools\Plugin\Core\WpLogParser::normalize_stacktrace_order()
S
51 7 26
AdminDebugTools\Plugin\Core\WpLogParser::get_last_lines()
S
53 7 22
AdminDebugTools\Plugin\Core\LogParser::parse_type()
S
45 5 42
AdminDebugTools\Plugin\Core\SseServer::start()
S
47 5 38
AdminDebugTools\Plugin\Utils\Arr::set()
S
55 6 19
AdminDebugTools\Plugin\Core\WpLogParser::build_file_link()
S
47 4 37
AdminDebugTools\Plugin\RestApi\Controllers\BaseController::get_json_params()
S
55 5 19
AdminDebugTools\Plugin\RestApi\Controllers\DebugLogController::get_updates()
S
56 5 16
AdminDebugTools\Plugin\Core\WpLogParser::get_file_type()
S
58 5 15
AdminDebugTools\Plugin\Core\FileContentGetter::get_from_line()
S
58 5 14
AdminDebugTools\Plugin\RestApi\RestApi::register_routes()
S
52 4 27
AdminDebugTools\Plugin\RestApi\Controllers\DebugLogController::download()
S
57 4 17
AdminDebugTools\Plugin\RestApi\Controllers\BaseController::validate_json()
S
58 4 15
AdminDebugTools\Plugin\Core\LogParser::parse()
S
58 4 15
AdminDebugTools\Plugin\Utils\Arr::get()
S
60 4 14
AdminDebugTools\Plugin\Core\WpLogParser::clear()
S
60 4 13
AdminDebugTools\Plugin\Core\WpLogParser::get_plugin_path()
S
60 4 13
AdminDebugTools\Plugin\Core\LogLine::to_array()
S
52 3 27
AdminDebugTools\Plugin\Utils\Utils::is_plugin_page()
S
67 4 7
AdminDebugTools\Plugin\Utils\Asset::enqueue()
S
58 3 13
AdminDebugTools\Plugin\Core\LogParser::match_trace_line()
S
63 3 11
AdminDebugTools\Plugin\Utils\Filesystem::initialize_filesystem()
S
63 3 11
AdminDebugTools\Plugin\RestApi\RestApi::get_routes()
S
50 1 36
AdminDebugTools\Plugin\Plugin::get_instance()
S
70 3 6
AdminDebugTools\Plugin\Bootstrap\Admin\Pages::enqueue_scripts()
S
59 2 15
AdminDebugTools\Plugin\Core\SseServer::__construct()
S
66 3 8
AdminDebugTools\Plugin\Core\WpLogParser::backup()
S
62 3 10
AdminDebugTools\Plugin\Container::get()
S
66 3 9
AdminDebugTools\Plugin\Container::add()
S
66 3 9
AdminDebugTools\Plugin\Bootstrap\Admin\Pages::add_plugin_version_to_footer()
S
58 2 14
AdminDebugTools\Plugin\Exceptions\RestApi\RestApiException::to_response()
S
62 2 12
AdminDebugTools\Plugin\Core\LogParser::parse_date()
S
61 2 11
AdminDebugTools\Plugin\Core\FileContentGetter::get_updates()
S
64 2 10
AdminDebugTools\Plugin\Core\SseServer::dispatch()
S
66 2 8
AdminDebugTools\Plugin\Core\WpLogParser::parse_line()
S
65 2 9
AdminDebugTools\Plugin\Core\WpLogParser::localize_datetime()
S
69 2 7
AdminDebugTools\Plugin\Exceptions\RestApi\RestApiException::__construct()
S
71 2 6
AdminDebugTools\Plugin\Exceptions\RestApi\RestApiException::from_exception()
S
67 2 7
AdminDebugTools\Plugin\Exceptions\RestApi\RestApiException::unexpected_error()
S
67 2 7
AdminDebugTools\Plugin\Options\Options::init()
S
69 2 7
AdminDebugTools\Plugin\Plugin::init()
S
67 2 8
AdminDebugTools\Plugin\RestApi\Controllers\BaseController::validate_type()
S
68 2 8
AdminDebugTools\Plugin\Utils\Date::format_date_str()
S
63 2 9
AdminDebugTools\Plugin\RestApi\Controllers\DebugLogController::get_sse()
S
65 2 9
AdminDebugTools\Plugin\Core\FileContentGetter::get_last_lines()
S
73 2 4
AdminDebugTools\Plugin\Bootstrap\Admin\Pages::add_admin_footer_text()
S
67 2 8
AdminDebugTools\Plugin\RestApi\RestApi::logged_in_and_can_access_route()
S
79 2 3
AdminDebugTools\Plugin\RestApi\RestApi::validate_nonce()
S
66 2 8
AdminDebugTools\Plugin\Core\LogLineCollection::to_array()
S
60 1 15
AdminDebugTools\Plugin\Core\LogLineCollection::get()
S
79 1 3
AdminDebugTools\Plugin\RestApi\RestApi::fallback()
S
77 1 3
AdminDebugTools\Plugin\Plugin::get()
S
80 1 3
AdminDebugTools\Plugin\Utils\Filesystem::put_contents()
S
79 1 3
AdminDebugTools\Plugin\Core\LogLine::add_child()
S
80 1 3
AdminDebugTools\Plugin\Container::singleton()
S
79 1 3
AdminDebugTools\Plugin\Core\LogLine::get_raw()
S
82 1 3
AdminDebugTools\Plugin\Utils\Filesystem::is_dir()
S
80 1 3
AdminDebugTools\Plugin\Core\LogLine::get_date()
S
82 1 3
AdminDebugTools\Plugin\Core\WpLogParser::__construct()
S
71 1 6
AdminDebugTools\Plugin\Core\WpLogParser::exists()
S
81 1 3
AdminDebugTools\Plugin\Core\WpLogParser::get_size()
S
81 1 3
AdminDebugTools\Plugin\Core\WpLogParser::get_log_file_path()
S
81 1 3
AdminDebugTools\Plugin\Core\LogLine::get_type_label()
S
82 1 3
AdminDebugTools\Plugin\Core\LogLine::get_message()
S
82 1 3
AdminDebugTools\Plugin\Bootstrap\Admin\Pages::add_admin_menu()
S
66 1 9
AdminDebugTools\Plugin\Core\WpLogParser::get_from_line()
S
76 1 4
AdminDebugTools\Plugin\Core\WpLogParser::get_updates()
S
76 1 4
AdminDebugTools\Plugin\Core\WpLogParser::parse_lines()
S
68 1 7
AdminDebugTools\Plugin\Core\LogLine::get_children()
S
82 1 3
AdminDebugTools\Plugin\Options\Options::set()
S
70 1 6
AdminDebugTools\Plugin\Core\LogLine::set_is_children()
S
77 1 4
AdminDebugTools\Plugin\Core\LogLineCollection::get_lines()
S
82 1 3
AdminDebugTools\Plugin\Core\LogLineCollection::slice()
S
75 1 4
AdminDebugTools\Plugin\Core\LogLine::set_children()
S
81 1 3
AdminDebugTools\Plugin\Core\LogLine::get_line_number()
S
82 1 3
AdminDebugTools\Plugin\Utils\Filesystem::get_contents()
S
80 1 3
AdminDebugTools\Plugin\Utils\Utils::user_can_access()
S
79 1 3
AdminDebugTools\Plugin\Core\LogParser::parse_line()
S
69 1 7
AdminDebugTools\Plugin\Core\LogLine::has_children()
S
80 1 3
AdminDebugTools\Plugin\Core\FileContent::get_file_path()
S
82 1 3
AdminDebugTools\Plugin\Core\FileContent::get_start_line()
S
82 1 3
AdminDebugTools\Plugin\Core\LogLine::get_trace_order()
S
82 1 3
AdminDebugTools\Plugin\Bootstrap\Admin\Pages::init()
S
69 1 6
AdminDebugTools\Plugin\Core\LogLine::get_type()
S
82 1 3
AdminDebugTools\Plugin\Exceptions\RestApi\RestApiException::get_default_code()
S
82 1 3
AdminDebugTools\Plugin\RestApi\Controllers\BaseController::get_param()
S
75 1 4
AdminDebugTools\Plugin\Options\Options::default_options()
S
71 1 6
AdminDebugTools\Plugin\Core\LogLine::has_date()
S
80 1 3
AdminDebugTools\Plugin\Core\LogLine::set_trace_order()
S
77 1 4
AdminDebugTools\Plugin\Utils\Filesystem::is_writable()
S
80 1 3
AdminDebugTools\Plugin\Bootstrap\Admin\Pages::render_app()
S
80 1 3
AdminDebugTools\Plugin\RestApi\Controllers\DebugLogController::clear()
S
72 1 5
AdminDebugTools\Plugin\Core\LogLine::set_line_number()
S
77 1 4
AdminDebugTools\Plugin\Core\FileContent::to_array()
S
64 1 10
AdminDebugTools\Plugin\Core\LogLine::set_type()
S
74 1 5
AdminDebugTools\Plugin\Options\Options::get()
S
75 1 4
AdminDebugTools\Plugin\Core\LogLineCollection::set_lines()
S
77 1 4
AdminDebugTools\Plugin\Core\LogLineCollection::is_empty()
S
80 1 3
AdminDebugTools\Plugin\Utils\Filesystem::get_method()
S
82 1 3
AdminDebugTools\Plugin\Core\LogLine::set_date()
S
74 1 5
AdminDebugTools\Plugin\Utils\Filesystem::get_chmod()
S
80 1 3
AdminDebugTools\Plugin\Utils\Utils::access_capability()
S
78 1 3
AdminDebugTools\Plugin\Container::has()
S
79 1 3
AdminDebugTools\Plugin\Core\LogLine::get_timestamp()
S
82 1 3
AdminDebugTools\Plugin\Core\FileContentGetter::__construct()
S
68 1 7
AdminDebugTools\Plugin\RestApi\RestApi::init()
S
74 1 4
AdminDebugTools\Plugin\Utils\Filesystem::exists()
S
80 1 3
AdminDebugTools\Plugin\Utils\Utils::dir_url()
S
79 1 3
AdminDebugTools\Plugin\RestApi\Controllers\DebugLogController::__construct()
S
81 1 3
AdminDebugTools\Plugin\Core\LogLine::is_children()
S
82 1 3
AdminDebugTools\Plugin\Utils\Utils::dir_path()
S
79 1 3
admin_debug_tools_textdomain()
S
71 1 5
AdminDebugTools\Plugin\Exceptions\RestApi\RestApiException::set_extra_error()
S
77 1 4
AdminDebugTools\Plugin\Core\LogLine::set_message()
S
77 1 4
AdminDebugTools\Plugin\Utils\Filesystem::delete()
S
79 1 3
AdminDebugTools\Plugin\Exceptions\RestApi\AuthorizationException::get_default_code()
S
81 1 3
AdminDebugTools\Plugin\Utils\Filesystem::mkdir()
S
78 1 3
AdminDebugTools\Plugin\Core\FileContent::get_last_line()
S
82 1 3
AdminDebugTools\Plugin\Core\LogLineCollection::__construct()
S
67 1 8
AdminDebugTools\Plugin\Core\LogLine::set_extra()
S
76 1 4
AdminDebugTools\Plugin\Utils\Filesystem::__construct()
S
82 1 3
AdminDebugTools\Plugin\Core\LogLine::__construct()
S
77 1 4
AdminDebugTools\Plugin\Core\FileContent::get_lines()
S
82 1 3
AdminDebugTools\Plugin\Core\FileContent::__construct()
S
67 1 8
AdminDebugTools\Plugin\Core\FileContent::get_last_modified()
S
82 1 3
AdminDebugTools\Plugin\Plugin::run()
S
75 1 4
AdminDebugTools\Plugin\Core\FileContent::get_file_size()
S
82 1 3