Code Analysis: Enable Mastodon Apps 0.3.2

Function Rating Maintainability Complexity Lines of code
Enable_Mastodon_Apps\Mastodon_Admin::process_admin()
D
25
38 183
Enable_Mastodon_Apps\Mastodon_App::register_taxonomy()
D
26
27 184
Enable_Mastodon_Apps\Mastodon_Admin::admin_page()
D
22
21 273
Enable_Mastodon_Apps\Mastodon_API::get_status_array()
C
28
26 135
Enable_Mastodon_Apps\Mastodon_API::get_friend_account_data()
C
29
23 138
Enable_Mastodon_Apps\Mastodon_API::api_submit_post()
C
31 22 112
Enable_Mastodon_Apps\Mastodon_API::add_rest_routes()
B
23
1 389
Enable_Mastodon_Apps\Mastodon_API::api_get_post_context()
B
37 15 73
Enable_Mastodon_Apps\Mastodon_API::api_search()
A
40 15 60
Enable_Mastodon_Apps\Mastodon_API::api_account_relationships()
A
42 13 50
Enable_Mastodon_Apps\Mastodon_API::get_posts()
A
43 13 47
Enable_Mastodon_Apps\Mastodon_API::api_account_follow()
A
45 12 37
Enable_Mastodon_Apps\Mastodon_API::get_notification_array()
A
51 11 28
Enable_Mastodon_Apps\Mastodon_API::webfinger()
A
45 9 41
Enable_Mastodon_Apps\Mastodon_API::api_notifications()
A
50 10 24
Enable_Mastodon_Apps\Mastodon_API::get_json()
A
48 9 38
Enable_Mastodon_Apps\Mastodon_API::api_account_unfollow()
A
51 9 24
Enable_Mastodon_Apps\Mastodon_API::convert_activity_to_status()
A
38 5 83
Enable_Mastodon_Apps\OAuth2\AuthorizeHandler::handle()
A
54 9 18
Enable_Mastodon_Apps\Mastodon_API::get_activitypub_url()
A
55 9 18
Enable_Mastodon_Apps\Mastodon_API::rewrite_rules()
A
40 6 62
Enable_Mastodon_Apps\Mastodon_API::update_account_data_with_meta()
A
48 8 32
Enable_Mastodon_Apps\Mastodon_API::get_posts_query_args()
A
47 7 36
Enable_Mastodon_Apps\Mastodon_OAuth::handle_oauth()
A
49 7 32
Enable_Mastodon_Apps\OAuth2\AuthenticateHandler::handle()
S
46 6 37
Enable_Mastodon_Apps\Mastodon_API::api_apps()
S
49 6 31
Enable_Mastodon_Apps\Mastodon_App::modify_wp_query_args()
S
46 5 45
Enable_Mastodon_Apps\Mastodon_App::is_outdated()
S
60 7 13
Enable_Mastodon_Apps\Mastodon_API::api_account_statuses()
S
52 6 23
td_timestamp()
S
49 5 36
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::setAuthorizationCode()
S
55 5 19
Enable_Mastodon_Apps\Mastodon_API::api_delete_post()
S
55 5 19
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::setAccessToken()
S
56 5 18
Enable_Mastodon_Apps\Mastodon_API::api_notification_dismiss()
S
57 5 16
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_App::check_redirect_uri()
S
62 4 12
Enable_Mastodon_Apps\Mastodon_API::api_notification_clear()
S
61 4 12
Enable_Mastodon_Apps\Mastodon_API::api_notification_get()
S
62 4 12
Enable_Mastodon_Apps\Mastodon_API::api_post_media()
S
51 3 27
Enable_Mastodon_Apps\Mastodon_App::delete_outdated()
S
63 4 11
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::getAccessToken()
S
55 3 20
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\OAuth2\AuthorizationCodeStorage::getAll()
S
57 3 17
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::getAuthorizationCode()
S
57 3 17
Enable_Mastodon_Apps\Mastodon_App::get_all()
S
59 3 15
Enable_Mastodon_Apps\Mastodon_API::api_unreblog_post()
S
62 3 12
Enable_Mastodon_Apps\Mastodon_API::api_reblog_post()
S
62 3 12
Enable_Mastodon_Apps\Mastodon_API::software_string()
S
62 3 12
Enable_Mastodon_Apps\Mastodon_API::api_nodeinfo()
S
47 1 42
Enable_Mastodon_Apps\Mastodon_API::api_get_post()
S
62 3 11
Enable_Mastodon_Apps\Mastodon_OAuth::__construct()
S
54 2 20
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::cleanupOldTokens()
S
56 2 19
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::cleanupOldCodes()
S
56 2 19
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::__construct()
S
59 2 15
Enable_Mastodon_Apps\Mastodon_API::get_acct()
S
63 3 10
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::was_used()
S
63 3 10
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::checkClientCredentials()
S
64 3 10
Enable_Mastodon_Apps\Mastodon_API::logged_in_for_private_permission()
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_OAuth::authenticate()
S
68 3 7
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::__construct()
S
59 2 15
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\AuthorizationCodeStorage::uninstall()
S
62 2 12
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\Mastodon_API::have_token_permission()
S
63 2 11
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::getClientDetails()
S
63 2 11
Enable_Mastodon_Apps\Mastodon_API::public_api_permission()
S
63 2 11
Enable_Mastodon_Apps\Mastodon_API::api_instance()
S
56 1 19
Enable_Mastodon_Apps\Mastodon_API::get_comment_status_array()
S
57 1 18
mastodon_api_pixelfed_post_formats()
S
71 2 6
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::isPublicClient()
S
68 2 7
Enable_Mastodon_Apps\Mastodon_API::api_favourite_post()
S
65 2 9
Enable_Mastodon_Apps\Mastodon_API::allow_cors()
S
64 2 10
Enable_Mastodon_Apps\Mastodon_API::api_unfavourite_post()
S
65 2 9
Enable_Mastodon_Apps\Mastodon_API::default_option_mastodon_api_default_post_formats()
S
68 2 8
Enable_Mastodon_Apps\Mastodon_App::set_post_formats()
S
65 2 9
Enable_Mastodon_Apps\Mastodon_App::was_used()
S
70 2 6
Enable_Mastodon_Apps\Mastodon_OAuth::get_token()
S
67 2 8
Enable_Mastodon_Apps\Mastodon_API::get_mastodon_language()
S
70 2 6
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::expireAuthorizationCode()
S
68 2 7
mastodon_api_pixelfed_nodeinfo_software()
S
66 2 9
Enable_Mastodon_Apps\Mastodon_API::activitypub_post()
S
69 2 7
Enable_Mastodon_Apps\Mastodon_API::check_url()
S
66 2 8
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::unsetAccessToken()
S
68 2 7
Enable_Mastodon_Apps\Mastodon_API::api_timelines()
S
66 2 8
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::checkRestrictedGrantType()
S
70 2 6
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::getClientScope()
S
69 2 7
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::sanitize_redirect_uri()
S
78 1 3
Enable_Mastodon_Apps\Mastodon_API::api_instance_peers()
S
82 1 3
Enable_Mastodon_Apps\OAuth2\RevokationHandler::handle()
S
79 1 3
Enable_Mastodon_Apps\Mastodon_OAuth::get_token_storage()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_App::get_client_secret()
S
79 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\AuthenticateHandler::get_cancel_url()
S
65 1 10
Enable_Mastodon_Apps\Mastodon_App::get_query_args()
S
79 1 3
Enable_Mastodon_Apps\Mastodon_App::get_scopes()
S
79 1 3
Enable_Mastodon_Apps\Mastodon_API::get_user_acct()
S
78 1 3
Enable_Mastodon_Apps\Mastodon_OAuth::authenticate_handler()
S
68 1 7
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::sanitize_scope()
S
78 1 3
Enable_Mastodon_Apps\Mastodon_API::api_push_subscription()
S
82 1 3
Enable_Mastodon_Apps\Mastodon_API::__construct()
S
72 1 6
Enable_Mastodon_Apps\Mastodon_App::get_client_name()
S
79 1 3
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::sanitize_token()
S
78 1 3
Enable_Mastodon_Apps\Mastodon_API::api_public_timeline()
S
82 1 3
Enable_Mastodon_Apps\Mastodon_App::get_website()
S
79 1 3
Enable_Mastodon_Apps\Mastodon_API::api_verify_credentials()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_OAuth::get_code_storage()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_App::get_redirect_uris()
S
79 1 3
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::sanitize_redirect_uri()
S
78 1 3
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::get()
S
80 1 3
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::sanitize_user_id()
S
80 1 3
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::sanitize_client_id()
S
78 1 3
Enable_Mastodon_Apps\OAuth2\TokenHandler::handle()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_Admin::admin_menu()
S
65 1 10
Enable_Mastodon_Apps\Mastodon_App::get_creation_date()
S
79 1 3
Enable_Mastodon_Apps\OAuth2\TokenHandler::__construct()
S
81 1 3
Enable_Mastodon_Apps\OAuth2\RevokationHandler::__construct()
S
81 1 3
Enable_Mastodon_Apps\Mastodon_API::query_vars()
S
77 1 4
Enable_Mastodon_Apps\Mastodon_App::__construct()
S
81 1 3
Enable_Mastodon_Apps\Mastodon_API::register_hooks()
S
66 1 8
Enable_Mastodon_Apps\Mastodon_App::delete()
S
79 1 3
Enable_Mastodon_Apps\OAuth2\MastodonAppStorage::has()
S
75 1 4
Enable_Mastodon_Apps\OAuth2\AuthorizeHandler::__construct()
S
81 1 3
Enable_Mastodon_Apps\Mastodon_App::get_client_id()
S
82 1 3
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::sanitize_expires()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_Admin::__construct()
S
75 1 4
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::sanitize_scope()
S
78 1 3
Enable_Mastodon_Apps\Mastodon_API::normalize_whitespace()
S
72 1 5
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::sanitize_user_id()
S
80 1 3
Enable_Mastodon_Apps\OAuth2\AccessTokenStorage::sanitize_last_used()
S
80 1 3
Enable_Mastodon_Apps\Mastodon_App::get_last_used()
S
79 1 3
Enable_Mastodon_Apps\Mastodon_API::api_account()
S
78 1 3
Enable_Mastodon_Apps\OAuth2\AuthorizationCodeStorage::sanitize_expires()
S
80 1 3