Code Analysis: WP to Twitter 3.6.0

Function Rating Maintainability Complexity Lines of code
wpt_tweet()
D
15
77 234
wpt_update_settings()
D
9
47 578
wpt_post_to_twitter()
D
18
60 217
wpt_shorten_url()
D
18
60 210
wpt_add_twitter_inner_box()
D
21
50 194
wpt_updated_settings()
D
23
48 159
jd_truncate_tweet()
D
27
42 123
wpt_update_oauth_settings()
D
28
33 127
wpt_shortener_update()
D
33 33 91
wpt_get_support_form()
C
26
24 151
wpt_generate_hash_tags()
C
35 29 73
wpt_save_post()
C
40 29 47
wpt_twitter_feed()
C
32 26 89
wtt_connect_oauth()
C
30 24 115
wpt_ajax_tweet()
C
36 24 66
WPT_Normalizer::decompose()
B
36 22 75
TmhOAuth::curlit()
B
33 20 98
WPT_Normalizer::recompose()
B
38 21 62
WPT_TwitterFeed::oauth_get_tweets()
B
36 17 76
wpt_shortener_controls()
B
32 13 127
wpt_tweet_linkify()
B
44 17 39
wpt_create_values()
A
39 15 60
Wpt_TwitterOAuth::handle_media_request()
A
34 12 95
mb_substr_split_unicode()
A
48 16 35
wpt_show_tweets()
A
41 14 55
WPT_Normalizer::normalize()
A
45 13 45
wptotwitter_activate()
A
38 10 72
wpt_do_server_check()
A
40 10 56
wpt_twit()
A
59 13 11
wpt_post_info()
A
38 9 68
wpt_sidebar()
A
36 6 106
WP_Oauth_Request::from_request()
A
49 11 28
wpt_check_functions()
A
44 10 41
WPT_TwitterFeed::check_valid_cache()
A
46 10 38
WP_Oauth_Request::get_normalized_http_url()
A
56 11 15
wpt_twitter_profile()
A
43 8 54
wpt_remote_json()
A
48 9 34
WPT_TwitterFeed::get_tweets()
A
49 9 32
wpt_admin_scripts()
A
49 9 30
wpt_expand_yourl()
A
46 8 40
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
49 8 27
wpt_pick_shortener()
A
46 7 41
wpt_store_url()
A
53 8 23
Wpt_TwitterOAuth::wp_oauth_request()
A
47 7 38
WPOAuthUtil::get_headers()
A
49 7 33
wpt_test_rate_limit()
S
51 7 26
WPOAuthUtil::parse_parameters()
S
54 7 21
wpt_tweet_length()
S
55 7 20
wpt_select_shortener()
S
54 7 19
wpt_admin_script()
S
47 6 34
wpt_twitter_save_profile()
S
55 7 18
wpt_post_with_media()
S
56 7 17
wpt_twit_link()
S
48 6 32
WPT_Search_Tweets_Widget::form()
S
42 4 60
wpt_check_recent_tweet()
S
52 6 25
WP_Oauth_Request::to_header()
S
53 6 22
wpt_show_debug()
S
47 5 37
wpt_oauth_connection()
S
54 6 21
WPOAuthUtil::split_header()
S
55 6 18
wpt_get_user()
S
56 6 17
wpt_checkbox()
S
57 6 17
wpt_filter_urls()
S
57 6 16
wpt_admin_style()
S
67 7 6
wpt_add_twitter_outer_box()
S
59 6 13
wpt_allowed_post_types()
S
60 6 12
wpt_fetch_url()
S
52 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
56 5 16
wpt_normalize()
S
60 5 14
wpt_twit_instant()
S
61 5 12
TmhOAuth::curl_write()
S
52 4 26
wpt_update_authenticated_users()
S
53 4 25
wpt_post_attachment()
S
53 4 24
WPT_Latest_Tweets_Widget::form()
S
42 1 68
wpt_handle_errors()
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_short_url()
S
63 5 10
wpt_generate_classes()
S
64 5 8
WPT_Normalizer::is_normalized()
S
64 5 9
wpt_twit_xmlrpc()
S
64 5 9
wtt_oauth_test()
S
62 4 12
TmhOAuth::set_user_agent()
S
61 4 12
wpt_saves_error()
S
56 3 20
TmhOAuth::get_defaults()
S
58 3 16
TmhOAuth::streaming_request()
S
57 3 16
mb_strrpos()
S
62 4 10
wpt_add_twitter_debug_box()
S
64 4 9
wp_get_curl()
S
58 3 15
wpt_save_term_rate_limit()
S
63 4 10
wpt_future_to_publish()
S
66 4 8
wpt_old_admin_redirect()
S
69 4 6
WP_Oauth_Request::set_parameter()
S
64 4 10
TmhOAuth::create_nonce()
S
62 4 9
TmhOAuth::curl_header()
S
58 3 15
WPOAuthServer::get_signature_method()
S
59 3 14
WPOAuthServer::check_nonce()
S
61 3 14
wpt_term_rate_limits()
S
60 3 13
TmhOAuth::safe_encode()
S
61 3 13
TmhOAuth::prepare_auth_header()
S
59 3 13
WPOAuthServer::check_timestamp()
S
61 3 13
WPOAuthUtil::urlencode_rfc3986()
S
61 3 13
wpt_plugin_update_message()
S
59 3 12
TmhOAuth::__construct()
S
46 1 42
wpt_in_post_type()
S
63 3 11
WPOAuthServer::get_consumer()
S
63 3 11
Wpt_TwitterOAuth::wp_oauth_parse_response()
S
62 3 11
wpt_get_twitter_feed()
S
49 1 35
WPOAuthServer::check_signature()
S
57 2 17
wpt_get_tweets()
S
56 2 16
TmhOAuth::prepare_base_string()
S
59 2 16
wpt_promotion_notice()
S
66 3 7
wpt_get_log()
S
63 3 10
TmhOAuth::safe_decode()
S
65 3 9
wpt_plugin_action()
S
62 3 10
wpt_auto_tweet()
S
64 3 8
Wpt_TwitterOAuth::post()
S
68 3 7
Wpt_TwitterOAuth::__construct()
S
65 3 9
wpt_debug_log()
S
66 3 9
wpt_mail()
S
64 3 10
wpt_dismiss_promotion()
S
72 3 5
wpt_get_rate_limit()
S
66 3 8
wpt_check_version()
S
67 3 7
wpt_edit_term_rate_limit()
S
60 2 15
wpt_admin_page()
S
68 3 6
wpt_debugging_enabled()
S
72 3 5
WPOAuthServer::get_version()
S
64 3 10
wpt_has_tags()
S
65 3 9
TmhOAuth::sign()
S
59 2 15
Wpt_TwitterOAuth::media()
S
68 3 7
Wpt_TwitterOAuth::get()
S
68 3 7
wpt_schedule_promotion()
S
72 3 5
wpt_link()
S
65 3 9
wpt_selected()
S
70 3 6
wpt_default_rate_limit()
S
70 3 5
wpt_twit_future()
S
66 3 8
WPT_Search_Tweets_Widget::widget()
S
59 2 14
WPT_Latest_Tweets_Widget::widget()
S
59 2 14
WP_Oauth_Request::from_consumer_and_token()
S
60 2 13
WPT_Latest_Tweets_Widget::__construct()
S
51 1 28
TmhOAuth::request()
S
61 2 12
TmhOAuth::update_metrics()
S
60 2 12
WPT_Search_Tweets_Widget::__construct()
S
52 1 26
TmhOAuth::extract_params()
S
62 2 11
wpt_delete_copied_meta()
S
63 2 11
wpt_css()
S
100 1 16
wpt_check_caps()
S
69 2 7
wpt_max_length()
S
64 2 9
wpt_check_oauth()
S
67 2 8
wpt_is_writable()
S
68 2 8
WPOAuthSignatureMethod_PLAINTEXT::build_signature()
S
68 2 7
wtt_oauth_credentials_to_hash()
S
65 2 8
wpt_is_ssl()
S
70 2 7
WPT_TwitterFeed::crop_tweets()
S
69 2 7
Wpt_TwitterOAuth::getauthorize_url()
S
71 2 6
wpt_basic_user_fields()
S
73 2 6
WPT_TwitterFeed::save_cache()
S
66 2 8
wpt_is_valid_url()
S
67 2 8
wpt_set_log()
S
67 2 8
TmhOAuth::create_timestamp()
S
77 2 3
wpt_set_auto_tweet_allowed()
S
69 2 7
wpt_permit_feed_styles()
S
71 2 6
WP_Oauth_Request::to_url()
S
67 2 8
WPOAuthSignatureMethod_HMAC_SHA1::build_signature()
S
65 2 8
WPT_Normalizer::get_data()
S
66 2 8
WP_Oauth_Request::get_parameter()
S
78 2 3
wpt_length_array()
S
70 2 6
Wpt_TwitterOAuth::getauthenticate_url()
S
71 2 6
wpt_stylesheet()
S
66 2 8
wpt_auto_tweet_allowed()
S
71 2 5
wpt_set_tweet_length()
S
73 2 5
WPOAuthServer::get_token()
S
66 2 8
wpt_get_user_verification()
S
67 2 8
WPT_TwitterFeed::delete_cache()
S
68 2 8
wpt_has()
S
71 2 6
WP_Oauth_Request::get_signable_parameters()
S
69 2 7
wpt_post_is_new()
S
64 2 10
WPOAuthServer::fetch_request_token()
S
65 1 9
WP_Oauth_Request::build_signature()
S
75 1 4
WPOAuthConsumer::__construct()
S
74 1 5
WPOAuthServer::add_signature_method()
S
79 1 3
WPOAuthDataStore::new_request_token()
S
100 1 2
jd_post_info()
S
81 1 3
WPT_TwitterFeed::__toString()
S
80 1 3
WPOAuthSignatureMethod_RSA_SHA1::check_signature()
S
64 1 9
WPOAuthSignatureMethod_RSA_SHA1::build_signature()
S
65 1 9
WPT_Latest_Tweets_Widget::update()
S
72 1 5
WPOAuthConsumer::__toString()
S
80 1 3
jd_twit()
S
80 1 3
WPOAuthSignatureMethod_PLAINTEXT::get_name()
S
82 1 3
wpt_tags()
S
75 1 3
WP_Oauth_Request::get_normalized_http_method()
S
80 1 3
WPOAuthSignatureMethod_RSA_SHA1::fetch_private_cert()
S
100 1 0
Wpt_TwitterOAuth::get_access_token()
S
70 1 6
TmhOAuth::prepare_signing_key()
S
77 1 3
WP_Oauth_Request::generate_nonce()
S
72 1 5
Wpt_TwitterOAuth::request_token_url()
S
83 1 3
WPOAuthDataStore::lookup_consumer()
S
100 1 2
WPOAuthSignatureMethod_HMAC_SHA1::get_name()
S
83 1 3
wpt_load_textdomain()
S
82 1 3
WPOAuthSignatureMethod_RSA_SHA1::get_name()
S
82 1 3
WP_Oauth_Request::__construct()
S
70 1 6
WPT_TwitterFeed::__construct()
S
80 1 3
WP_Oauth_Request::get_parameters()
S
82 1 3
WPOAuthUtil::urldecode_rfc3986()
S
80 1 3
WPT_TwitterFeed::get_cache_location()
S
79 1 3
jd_update_oauth_settings()
S
80 1 3
WPOAuthToken::__toString()
S
82 1 3
WPT_Search_Tweets_Widget::update()
S
72 1 5
Wpt_TwitterOAuth::authorize_url()
S
83 1 3
Wpt_TwitterOAuth::last_api_call()
S
83 1 3
wpt_clear_rate_limits()
S
82 1 3
WP_Oauth_Request::get_signature_base_string()
S
66 1 9
WPOAuthDataStore::lookup_token()
S
100 1 2
wpt_category_limit()
S
65 1 9
jd_twit_link()
S
81 1 3
Wpt_TwitterOAuth::get_request_token()
S
70 1 6
WPOAuthSignatureMethod::build_signature()
S
100 1 0
WPOAuthSignatureMethod_RSA_SHA1::fetch_public_cert()
S
100 1 0
WPOAuthServer::__construct()
S
82 1 3
Wpt_TwitterOAuth::access_token_url()
S
83 1 3
WP_Oauth_Request::generate_timestamp()
S
76 1 4
wpt_cap_checkbox()
S
75 1 3
WPOAuthDataStore::lookup_nonce()
S
100 1 2
WP_Oauth_Request::unset_parameter()
S
80 1 3
WPOAuthSignatureMethod::check_signature()
S
74 1 4
jd_remote_json()
S
80 1 3
TmhOAuth::transform_text()
S
79 1 3
WPOAuthServer::fetch_access_token()
S
65 1 9
wpt_mask_attr()
S
69 1 6
WPOAuthDataStore::new_access_token()
S
100 1 2
wpt_add_term_rate_limit()
S
68 1 8
WPOAuthServer::verify_request()
S
68 1 7
WP_Oauth_Request::sign_request()
S
66 1 9
TmhOAuth::prepare_method()
S
80 1 3
WP_Oauth_Request::__toString()
S
81 1 3
Wpt_TwitterOAuth::last_status_code()
S
83 1 3
wpt_make_tag()
S
81 1 3
WPT_TwitterFeed::get_options_hash()
S
76 1 4
WPOAuthSignatureMethod::get_name()
S
100 1 0
WPOAuthToken::__construct()
S
77 1 4
WP_Oauth_Request::to_postdata()
S
80 1 3
WPOAuthToken::to_string()
S
78 1 3
Wpt_TwitterOAuth::authenticate_url()
S
83 1 3
wpt_register_widgets()
S
78 1 4
jd_fetch_url()
S
78 1 3