Code Analysis: WP to Hootsuite 1.5.3

Function Rating Maintainability Complexity Lines of code
WP_To_Social_Pro_Settings::migrate_settings()
D
27
48 124
WPZincDashboardWidget::admin_scripts_css()
D
41 40 36
WP_To_Social_Pro_Log::build_log_table_output()
D
35 33 64
WP_To_Social_Pro_Install::upgrade()
C
32 27 103
WP_To_Social_Pro_Publish::publish()
C
29
25 130
WP_To_Social_Pro_Hootsuite_API::updates_create()
C
33 24 97
WP_To_Social_Pro_Publish::parse_text()
B
34 21 91
WP_To_Social_Pro_Settings::is_post_type_enabled()
B
43 24 44
WP_To_Social_Pro_Publish::build_args()
B
38 22 68
WP_To_Social_Pro_Admin::admin_scripts_css()
B
33 20 93
WP_To_Social_Pro_Publish::transition_post_status()
B
38 20 67
WP_To_Social_Pro_Publish::send()
B
35 14 93
WP_To_Social_Pro_Log::build_where_clause()
A
45 16 42
WP_To_Social_Pro_Log::add_to_debug_log()
A
47 16 36
WP_To_Social_Pro_Admin::settings_screen()
A
36 12 85
WP_To_Social_Pro_Log::run_log_table_bulk_actions()
A
43 13 48
WP_To_Social_Pro_Settings::get_status_value_labels()
A
44 13 45
WP_To_Social_Pro_Hootsuite_API::profiles()
A
44 13 44
WP_To_Social_Pro_Screen::get_current_screen()
A
42 12 59
WP_To_Social_Pro_Post::admin_notices()
A
42 10 62
WP_To_Social_Pro_Hootsuite_API::request_curl()
A
38 9 75
WP_To_Social_Pro_Admin::oauth()
A
38 8 78
WP_To_Social_Pro_Validation::check_for_duplicates()
A
48 10 34
WP_To_Social_Pro_Hootsuite_API::request_wordpress()
A
44 9 48
WP_To_Social_Pro_API::request_wordpress()
A
44 9 48
WP_To_Social_Pro_Publish::apply_text_transformation()
A
50 10 31
WP_To_Social_Pro_Media_Library::upload_local_image()
A
44 9 44
WP_To_Social_Pro_Log_Table::bulk_actions()
A
40 7 68
WP_To_Social_Pro_Admin::save_settings()
A
46 9 38
WP_To_Social_Pro_Admin::get_setting()
A
54 10 22
WP_To_Social_Pro_Image::get_image_sources()
A
48 9 31
WP_To_Social_Pro_Image::get_featured_image_options()
A
47 8 39
WP_To_Social_Pro_Notices::output_notices()
A
49 8 37
WP_To_Social_Pro_Hootsuite_API::get_formatted_service()
A
54 9 22
WP_To_Social_Pro_Hootsuite_API::get_service()
A
56 9 20
WPZincDashboardWidget::import()
A
45 7 42
WPZincDashboardWidget::should_load_minified_js()
A
54 8 21
WP_To_Social_Pro_Owly_API::parse_response()
S
47 6 44
WP_To_Social_Pro_Date::convert_wordpress_gmt_offset_to_offset_value()
S
51 7 27
WP_To_Social_Pro_Common::get_tags()
S
39 4 69
WP_To_Hootsuite::__construct()
S
36 2 97
WPZincDashboardWidget::export()
S
48 6 36
WP_To_Social_Pro_Settings::get_default_status()
S
41 4 64
WP_To_Social_Pro_Hootsuite_API::parse_response()
S
49 6 34
WP_To_Social_Pro_Publish::wp_insert_post_update()
S
49 6 30
WP_To_Social_Pro_Hootsuite_API::media_upload()
S
45 5 45
WP_To_Social_Pro_Validation::timezones_match()
S
45 5 43
WP_To_Social_Pro_Owly_API::request_wordpress()
S
51 6 28
WP_To_Hootsuite_Autoloader()
S
51 6 27
WP_To_Social_Pro_Settings::validate_status()
S
61 7 11
WP_To_Social_Pro_Log::run_log_table_filters()
S
54 6 21
WP_To_Social_Pro_Settings::update_option()
S
54 6 20
WP_To_Social_Pro_Hootsuite_API::request()
S
54 6 19
WP_To_Social_Pro_Publish::get_default_tag_params()
S
48 5 34
WPZincDashboardWidget::maybe_display_review_request()
S
58 6 18
WP_To_Social_Pro_Log::get_profile_id_names()
S
56 6 18
WPZincDashboardWidget::is_plugin_screen()
S
58 6 16
WP_To_Social_Pro_Image::is_opengraph_plugin_active()
S
58 6 15
WP_To_Social_Pro_Admin::check_plugin_setup()
S
51 5 29
WP_To_Social_Pro_Hootsuite_API::update_access_token()
S
45 4 44
WP_To_Social_Pro_Log::admin_meta_boxes()
S
51 5 28
WP_To_Social_Pro_Admin::get_tab()
S
60 6 13
WP_To_Social_Pro_Publish::get_content()
S
52 5 25
WP_To_Social_Pro_Notices::get_notices()
S
55 5 21
WPZincDashboardWidget::import_export_screen()
S
54 5 20
WP_To_Social_Pro_Notices::add_success_notice()
S
57 5 18
WP_To_Social_Pro_Publish::validate()
S
52 4 27
WP_To_Social_Pro_Settings::update_settings()
S
51 4 27
WPZincDashboardWidget::add_action_link()
S
53 4 24
WP_To_Social_Pro_Publish::wp_insert_post_publish()
S
54 4 23
WP_To_Social_Pro_Log_Table::get_search_params()
S
54 4 22
WPZincDashboardWidget::__construct()
S
52 4 22
WP_To_Social_Pro_Twitter_API::get_username_by_id()
S
55 4 21
WP_To_Social_Pro_Settings::get_all()
S
48 3 35
WPZincDashboardWidget::maybe_display_footer_review_request()
S
56 4 19
WP_To_Social_Pro_Log::export()
S
55 4 19
wp_to_hootsuite_activate()
S
57 4 18
wp_to_hootsuite_deactivate()
S
57 4 18
WP_To_Social_Pro_Log::search()
S
57 4 15
WPZincDashboardWidget::maybe_redirect()
S
60 4 14
WPZincDashboardWidget::output_deactivation_modal()
S
51 3 29
WPZincDashboardWidget::requested_review()
S
60 4 14
WP_To_Social_Pro_Notices::add_warning_notice()
S
61 4 14
WP_To_Social_Pro_Notices::add_error_notice()
S
61 4 14
WP_To_Social_Pro_Publish::is_gutenberg_request()
S
63 4 12
WP_To_Social_Pro_Publish::is_rest_api_request()
S
63 4 12
WPZincDashboardWidget::admin_menu()
S
65 4 11
WP_To_Hootsuite::get_class()
S
53 3 26
WP_To_Social_Pro_Common::get_taxonomies()
S
61 4 11
WP_To_Social_Pro_Common::get_all_taxonomies()
S
61 4 11
WP_To_Social_Pro_Publish::apply_character_limit()
S
62 4 11
WP_To_Social_Pro_Media_Library::cleanup()
S
54 3 22
WP_To_Social_Pro_Common::get_schedule_options()
S
56 3 19
WP_To_Social_Pro_Log_Table::search_box()
S
57 3 17
WP_To_Social_Pro_Common::get_post_types()
S
58 3 16
WP_To_Social_Pro_Publish::get_post_image()
S
57 3 16
WP_To_Social_Pro_Publish::apply_sentence_limit()
S
57 3 16
WP_To_Social_Pro_API::sanitize_arguments()
S
66 4 8
WP_To_Social_Pro_Publish::get_excerpt()
S
59 3 15
WP_To_Social_Pro_Date::adjust_date_time()
S
59 3 14
WP_To_Social_Pro_Publish::get_permalink()
S
60 3 13
WP_To_Social_Pro_Common::get_tags_flat()
S
62 3 12
WP_To_Social_Pro_Settings::get_setting()
S
61 3 12
WP_To_Social_Pro_Image::get_image_source_by_size()
S
61 3 11
WP_To_Social_Pro_Cron::schedule_log_cleanup_event()
S
61 3 11
WP_To_Social_Pro_Install::install()
S
53 2 25
WP_To_Hootsuite::initialize()
S
53 2 23
WP_To_Social_Pro_Log_Table::display_tablenav()
S
59 2 18
WP_To_Social_Pro_Owly_API::get_local_hosts()
S
58 2 16
WP_To_Social_Pro_Ajax::save_statuses()
S
57 2 16
WPZincDashboardWidget::force_zip_file_download()
S
58 2 16
WPZincDashboardWidget::register_support_menu()
S
64 3 8
WPZincDashboardWidget::import_export_security_check()
S
64 3 9
WP_To_Social_Pro_Hootsuite_API::profiles_updates_pending()
S
60 2 15
WPZincDashboardWidget::register_upgrade_menu()
S
64 3 8
WP_To_Social_Pro_Cron::get_log_cleanup_event_next_scheduled()
S
68 3 7
WP_To_Social_Pro_Publish::apply_word_limit()
S
64 3 9
WP_To_Social_Pro_Owly_API::is_local_host()
S
64 3 9
WPZincDashboardWidget::deactivation_modal_submit()
S
57 2 15
WP_To_Social_Pro_Log_Table::get_page()
S
76 3 3
WP_To_Social_Pro_Log::is_enabled()
S
64 3 10
WP_To_Hootsuite::get_instance()
S
70 3 6
WPZincDashboardWidget::request_review()
S
64 3 10
WPZincDashboardWidget::dismiss_review()
S
70 3 6
WP_To_Social_Pro_Notices::get_success_notices()
S
66 3 8
WP_To_Social_Pro_Notices::get_warning_notices()
S
66 3 8
WP_To_Social_Pro_Notices::get_error_notices()
S
66 3 8
WPZincDashboardWidget::register_import_export_menu()
S
64 3 8
WP_To_Social_Pro_Publish::register_post_searches_replacements()
S
58 2 14
WP_To_Social_Pro_Log::add()
S
60 2 13
WPZincDashboardWidget::admin_body_class()
S
62 2 12
WP_To_Social_Pro_Log::total()
S
62 2 11
WP_To_Social_Pro_Settings::get_status_row()
S
61 2 11
WP_To_Social_Pro_Log::activate()
S
57 1 23
WP_To_Social_Pro_Admin::get_autocomplete_configuration()
S
56 1 21
WP_To_Social_Pro_Log_Table::get_columns()
S
55 1 20
WP_To_Social_Pro_Settings::default_installation_settings()
S
56 1 20
WP_To_Social_Pro_Log_Table::prepare_items()
S
55 1 19
WP_To_Social_Pro_Log_Table::get_profile_id()
S
77 2 3
WP_To_Social_Pro_Hootsuite_API::user()
S
71 2 6
WP_To_Social_Pro_Admin::get_post_type_tab()
S
77 2 3
WP_To_Social_Pro_Log_Table::get_result()
S
77 2 3
WPZincDashboardWidget::get_upgrade_url()
S
68 2 7
wp_to_hootsuite_activate_new_site()
S
64 2 10
WP_To_Social_Pro_Settings::strip_tags_deep()
S
77 2 3
WP_To_Social_Pro_Media_Library::is_gd_available()
S
79 2 3
WP_To_Social_Pro_Date::get_utc_date_time()
S
63 2 10
WP_To_Social_Pro_Image::supports_opengraph()
S
69 2 7
WP_To_Social_Pro_Validation::api_connected()
S
69 2 7
WP_To_Social_Pro_Publish::register_all_possible_searches_replacements()
S
63 2 10
WP_To_Social_Pro_Publish::register_taxonomy_searches_replacements()
S
67 2 7
WP_To_Social_Pro_Log_Table::get_search()
S
77 2 3
WP_To_Social_Pro_Log_Table::get_action()
S
77 2 3
WP_To_Social_Pro_Log_Table::get_order_by()
S
77 2 3
WP_To_Social_Pro_Log_Table::get_request_sent_end_date()
S
77 2 3
WP_To_Social_Pro_Admin::admin_menu()
S
62 2 9
WP_To_Social_Pro_Log_Table::get_order()
S
77 2 3
WP_To_Social_Pro_Publish::is_gutenberg_post_content()
S
71 2 6
WP_To_Social_Pro_Hootsuite_API::check_access_token_exists()
S
72 2 6
WP_To_Social_Pro_Publish::can_apply_character_limit_to_tag()
S
68 2 7
WP_To_Social_Pro_Log_Table::get_request_sent_start_date()
S
77 2 3
WP_To_Social_Pro_Cron::log_cleanup()
S
66 2 8
WP_To_Social_Pro_Hootsuite_API::check_refresh_token_exists()
S
72 2 6
WP_To_Social_Pro_Settings::get_option()
S
69 2 7
WP_To_Social_Pro_Log_Table::get_sortable_columns()
S
61 1 13
WP_To_Social_Pro_Admin::plugin_action_links_settings_page()
S
61 1 13
WP_To_Social_Pro_Common::get_log_filters()
S
62 1 13
WP_To_Social_Pro_Publish::convert_to_plain_text()
S
61 1 12
WP_To_Social_Pro_Log::get()
S
62 1 12
WP_To_Social_Pro_Log::get_level_options()
S
62 1 11
WP_To_Social_Pro_Hootsuite_API::output_oauth()
S
66 1 11
WP_To_Social_Pro_Common::get_tags_excluded_from_character_limit()
S
64 1 11
WP_To_Social_Pro_Log::add_screen_options()
S
63 1 11
WP_To_Social_Pro_Common::get_excluded_taxonomies()
S
68 1 8
WP_To_Social_Pro_Owly_API::post()
S
79 1 3
WP_To_Social_Pro_Common::get_excluded_post_types()
S
66 1 9
WP_To_Social_Pro_Notices::set_key_prefix()
S
81 1 3
WP_To_Social_Pro_Cron::unschedule_log_cleanup_event()
S
80 1 3
WP_To_Social_Pro_Hootsuite_API::get_connect_profiles_url()
S
82 1 3
WP_To_Social_Pro_Log::set_screen_options()
S
82 1 3
WPZincDashboardWidget::support_screen()
S
91 1 2
WP_To_Social_Pro_Publish::get_title()
S
72 1 5
WP_To_Social_Pro_Publish::get_date()
S
71 1 5
WP_To_Social_Pro_Settings::get_access_token()
S
79 1 3
WP_To_Social_Pro_Log::delete_by_id()
S
66 1 9
WP_To_Social_Pro_Log_Table::display_rows()
S
78 1 3
WP_To_Social_Pro_Settings::get_token_expires()
S
79 1 3
WP_To_Social_Pro_Validation::__construct()
S
81 1 3
WPZincDashboardWidget::hide_import_export_menu()
S
81 1 3
WP_To_Social_Pro_Hootsuite_API::post()
S
79 1 3
WP_To_Social_Pro_Hootsuite_API::get_oauth_url()
S
63 1 10
WPZincDashboardWidget::dismissed_review()
S
79 1 3
WP_To_Social_Pro_Notices::enable_store()
S
81 1 3
WP_To_Social_Pro_Common::get_post_actions()
S
66 1 8
WP_To_Social_Pro_Log_Table::get_bulk_actions()
S
73 1 5
WP_To_Social_Pro_Hootsuite_API::set_tokens()
S
74 1 5
WPZincDashboardWidget::show_upgrade_menu()
S
81 1 3
WP_To_Social_Pro_Hootsuite_API::get_timezone_settings_url()
S
82 1 3
WPZincDashboardWidget::hide_support_menu()
S
81 1 3
WP_To_Social_Pro_Publish::clear_search_replacements()
S
77 1 4
WP_To_Social_Pro_Hootsuite_API::get_registration_url()
S
82 1 3
WP_To_Social_Pro_Common::get_transient_expiration_time()
S
72 1 5
WP_To_Social_Pro_Log::__construct()
S
63 1 9
WP_To_Social_Pro_Owly_API::__construct()
S
81 1 3
WP_To_Social_Pro_Settings::get_settings()
S
71 1 5
WP_To_Social_Pro_Log_Table::is_search()
S
79 1 3
WP_To_Social_Pro_Cron::__construct()
S
81 1 3
WP_To_Social_Pro_Screen::__construct()
S
81 1 3
WP_To_Social_Pro_Hootsuite_API::__construct()
S
72 1 5
WP_To_Social_Pro_Media_Library::__construct()
S
81 1 3
WP_To_Social_Pro_Admin::output_modal()
S
80 1 3
WP_To_Social_Pro_Log::delete_all()
S
75 1 4
WP_To_Social_Pro_Common::get_post_actions_past_tense()
S
66 1 8
WP_To_Social_Pro_Settings::delete_token_expires()
S
79 1 3
WPZincDashboardWidget::force_csv_file_download()
S
67 1 8
WP_To_Social_Pro_Settings::update_tokens()
S
74 1 5
WP_To_Social_Pro_API::request()
S
69 1 6
WP_To_Social_Pro_Admin::log_screen()
S
73 1 5
WPZincDashboardWidget::upgrade_screen()
S
91 1 2
WP_To_Hootsuite::supports()
S
75 1 4
WP_To_Social_Pro_Settings::delete_refresh_token()
S
79 1 3
WP_To_Social_Pro_Publish::register_publish_hooks()
S
78 1 3
WP_To_Social_Pro_Settings::delete_access_token()
S
79 1 3
WP_To_Social_Pro_Image::get_opengraph_seo_plugins()
S
73 1 5
WP_To_Social_Pro_Owly_API::photo_upload()
S
69 1 8
WP_To_Social_Pro_Install::uninstall()
S
81 1 3
WP_To_Social_Pro_Ajax::clear_log()
S
69 1 6
WP_To_Hootsuite::upgrade()
S
81 1 3
WP_To_Social_Pro_Twitter_API::__construct()
S
81 1 3
WPZincDashboardWidget::show_support_menu()
S
81 1 3
WP_To_Social_Pro_Ajax::get_log()
S
71 1 5
WP_To_Hootsuite::load_language_files()
S
78 1 3
WP_To_Social_Pro_Ajax::get_status_row()
S
66 1 7
WP_To_Social_Pro_Notices::save_notices()
S
72 1 5
WP_To_Social_Pro_Notices::delete_notices()
S
66 1 8
WPZincDashboardWidget::disable_review_request()
S
81 1 3
WP_To_Social_Pro_Post::__construct()
S
75 1 4
WP_To_Social_Pro_Media_Library::enable_gd_image_support()
S
71 1 6
WPZincDashboardWidget::show_import_export_menu()
S
81 1 3
WP_To_Social_Pro_Common::get_google_business_start_date_options()
S
68 1 7
WP_To_Social_Pro_Log::get_debug_log()
S
82 1 3
WP_To_Social_Pro_Log::delete_pending_by_post_id()
S
65 1 10
WP_To_Social_Pro_Admin::upgrade_screen()
S
91 1 2
WP_To_Social_Pro_Settings::__construct()
S
81 1 3
WP_To_Social_Pro_API::post()
S
79 1 3
WP_To_Social_Pro_Twitter_API::usernames_search()
S
69 1 8
WP_To_Social_Pro_Settings::delete_tokens()
S
75 1 5
WP_To_Social_Pro_Owly_API::request()
S
67 1 7
WPZincDashboardWidget::hide_upgrade_menu()
S
81 1 3
WP_To_Social_Pro_Ajax::__construct()
S
67 1 7
WP_To_Social_Pro_Settings::update_token_expires()
S
74 1 4
WP_To_Social_Pro_Owly_API::get()
S
79 1 3
WP_To_Social_Pro_Log_Table::__construct()
S
65 1 10
WP_To_Social_Pro_Settings::get_refresh_token()
S
79 1 3
WP_To_Social_Pro_Settings::update_refresh_token()
S
74 1 4
WP_To_Social_Pro_Notices::disable_store()
S
81 1 3
WP_To_Social_Pro_Settings::update_access_token()
S
74 1 4
WP_To_Social_Pro_Settings::get_status()
S
78 1 3
WP_To_Social_Pro_Cron::reschedule_log_cleanup_event()
S
78 1 4
WP_To_Social_Pro_Image::__construct()
S
81 1 3
WP_To_Social_Pro_Log_Table::no_items()
S
80 1 3
WP_To_Social_Pro_Publish::__construct()
S
71 1 5
WP_To_Social_Pro_Publish::rest_api_post_publish()
S
81 1 3
WP_To_Hootsuite()
S
82 1 3
WPZincDashboardWidget::force_json_file_download()
S
67 1 8
WP_To_Social_Pro_Admin::admin_notices()
S
75 1 4
WP_To_Social_Pro_API::get()
S
79 1 3
WP_To_Social_Pro_Log::delete_by_request_sent_cutoff()
S
66 1 9
WP_To_Social_Pro_Publish::rest_api_post_update()
S
81 1 3
WP_To_Social_Pro_Log::delete_by_ids()
S
73 1 4
WP_To_Social_Pro_Cron::get_log_cleanup_event()
S
79 1 3
WP_To_Social_Pro_Common::get_google_business_end_date_options()
S
68 1 7
WP_To_Social_Pro_Admin::__construct()
S
64 1 9
WP_To_Social_Pro_Install::__construct()
S
81 1 3
WP_To_Social_Pro_Admin::disconnect()
S
80 1 3
WP_To_Social_Pro_Common::__construct()
S
81 1 3
WP_To_Social_Pro_Publish::get_short_permalink()
S
71 1 5
WP_To_Social_Pro_Notices::__construct()
S
81 1 3
WP_To_Social_Pro_Log::output_post_log()
S
75 1 4
WP_To_Social_Pro_Hootsuite_API::get()
S
79 1 3
WP_To_Social_Pro_Admin::auth_screen()
S
80 1 3
WPZincDashboardWidget::get_review_url()
S
76 1 4
WP_To_Social_Pro_Date::__construct()
S
81 1 3
WP_To_Social_Pro_Log::get_result_options()
S
63 1 10
WP_To_Social_Pro_Log::delete_by_post_id()
S
66 1 9
wp_to_hootsuite_log_cleanup_cron()
S
72 1 6