Code Analysis: Enable Mastodon Apps 0.6.4

Function Rating Maintainability Complexity Lines of code
Enable_Mastodon_Apps\Mastodon_Admin::admin_page()
D
14
32 458
Enable_Mastodon_Apps\Mastodon_Admin::process_admin()
D
21
46 236
Enable_Mastodon_Apps\Mastodon_App::register_taxonomy()
D
22
41 222
Enable_Mastodon_Apps\Mastodon_API::get_friend_account_data()
D
22
42 191
Enable_Mastodon_Apps\Mastodon_API::get_status_array()
D
23
37 183
Enable_Mastodon_Apps\Mastodon_API::api_notifications()
C
33 29 83
Enable_Mastodon_Apps\Mastodon_API::update_account_data_with_meta()
C
37 29 65
Enable_Mastodon_Apps\Mastodon_API::api_submit_post()
C
30 24 120
Enable_Mastodon_Apps\Mastodon_API::add_rest_routes()
C
21
1 442
Enable_Mastodon_Apps\Mastodon_API::get_posts()
C
35 24 87
Enable_Mastodon_Apps\Mastodon_API::api_get_post_context()
B
38 15 73
Enable_Mastodon_Apps\Mastodon_API::api_search()
A
40 15 60
Enable_Mastodon_Apps\Mastodon_OAuth::handle_oauth()
A
41 13 53
Enable_Mastodon_Apps\Mastodon_API::api_account_relationships()
A
43 12 50
Enable_Mastodon_Apps\Mastodon_API::get_json()
A
45 11 44
Enable_Mastodon_Apps\Mastodon_API::api_post_media()
A
41 9 59
Enable_Mastodon_Apps\Mastodon_API::get_notification_array()
A
51 11 28
Enable_Mastodon_Apps\Mastodon_API::convert_activity_to_status()
A
36 6 94
Enable_Mastodon_Apps\Mastodon_API::webfinger()
A
45 9 41
Enable_Mastodon_Apps\Mastodon_API::api_account_follow()
A
47 9 34
Enable_Mastodon_Apps\Mastodon_API::api_account_statuses()
A
48 9 32
Enable_Mastodon_Apps\Mastodon_API::rewrite_rules()
A
39 6 70
Enable_Mastodon_Apps\Mastodon_API::api_account_unfollow()
A
51 9 24
Enable_Mastodon_Apps\Mastodon_API::get_activitypub_url()
A
55 9 18
Enable_Mastodon_Apps\OAuth2\AuthorizeHandler::handle()
A
54 9 18
Enable_Mastodon_Apps\Mastodon_API::get_posts_query_args()
A
47 7 36
Enable_Mastodon_Apps\Mastodon_API::api_apps()
A
47 7 34
Enable_Mastodon_Apps\OAuth2\AuthenticateHandler::handle()
S
46 6 37
output_request_log()
S
47 6 36
Enable_Mastodon_Apps\Mastodon_App::modify_wp_query_args()
S
46 5 45
Enable_Mastodon_Apps\Mastodon_API::log_404s()
S
50 6 30
Enable_Mastodon_Apps\Mastodon_App::is_outdated()
S
60 7 13
td_timestamp()
S
49 5 36
Enable_Mastodon_Apps\Mastodon_App::was_used()
S
50 5 30
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::has()
S
51 5 24
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::setAuthorizationCode()
S
55 5 19
Enable_Mastodon_Apps\Mastodon_API::api_delete_post()
S
56 5 19
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::checkClientCredentials()
S
57 5 18
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::setAccessToken()
S
56 5 18
Enable_Mastodon_Apps\Mastodon_API::get_acct()
S
60 5 13
Enable_Mastodon_Apps\Mastodon_App::save()
S
50 4 27
Enable_Mastodon_Apps\OAuth2\AuthenticateHandler::render_consent_screen()
S
46 2 48
Enable_Mastodon_Apps\Mastodon_API::api_update_media()
S
57 4 16
Enable_Mastodon_Apps\Mastodon_App::check_scopes()
S
59 4 14
Enable_Mastodon_Apps\Mastodon_API::api_notification_dismiss()
S
59 4 14
Enable_Mastodon_Apps\Mastodon_App::check_redirect_uri()
S
62 4 12
Enable_Mastodon_Apps\Mastodon_App::get_last_requests()
S
61 4 12
Enable_Mastodon_Apps\Mastodon_App::delete_outdated()
S
63 4 11
Enable_Mastodon_Apps\Mastodon_API::api_announcements()
S
47 2 38
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::getAccessToken()
S
55 3 20
Enable_Mastodon_Apps\Mastodon_API::public_api_permission()
S
55 3 20
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::getAll()
S
57 3 17
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::getAuthorizationCode()
S
57 3 17
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::getAll()
S
57 3 17
Enable_Mastodon_Apps\Mastodon_API::api_get_media()
S
56 3 17
Enable_Mastodon_Apps\Mastodon_App::get_all()
S
59 3 15
Enable_Mastodon_Apps\Mastodon_API::api_reblog_post()
S
61 3 13
Enable_Mastodon_Apps\Mastodon_API::api_unreblog_post()
S
61 3 13
Enable_Mastodon_Apps\Mastodon_API::api_nodeinfo()
S
47 1 42
Enable_Mastodon_Apps\Mastodon_API::software_string()
S
62 3 12
Enable_Mastodon_Apps\Mastodon_App::get_debug_app()
S
61 3 12
Enable_Mastodon_Apps\Mastodon_API::api_get_post()
S
63 3 11
Enable_Mastodon_Apps\Mastodon_OAuth::__construct()
S
53 2 21
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::cleanupOldCodes()
S
56 2 19
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::cleanupOldTokens()
S
56 2 19
Enable_Mastodon_Apps\Mastodon_API::remap_reblog_id()
S
57 2 18
Enable_Mastodon_Apps\Mastodon_API::remap_comment_id()
S
57 2 18
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::__construct()
S
59 2 15
Enable_Mastodon_Apps\Mastodon_OAuth::authenticate()
S
68 3 7
Enable_Mastodon_Apps\Mastodon_API::logged_in_for_private_permission()
S
64 3 10
Enable_Mastodon_Apps\Mastodon_API::activitypub_post()
S
64 3 10
Enable_Mastodon_Apps\Mastodon_App::get_post_formats()
S
67 3 7
Enable_Mastodon_Apps\Mastodon_API::convert_outbox_to_status()
S
64 3 10
Enable_Mastodon_Apps\Mastodon_API::get_user_id_from_request()
S
64 3 10
Enable_Mastodon_Apps\Mastodon_API::api_notification_clear()
S
63 3 10
Enable_Mastodon_Apps\Mastodon_API::api_notification_get()
S
64 3 10
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::__construct()
S
59 2 15
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::was_used()
S
63 3 10
Enable_Mastodon_Apps\OAuth2\AuthenticateHandler::render_no_permission_screen()
S
53 1 30
Enable_Mastodon_Apps\Mastodon_Admin::post_format_select()
S
62 2 13
Enable_Mastodon_Apps\Mastodon_App::get_by_client_id()
S
61 2 13
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::uninstall()
S
62 2 12
Enable_Mastodon_Apps\Mastodon_API::logged_in_permission()
S
61 2 12
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::uninstall()
S
62 2 12
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::getClientDetails()
S
63 2 11
Enable_Mastodon_Apps\Mastodon_API::have_token_permission()
S
62 2 11
Enable_Mastodon_Apps\Mastodon_API::api_instance()
S
55 1 19
Enable_Mastodon_Apps\Mastodon_API::get_comment_status_array()
S
57 1 18
mastodon_api_pixelfed_nodeinfo_software()
S
66 2 9
Enable_Mastodon_Apps\Mastodon_API::api_public_timeline()
S
64 2 9
mastodon_api_pixelfed_post_formats()
S
71 2 6
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::getClientScope()
S
69 2 7
Enable_Mastodon_Apps\Mastodon_API::maybe_get_remapped_reblog_id()
S
69 2 7
Enable_Mastodon_Apps\OAuth2\AuthorizeHandler::test_authorize()
S
66 2 8
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::isPublicClient()
S
68 2 7
Enable_Mastodon_Apps\Mastodon_API::default_option_mastodon_api_default_post_formats()
S
68 2 8
Enable_Mastodon_Apps\Mastodon_API::register_custom_post_type()
S
60 1 15
Enable_Mastodon_Apps\Mastodon_API::api_favourite_post()
S
64 2 10
Enable_Mastodon_Apps\Mastodon_API::api_unfavourite_post()
S
64 2 10
Enable_Mastodon_Apps\Mastodon_App::set_post_formats()
S
65 2 9
Enable_Mastodon_Apps\Mastodon_API::get_mastodon_language()
S
70 2 6
Enable_Mastodon_Apps\Mastodon_OAuth::get_token()
S
67 2 8
Enable_Mastodon_Apps\Mastodon_API::register_taxonomy()
S
59 1 15
Enable_Mastodon_Apps\Mastodon_API::check_url()
S
66 2 8
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::checkRestrictedGrantType()
S
70 2 6
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::unsetAccessToken()
S
68 2 7
Enable_Mastodon_Apps\Mastodon_API::allow_cors()
S
64 2 10
Enable_Mastodon_Apps\Mastodon_API::api_timelines()
S
66 2 8
Enable_Mastodon_Apps\Mastodon_API::get_remapped_comment_id()
S
69 2 7
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::expireAuthorizationCode()
S
68 2 7
Enable_Mastodon_Apps\Mastodon_API::api_instance_v2()
S
63 1 11
Enable_Mastodon_Apps\OAuth2\RevokationHandler::handle()
S
79 1 3
Enable_Mastodon_Apps\Mastodon_API::api_tag_timelines()
S
69 1 6
Enable_Mastodon_Apps\Mastodon_App::get_client_name()
S
79 1 3
Enable_Mastodon_Apps\Mastodon_App::__construct()
S
81 1 3
Enable_Mastodon_Apps\Mastodon_API::__construct()
S
68 1 8
Enable_Mastodon_Apps\Mastodon_API::api_verify_credentials()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_API::query_vars()
S
77 1 4
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::sanitize_scope()
S
78 1 3
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::sanitize_client_id()
S
78 1 3
Enable_Mastodon_Apps\Mastodon_API::api_preferences()
S
68 1 7
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::sanitize_user_id()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_App::set_client_secret()
S
79 1 3
Enable_Mastodon_Apps\Mastodon_App::get_redirect_uris()
S
79 1 3
Enable_Mastodon_Apps\OAuth2\AuthenticateHandler::get_cancel_url()
S
65 1 10
Enable_Mastodon_Apps\Mastodon_API::api_push_subscription()
S
82 1 3
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::sanitize_redirect_uri()
S
78 1 3
Enable_Mastodon_Apps\Mastodon_OAuth::authenticate_handler()
S
68 1 7
Enable_Mastodon_Apps\Mastodon_API::get_user_acct()
S
78 1 3
Enable_Mastodon_Apps\Mastodon_API::api_account()
S
75 1 4
Enable_Mastodon_Apps\Mastodon_OAuth::get_token_storage()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_API::normalize_whitespace()
S
67 1 7
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::sanitize_last_used()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_App::get_client_id()
S
82 1 3
Enable_Mastodon_Apps\Mastodon_API::api_accounts_search()
S
72 1 5
Enable_Mastodon_Apps\Mastodon_API::register_hooks()
S
63 1 10
Enable_Mastodon_Apps\OAuth2\AuthorizeHandler::__construct()
S
81 1 3
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::sanitize_scope()
S
78 1 3
Enable_Mastodon_Apps\Mastodon_App::get_creation_date()
S
79 1 3
Enable_Mastodon_Apps\OAuth2\RevokationHandler::__construct()
S
81 1 3
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::sanitize_redirect_uri()
S
78 1 3
Enable_Mastodon_Apps\OAuth2\TokenHandler::__construct()
S
81 1 3
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::sanitize_client_id()
S
78 1 3
Enable_Mastodon_Apps\Mastodon_App::get_query_args()
S
79 1 3
Enable_Mastodon_Apps\Mastodon_Admin::admin_menu()
S
65 1 10
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::get()
S
80 1 3
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::sanitize_expires()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_App::delete_last_requests()
S
79 1 3
Enable_Mastodon_Apps\Mastodon_App::get_client_secret()
S
79 1 3
Enable_Mastodon_Apps\Mastodon_App::get_website()
S
79 1 3
Enable_Mastodon_Apps\OAuth2\TokenHandler::handle()
S
80 1 3
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::sanitize_token()
S
78 1 3
Enable_Mastodon_Apps\Mastodon_App::get_last_used()
S
79 1 3
Enable_Mastodon_Apps\Mastodon_OAuth::get_code_storage()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_Admin::__construct()
S
75 1 4
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::sanitize_user_id()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_App::delete()
S
79 1 3
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::sanitize_expires()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_App::get_scopes()
S
79 1 3