Code Analysis: WP Oauth2 Server 1.0.1

Function Rating Maintainability Complexity Lines of code
Codexshaper_Oauth_Server\App\Http\Middleware\AuthMiddleware::handle()
A
45 11 40
CodexShaper\Composer\ComposerScripts::post_autoload_dump()
A
38 5 78
Codexshaper_Oauth_Server\Exceptions\Handler::render()
A
55 8 18
Codexshaper_Oauth_Server\Application::__construct()
S
52 5 25
Codexshaper_Oauth_Server_Handler::codexshaper_bypass_user_for_oauth_authentication()
S
57 5 18
Codexshaper_Oauth_Server\Support\Facades\Config::get()
S
58 5 16
Codexshaper_Oauth_Server\Http\Kernel::terminate_middleware()
S
58 5 16
Codexshaper_Oauth_Server\Exceptions\Handler::prepare_exception()
S
61 5 12
Codexshaper_Oauth_Server\Exceptions\Handler::report()
S
55 4 22
Install_Composer::__construct()
S
54 4 20
Codexshaper_Oauth_Server::get_scripts()
S
49 3 34
Codexshaper_Oauth_Server_Deactivator::update_authorization_rewrite_condition()
S
57 4 15
Codexshaper_Oauth_Server::register_scripts()
S
64 5 8
Codexshaper_Oauth_Server\Exceptions\Handler::prepare_response()
S
61 4 12
Codexshaper_Oauth_Server::__construct()
S
49 2 32
Codexshaper_Oauth_Server\Application::register_providers()
S
66 4 8
Codexshaper_Oauth_Server\Support\Facades\Config::__construct()
S
62 4 10
Codexshaper_Oauth_Server\Exceptions\Handler::render_exception_content()
S
64 4 9
Codexshaper_Oauth_Server\Exceptions\Handler::convert_exception_to_array()
S
58 3 15
Codexshaper_Oauth_Server\App\Http\Middleware\VerifyCsrfToken::handle()
S
61 3 11
Codexshaper_Oauth_Server\Application::register_request()
S
57 2 19
Codexshaper_Oauth_Server\Exceptions\Handler::render_http_exception()
S
59 2 16
Codexshaper_Oauth_Server\Exceptions\Handler::to_illuminate_response()
S
59 2 16
WPB\App\Http\Middleware\Scope::handle()
S
66 3 8
codexshaper_oauth_server_config()
S
66 3 9
Codexshaper_Oauth_Server\Http\Kernel::prepend_middleware_to_group()
S
63 3 10
Codexshaper_Oauth_Server\Http\Kernel::append_middleware_to_group()
S
63 3 10
Codexshaper_Oauth_Server\Http\Kernel::sync_middleware_to_router()
S
65 3 9
Codexshaper_Oauth_Server_Loader::run()
S
66 3 8
Codexshaper_Oauth_Server_Admin_Menu::make()
S
66 3 8
Codexshaper_Oauth_Server\Exceptions\Handler::convert_validation_exception_to_response()
S
67 3 8
Codexshaper_Oauth_Server\Exceptions\Handler::convert_exception_to_response()
S
68 3 7
Codexshaper_Oauth_Server_Admin_SubMenu::make()
S
66 3 8
Codexshaper_Oauth_Server\Exceptions\Handler::prepare_json_response()
S
66 3 8
Codexshaper_Oauth_Server::register_styles()
S
68 3 6
Codexshaper_Oauth_Server_Activator::codexshaper_oauth_server_rewrite_auth_conditions()
S
59 2 14
Codexshaper_Oauth_Server\Http\Kernel::handle()
S
60 2 14
Codexshaper_Oauth_Server_Admin_SubMenu::create_submenu()
S
60 2 14
Codexshaper_Oauth_Server\Application::load_routes()
S
62 2 12
CodexShaper\Composer\ComposerScripts::config_app()
S
63 2 11
CodexShaper\Composer\ComposerScripts::update_composer()
S
63 2 11
Codexshaper_Oauth_Server\Exceptions\Handler::context()
S
64 2 11
Codexshaper_Oauth_Server\Application::setup_database()
S
55 1 22
Codexshaper_Oauth_Server::get_styles()
S
57 1 20
OAuthServer\WP\Database\DB::__construct()
S
58 1 16
codexshaper_oauth_server_view()
S
68 2 6
Codexshaper_Oauth_Server\App\Post::scopeAuthor()
S
73 2 5
Codexshaper_Oauth_Server\Http\Kernel::push_middleware()
S
70 2 6
OAuthServer\WP\Database\DB::instance()
S
71 2 6
Codexshaper_Oauth_Server\Exceptions\Handler::unauthenticated()
S
71 2 5
Codexshaper_Oauth_Server\Exceptions\Handler::whoops_handler()
S
69 2 7
Codexshaper_Oauth_Server\Http\Kernel::parse_middleware()
S
67 2 7
Codexshaper_Oauth_Server\Http\Kernel::gather_route_middleware()
S
70 2 7
Codexshaper_Oauth_Server\Http\Kernel::prepend_middleware()
S
70 2 6
Codexshaper_Oauth_Server\Application::instance()
S
72 2 6
Codexshaper_Oauth_Server\Http\Kernel::prepend_to_middleware_priority()
S
69 2 7
Codexshaper_Oauth_Server\Http\Kernel::append_to_middleware_priority()
S
69 2 7
Codexshaper_Oauth_Server\Application::register_config()
S
63 1 13
CreateCustomOptionsTable::up()
S
64 1 11
Codexshaper_Oauth_Server_Admin_Menu::create_menu()
S
63 1 11
Codexshaper_Oauth_Server\Exceptions\Handler::shouldnt_report()
S
64 1 11
Codexshaper_Oauth_Server\Exceptions\Handler::register_error_view_paths()
S
63 1 11
CreatePackagesTable::up()
S
64 1 11
codexshaper_oauth_server_activate()
S
73 1 5
Codexshaper_Oauth_Server_Admin_SubMenu::__construct()
S
81 1 3
Codexshaper_Oauth_Server::set_locale()
S
75 1 4
CreatePackagesTable::down()
S
81 1 3
Codexshaper_Oauth_Server_Admin_SubMenu::save()
S
79 1 3
Codexshaper_Oauth_Server\App\Post::scopeStatus()
S
79 1 3
Codexshaper_Oauth_Server_Admin_SubMenu::init_hooks()
S
79 1 3
Codexshaper_Oauth_Server\Http\Kernel::__construct()
S
74 1 5
Codexshaper_Oauth_Server\Http\Kernel::bootstrappers()
S
82 1 3
Codexshaper_Oauth_Server\Application::register_router()
S
71 1 5
Codexshaper_Oauth_Server_Activator::codexshaper_oauth_server_add_rewrite_authorization()
S
68 1 8
Codexshaper_Oauth_Server_Public::__construct()
S
77 1 4
Codexshaper_Oauth_Server_Public::enqueue_styles()
S
77 1 3
Codexshaper_Oauth_Server_Public::enqueue_scripts()
S
77 1 3
CodexShaper\Composer\ComposerScripts::post_install()
S
79 1 3
Codexshaper_Oauth_Server\App\Post::scopeType()
S
75 1 4
Codexshaper_Oauth_Server\App\Exceptions\Handler::report()
S
80 1 3
Codexshaper_Oauth_Server\Application::setup_env()
S
79 1 3
Codexshaper_Oauth_Server_Loader::add_filter()
S
77 1 3
CreateCustomOptionsTable::down()
S
81 1 3
Codexshaper_Oauth_Server\Exceptions\Handler::is_http_exception()
S
80 1 3
CodexShaper\WP\Database\Eloquent\Scopes\PostTypeScope::apply()
S
79 1 3
Codexshaper_Oauth_Server_Handler::__construct()
S
77 1 4
Codexshaper_Oauth_Server\Http\Kernel::bootstrap()
S
91 1 2
CodexShaper\WP\Database\Eloquent\Scopes\PostStatusScope::apply()
S
79 1 3
Codexshaper_Oauth_Server\Exceptions\Handler::__construct()
S
81 1 3
Codexshaper_Oauth_Server\Exceptions\Handler::exception_context()
S
82 1 3
Codexshaper_Oauth_Server\App\Post::boot()
S
67 1 9
CodexShaper\WP\Database\Eloquent\Scopes\PostAuthorScope::apply()
S
81 1 3
Codexshaper_Oauth_Server_Loader::add()
S
64 1 10
CodexShaper\Composer\ComposerScripts::post_update()
S
79 1 3
Codexshaper_Oauth_Server\Exceptions\Handler::should_report()
S
80 1 3
Codexshaper_Oauth_Server::load_dependencies()
S
64 1 10
Codexshaper_Oauth_Server_I18n::load_plugin_textdomain()
S
69 1 7
Codexshaper_Oauth_Server::get_plugin_name()
S
82 1 3
Codexshaper_Oauth_Server\Http\Kernel::get_application()
S
82 1 3
Codexshaper_Oauth_Server_Admin::enqueue_styles()
S
77 1 3
Codexshaper_Oauth_Server\Exceptions\Handler::render_exception_with_whoops()
S
65 1 10
Codexshaper_Oauth_Server::define_admin_hooks()
S
72 1 5
Codexshaper_Oauth_Server\Http\Kernel::report_exception()
S
80 1 3
Codexshaper_Oauth_Server_Admin_Menu::__construct()
S
81 1 3
Codexshaper_Oauth_Server\Exceptions\Handler::render_exception_with_symfony()
S
75 1 4
Codexshaper_Oauth_Server_Handler::codexshaper_handle_authentication_errors()
S
82 1 3
Codexshaper_Oauth_Server_Admin_SubMenu::enqueue_scripts()
S
73 1 5
WPB\Http\Events\RequestHandled::__construct()
S
77 1 4
Codexshaper_Oauth_Server_Loader::__construct()
S
77 1 4
Codexshaper_Oauth_Server_Admin::__construct()
S
77 1 4
Codexshaper_Oauth_Server\Exceptions\Handler::render_for_console()
S
79 1 3
Codexshaper_Oauth_Server\Exceptions\Handler::invalid_json()
S
67 1 9
codexshaper_oauth_server_run()
S
77 1 4
Codexshaper_Oauth_Server\Http\Kernel::get_route_middleware()
S
82 1 3
Codexshaper_Oauth_Server_Deactivator::deactivate()
S
81 1 3
Codexshaper_Oauth_Server::define_constants()
S
85 1 3
codexshaper_oauth_server_csrf_token()
S
81 1 3
Codexshaper_Oauth_Server\Http\Kernel::dispatch_to_router()
S
72 1 6
Codexshaper_Oauth_Server::get_loader()
S
82 1 3
Codexshaper_Oauth_Server::define_oauth2_hooks()
S
72 1 5
codexshaper_oauth_server_deactivate()
S
73 1 5
Codexshaper_Oauth_Server_Admin_Menu::enqueue_scripts()
S
73 1 5
Codexshaper_Oauth_Server\Exceptions\Handler::get_http_exception_view()
S
79 1 3
Codexshaper_Oauth_Server::register_assets()
S
77 1 4
Codexshaper_Oauth_Server\Support\Facades\Route::getFacadeAccessor()
S
80 1 3
Codexshaper_Oauth_Server_Admin_Menu::save()
S
79 1 3
Codexshaper_Oauth_Server::define_public_hooks()
S
72 1 5
Codexshaper_Oauth_Server_Loader::add_action()
S
77 1 3
Codexshaper_Oauth_Server\Http\Kernel::send_request_through_router()
S
66 1 9
Codexshaper_Oauth_Server\Http\Kernel::render_exception()
S
78 1 3
Codexshaper_Oauth_Server::run()
S
82 1 3
Codexshaper_Oauth_Server::get_version()
S
82 1 3
Codexshaper_Oauth_Server_Activator::activate()
S
77 1 4
Codexshaper_Oauth_Server\App\Exceptions\Handler::render()
S
79 1 3
Codexshaper_Oauth_Server_Admin_Menu::init_hooks()
S
79 1 3
Codexshaper_Oauth_Server\Http\Kernel::terminate()
S
76 1 4
Codexshaper_Oauth_Server\Http\Kernel::get_middleware_groups()
S
82 1 3
Codexshaper_Oauth_Server_Admin::enqueue_scripts()
S
77 1 3
Codexshaper_Oauth_Server\Http\Kernel::has_middleware()
S
79 1 3
Codexshaper_Oauth_Server\Exceptions\Handler::invalid()
S
72 1 5