Code Analysis: XPoster - Share to X and Mastodon 4.2.3

Function Rating Maintainability Complexity Lines of code
wpt_tweet()
D
15
74 232
wpt_update_settings()
D
11
42 520
wpt_shorten_url()
D
18
61 214
wpt_updated_settings()
D
20
54 199
wpt_add_twitter_inner_box()
D
20
52 205
wpt_update_oauth_settings()
D
25
41 154
jd_truncate_tweet()
D
27
42 123
wpt_shortener_update()
D
33 33 91
wtt_connect_oauth()
C
27
26 141
wpt_generate_hash_tags()
C
35 29 73
wpt_save_post()
C
40 29 47
wpt_ajax_tweet()
C
36 25 67
wpt_post_to_twitter()
B
34 22 88
WPT_Normalizer::decompose()
B
36 22 75
TmhOAuth::curlit()
B
33 20 98
WPT_Normalizer::recompose()
B
38 21 62
wpt_update_mastodon_settings()
B
38 19 73
wpt_show_tweets()
B
37 18 73
wtt_connect_mastodon()
B
35 17 80
wpt_shortener_controls()
B
32 13 127
wpt_get_support_form()
B
30 13 126
wpt_get_response_message()
B
40 16 60
wpt_create_values()
A
39 15 60
mb_substr_split_unicode()
A
48 16 35
wpt_check_functions()
A
41 15 48
wpt_admin_scripts()
A
39 13 59
wpt_post_info()
A
37 12 68
WPT_Normalizer::normalize()
A
45 13 45
wptotwitter_activate()
A
38 10 72
wpt_needs_connection()
A
49 13 25
wpt_do_server_check()
A
40 10 56
wpt_twit()
A
59 13 11
wpt_send_post_to_twitter()
A
39 9 65
WP_Oauth_Request::from_request()
A
49 11 28
wpt_sidebar()
A
37 6 100
wpt_post_submit_handler()
A
48 10 32
WP_Oauth_Request::get_normalized_http_url()
A
56 11 15
wpt_needs_bearer_token()
A
53 10 21
wpt_remote_json()
A
48 9 34
wpt_expand_yourl()
A
46 8 40
wpt_image_binary()
A
46 8 39
TmhOAuth::prepare_params()
A
49 8 33
wpt_view_rate_limits()
A
46 8 33
wpt_remove_tag()
A
58 9 17
TmhOAuth::prepare_url()
A
56 9 15
wpt_settings_tabs()
A
48 8 28
wpt_pick_shortener()
A
46 7 41
wpt_tweet_length()
A
52 8 24
Wpt_TwitterOAuth::wp_oauth_request()
A
47 7 38
wpt_store_url()
A
53 8 23
wpt_oauth_connection()
A
46 7 38
WPOAuthUtil::get_headers()
A
49 7 33
wpt_test_rate_limit()
S
51 7 26
wpt_send_post_to_mastodon()
S
46 6 38
WPOAuthUtil::parse_parameters()
S
54 7 21
wpt_checkbox()
S
56 7 19
wpt_select_shortener()
S
54 7 19
wpt_attachment_path()
S
55 7 18
wpt_post_with_media()
S
56 7 17
wpt_twit_link()
S
48 6 32
wpt_admin_style()
S
62 8 9
wpt_pro_is_valid()
S
60 7 13
wpt_check_recent_tweet()
S
52 6 25
wpt_mastodon_connection()
S
54 6 23
wpt_show_debug()
S
47 5 37
WP_Oauth_Request::to_header()
S
53 6 21
Wpt_TwitterOAuth::handle_media_request()
S
44 4 49
TmhOAuth::curl_header()
S
55 6 18
WPOAuthUtil::split_header()
S
55 6 18
wpt_filter_urls()
S
57 6 16
wpt_add_twitter_outer_box()
S
59 6 13
wpt_post_attachment()
S
51 5 27
wpt_allowed_post_types()
S
60 6 12
wpt_fetch_url()
S
53 5 25
WPOAuthUtil::build_http_query()
S
54 5 21
TmhOAuth::url()
S
55 5 20
wtt_option_selected()
S
57 5 19
wpt_show_last_tweet()
S
55 5 17
wpt_upload_twitter_media()
S
50 4 31
wpt_normalize()
S
60 5 14
wpt_possible_post_types()
S
59 5 13
wpt_twit_instant()
S
61 5 12
TmhOAuth::curl_write()
S
52 4 26
wpt_update_authenticated_users()
S
53 4 25
wpt_handle_errors()
S
54 4 21
wpt_upload_mastodon_media()
S
54 4 21
wpt_log_success()
S
55 4 19
wpt_user_meta_shortcodes()
S
56 4 17
wpt_custom_shortcodes()
S
56 4 17
wpt_twit_xmlrpc()
S
64 5 9
wpt_dismiss_connection()
S
71 5 5
wpt_short_url()
S
63 5 10
wpt_plugin_update_message()
S
57 4 15
WPT_Normalizer::is_normalized()
S
64 5 9
wpt_save_success()
S
60 4 14
TmhOAuth::set_user_agent()
S
61 4 12
wtt_oauth_test()
S
62 4 12
wpt_save_error()
S
56 3 20
TmhOAuth::get_defaults()
S
58 3 16
TmhOAuth::streaming_request()
S
57 3 16
TmhOAuth::create_nonce()
S
62 4 9
WP_Oauth_Request::set_parameter()
S
64 4 10
wpt_add_twitter_debug_box()
S
64 4 9
wpt_old_admin_redirect()
S
69 4 6
wpt_save_term_rate_limit()
S
63 4 10
wpt_future_to_publish()
S
66 4 8
mb_strrpos()
S
62 4 10
WPOAuthServer::get_signature_method()
S
59 3 14
WPOAuthServer::check_nonce()
S
61 3 14
wp_get_curl()
S
59 3 14
WPOAuthUtil::urlencode_rfc3986()
S
61 3 13
TmhOAuth::safe_encode()
S
61 3 13
TmhOAuth::prepare_auth_header()
S
59 3 13
WPOAuthServer::check_timestamp()
S
61 3 13
wpt_term_rate_limits()
S
60 3 13
TmhOAuth::__construct()
S
46 1 42
Wpt_TwitterOAuth::wp_oauth_parse_response()
S
62 3 11
wpt_in_post_type()
S
63 3 11
WPOAuthServer::get_consumer()
S
63 3 11
Wpt_Mastodon_Api::call_api()
S
53 2 23
wpt_faq()
S
56 2 18
WPOAuthServer::check_signature()
S
57 2 17
TmhOAuth::prepare_base_string()
S
59 2 16
Wpt_TwitterOAuth::media()
S
67 3 7
wpt_twit_future()
S
66 3 8
wpt_auto_tweet()
S
64 3 8
wpt_get_log()
S
63 3 10
wpt_get_rate_limit()
S
66 3 8
wpt_has_tags()
S
65 3 9
wpt_debugging_enabled()
S
72 3 5
wpt_mail()
S
64 3 10
wpt_default_rate_limit()
S
70 3 5
wpt_edit_term_rate_limit()
S
60 2 15
wpt_selected()
S
70 3 6
wpt_debug_log()
S
66 3 9
Wpt_TwitterOAuth::get()
S
67 3 7
TmhOAuth::sign()
S
59 2 15
Wpt_TwitterOAuth::__construct()
S
64 3 9
wpt_admin_page()
S
69 3 6
wpt_link()
S
65 3 9
wpt_check_version()
S
67 3 7
Wpt_TwitterOAuth::post()
S
67 3 7
TmhOAuth::safe_decode()
S
65 3 9
WPOAuthServer::get_version()
S
64 3 10
WP_Oauth_Request::from_consumer_and_token()
S
60 2 13
TmhOAuth::request()
S
61 2 12
TmhOAuth::update_metrics()
S
60 2 12
wpt_set_log()
S
62 2 12
TmhOAuth::extract_params()
S
62 2 11
wpt_delete_copied_meta()
S
63 2 11
wpt_get_user_verification()
S
67 2 8
Wpt_TwitterOAuth::getauthorize_url()
S
70 2 6
wpt_auto_tweet_allowed()
S
71 2 5
TmhOAuth::create_timestamp()
S
77 2 3
WP_Oauth_Request::get_signable_parameters()
S
69 2 7
wpt_plugin_action()
S
67 2 7
wpt_is_ssl()
S
70 2 7
wpt_set_auto_tweet_allowed()
S
69 2 7
wpt_is_writable()
S
68 2 8
WPOAuthServer::get_token()
S
66 2 8
wpt_check_caps()
S
69 2 7
wpt_post_is_new()
S
64 2 10
wpt_is_valid_url()
S
67 2 8
WP_Oauth_Request::to_url()
S
67 2 8
wpt_check_oauth()
S
67 2 8
WP_Oauth_Request::get_parameter()
S
78 2 3
wtt_oauth_credentials_to_hash()
S
65 2 8
Wpt_TwitterOAuth::getauthenticate_url()
S
70 2 6
wpt_length_array()
S
70 2 6
WPT_Normalizer::get_data()
S
66 2 8
wpt_set_tweet_length()
S
73 2 5
WPOAuthSignatureMethod_PLAINTEXT::build_signature()
S
68 2 7
wpt_has()
S
71 2 6
wpt_max_length()
S
64 2 9
WPOAuthSignatureMethod_HMAC_SHA1::build_signature()
S
65 2 8
WPOAuthSignatureMethod::get_name()
S
100 1 0
wpt_add_term_rate_limit()
S
68 1 8
Wpt_TwitterOAuth::request_token_url()
S
82 1 3
WPOAuthToken::__toString()
S
81 1 3
WPOAuthSignatureMethod::build_signature()
S
100 1 0
Wpt_TwitterOAuth::get_access_token()
S
69 1 6
Wpt_Mastodon_Api::post_status()
S
79 1 3
Wpt_TwitterOAuth::access_token_url()
S
82 1 3
Wpt_TwitterOAuth::authorize_url()
S
82 1 3
WP_Oauth_Request::unset_parameter()
S
80 1 3
jd_twit_link()
S
81 1 3
WPOAuthSignatureMethod::check_signature()
S
74 1 4
WPOAuthToken::to_string()
S
78 1 3
WP_Oauth_Request::sign_request()
S
66 1 9
Wpt_TwitterOAuth::authenticate_url()
S
82 1 3
WPOAuthDataStore::new_access_token()
S
100 1 2
Wpt_TwitterOAuth::get_request_token()
S
69 1 6
jd_update_oauth_settings()
S
80 1 3
wpt_load_textdomain()
S
82 1 3
WPOAuthSignatureMethod_RSA_SHA1::fetch_public_cert()
S
100 1 0
WP_Oauth_Request::get_signature_base_string()
S
66 1 9
wpt_post_to_service()
S
75 1 4
WP_Oauth_Request::__construct()
S
70 1 6
Wpt_Mastodon_Api::__construct()
S
77 1 4
WPOAuthSignatureMethod_RSA_SHA1::check_signature()
S
66 1 8
wpt_make_tag()
S
81 1 3
WPOAuthSignatureMethod_PLAINTEXT::get_name()
S
82 1 3
WPOAuthServer::__construct()
S
82 1 3
WPOAuthDataStore::lookup_consumer()
S
100 1 2
jd_twit()
S
80 1 3
wpt_category_limit()
S
65 1 9
WP_Oauth_Request::get_parameters()
S
82 1 3
WPOAuthServer::fetch_request_token()
S
65 1 9
WPOAuthUtil::urldecode_rfc3986()
S
80 1 3
WPOAuthDataStore::lookup_nonce()
S
100 1 2
Wpt_Mastodon_Api::verify()
S
79 1 3
Wpt_Mastodon_Api::upload_media()
S
79 1 3
TmhOAuth::prepare_method()
S
80 1 3
WPOAuthConsumer::__construct()
S
74 1 5
jd_fetch_url()
S
78 1 3
wpt_mask_attr()
S
69 1 6
WP_Oauth_Request::__toString()
S
81 1 3
wpt_tags()
S
75 1 3
WP_Oauth_Request::build_signature()
S
75 1 4
WPOAuthSignatureMethod_RSA_SHA1::build_signature()
S
66 1 8
WPOAuthSignatureMethod_RSA_SHA1::fetch_private_cert()
S
100 1 0
WPOAuthSignatureMethod_RSA_SHA1::get_name()
S
82 1 3
WP_Oauth_Request::generate_nonce()
S
72 1 5
jd_post_info()
S
81 1 3
Wpt_TwitterOAuth::last_api_call()
S
82 1 3
wpt_cap_checkbox()
S
75 1 3
WPOAuthDataStore::new_request_token()
S
100 1 2
WPOAuthServer::verify_request()
S
68 1 7
WP_Oauth_Request::to_postdata()
S
80 1 3
TmhOAuth::prepare_signing_key()
S
77 1 3
WP_Oauth_Request::generate_timestamp()
S
76 1 4
WPOAuthToken::__construct()
S
77 1 4
WPOAuthDataStore::lookup_token()
S
100 1 2
WP_Oauth_Request::get_normalized_http_method()
S
80 1 3
WPOAuthSignatureMethod_HMAC_SHA1::get_name()
S
82 1 3
wpt_clear_rate_limits()
S
82 1 3
TmhOAuth::transform_text()
S
79 1 3
WPOAuthServer::fetch_access_token()
S
65 1 9
WPOAuthConsumer::__toString()
S
79 1 3
jd_remote_json()
S
80 1 3
Wpt_TwitterOAuth::last_status_code()
S
82 1 3
WPOAuthServer::add_signature_method()
S
79 1 3