Code Analysis: Pretty Links 3.2.3

Function Rating Maintainability Complexity Lines of code
PrliOptions::set_default_options()
D
17
62 278
PrliLinksController::setup_edit_vars()
D
39 57 36
PrliLinksController::setup_new_vars()
D
40 50 37
PrliUtils::track_link()
D
25
42 134
PrliUtils::migrate_before_db_upgrade()
C
32 27 100
PrliUpdateController::queue_update()
B
37 23 72
PrliClicksHelper::get_click_sort_vars()
B
36 19 79
PrliClick::get_params_array()
B
54 23 16
PrliLocalApiController::update_pretty_link()
B
42 21 45
PrliAppController::enqueue_admin_scripts()
B
30 14 126
PrliXmlRpcController::update_pretty_link()
B
43 18 41
PrliXmlRpcController::create_pretty_link()
B
44 18 39
PrliLink::sanitize()
B
54 19 16
PrliLocalApiController::create_pretty_link()
B
45 17 36
PrliClicksController::admin_page()
A
37 14 66
PrliLinksController::save_bulk_edit()
A
47 16 30
PrliUtils::php_get_browser()
A
45 15 39
PrliLinksController::save_quick_edit()
A
49 14 27
PrliGroup::get_params_array()
A
58 15 12
PrliLink::create()
A
44 13 41
PrliLinksHelper::link_list_icons()
A
46 13 38
PrliClick::get_exclude_where_clause()
A
46 13 37
PrliUtils::migrate_after_db_upgrade()
A
42 12 50
PrliUpdateController::plugin_info()
A
48 13 30
PrliLinksController::save_cpt_link()
A
49 13 27
PrliUtils::get_current_client_ip()
A
52 13 23
PrliLinksController::ajax_quick_create()
A
45 12 38
PrliUtils::get_main_message()
A
46 12 37
PrliToolsController::bookmark()
A
53 13 17
PrliLinksController::custom_columns()
A
44 10 50
PrliPopupController::popup_visible()
A
51 11 25
PrliLink::get_target_to_pretty_urls()
A
42 9 54
PrliLinksController::custom_link_sort_orderby()
A
48 10 33
PrliPostsController::search_results()
A
47 10 32
PrliAppController::menu()
A
40 8 61
PrliLink::get_one_by()
A
41 8 60
PrliPostsController::display_tinymce_form()
A
42 8 53
PrliDb::prli_install()
A
37 5 96
PrliUtils::get_page_title()
A
53 10 19
PrliClicksController::click_report()
A
44 8 44
PrliLinksController::add_row_actions()
A
44 8 41
PrliLink::validate()
A
51 9 25
PrliOptionsController::update_attrs()
A
56 9 15
PrliUpdateController::addons()
A
50 8 28
PrliAppController::admin_submenu_order()
A
45 7 43
PrliClick::get_counts_by_days()
A
49 8 27
PrliAppController::admin_menu_order()
A
52 8 26
PrliReviewNoticeController::review_notice()
A
42 5 70
prli_get_home_url()
A
56 8 18
PrliUtils::is_robot()
A
56 8 17
PrliLinksController::filter_links_by_legacy_groups()
S
51 7 27
PrliLinksController::ajax_validate_pretty_link()
S
51 7 24
PrliAppController::add_dashboard_widgets()
S
51 7 24
prli_autoloader()
S
54 7 22
PrliClicksController::csv()
S
46 6 35
PrliUpdateController::check_license_activation()
S
54 7 19
PrliXmlRpcController::get_link_from_slug()
S
54 7 19
PrliXmlRpcController::get_link()
S
54 7 19
PrliXmlRpcController::get_pretty_link_url()
S
54 7 19
PrliLink::get_pretty_link_url()
S
56 7 18
PrliUtils::delete_dir()
S
58 7 16
PrliUpdateController::was_activated_with_username_and_password()
S
65 8 8
PrliUpdateController::activate_from_define()
S
48 6 30
PrliToolsController::standalone_route()
S
58 7 14
PrliPostsController::validate_tinymce_slug()
S
59 7 13
PrliUpdateController::process_form()
S
49 6 28
PrliAppController::parse_standalone_request()
S
60 7 12
PrliReviewNoticeController::dismiss_review_prompt()
S
56 6 18
PrliOptions::get_options()
S
57 6 18
PrliLinksController::columns()
S
44 4 47
PrliAppController::pro_settings_submenu()
S
50 5 31
PrliUpdateController::route()
S
58 6 16
PrliUpdateController::send_mothership_request()
S
49 5 31
PrliXmlRpcController::get_all_links()
S
56 6 16
PrliXmlRpcController::get_all_groups()
S
56 6 16
PrliPopupController::display_popups()
S
64 7 8
PrliLink::is_pretty_link()
S
57 6 15
PrliLink::get_or_create_pretty_link_for_target_url()
S
58 6 14
PrliAppController::pl_admin_header()
S
48 4 43
PrliPostsController::create_pretty_link()
S
51 5 28
PrliLinksController::link_saved_admin_notice()
S
61 6 11
PrliLinksHelper::link_list_actions()
S
51 5 24
PrliClick::setupClickLineGraph()
S
50 5 24
PrliLinksHelper::link_list_clicks()
S
53 5 23
PrliPopupController::ajax_stop_or_delay_popup()
S
53 5 22
PrliLink::getAll()
S
44 3 51
PrliUtils::get_permalink_pre_slug_uri()
S
55 5 20
PrliLink::generateValidSlug()
S
56 5 17
PrliToolsController::route()
S
57 5 16
prli_plugin_info()
S
59 5 14
PrliXmlRpcController::api_version()
S
59 5 13
PrliAppController::pro_get_started_headline()
S
59 5 13
PrliReportsController::chart_data()
S
50 4 28
PrliUpdateController::plp_edge_updates()
S
61 5 11
PrliLink::create_cpt_for_link()
S
52 4 26
PrliLinkMeta::get_link_meta()
S
53 4 25
PrliUtils::getMonthsArray()
S
52 4 23
PrliLinksController::register_post_type()
S
43 2 52
PrliLink::update()
S
53 4 22
PrliLinksController::quick_bulk_edit_add()
S
50 3 35
PrliFlyoutMenuController::get_items_html()
S
55 4 19
PrliAppController::pro_action_needed()
S
58 4 16
PrliLinksHelper::redirect_type_dropdown()
S
56 4 16
PrliUtils::get_prli_post_meta()
S
67 5 7
PrliUtils::update_prli_post_meta()
S
67 5 7
PrliUtils::delete_prli_post_meta()
S
68 5 7
PrliUpdateController::activation_warning()
S
68 5 6
PrliLinksController::where_links_belong_to_legacy_group()
S
62 5 10
PrliOptionsController::validate()
S
62 5 10
PrliToolsController::redirect()
S
58 4 14
PrliUtils::get_custom_forwarding_params()
S
58 4 14
PrliUtils::http_status_codes()
S
40 1 59
PrliLinksController::transition_cpt_status()
S
60 4 14
PrliUtils::is_slug_available()
S
59 4 13
PrliUtils::prli_array_type()
S
61 4 13
PrliUtils::current_page_url()
S
60 4 13
PrliLinksController::add_clicks_to_select()
S
53 3 27
PrliAppHelper::pro_only_feature_indicator()
S
62 4 11
PrliLinksHelper::link_list_url_clipboard()
S
54 3 22
PrliAppController::admin_footer()
S
55 3 22
PrliUpdateController::deactivate()
S
54 3 21
PrliLinksController::load_hooks()
S
46 2 35
PrliAppController::load_hooks()
S
53 3 20
PrliFlyoutMenuController::output()
S
56 3 20
PrliAppController::add_plugin_action_links()
S
55 3 19
PrliToolsController::clear_clicks()
S
58 3 17
PrliAppController::install()
S
57 3 17
PrliLinksController::set_custom_post_types_admin_order()
S
64 4 9
PrliAppController::should_enqueue_block_editor_scripts()
S
63 4 10
PrliUtils::get_minimum_role()
S
65 4 9
PrliAppController::link_redirect_from_slug()
S
64 4 9
PrliUtils::full_request_url()
S
63 4 9
PrliOnboardingController::load_hooks()
S
68 4 6
PrliLink::destroy()
S
58 3 14
PrliLinksController::cleanup_visitor_locks()
S
52 2 29
PrliUtils::get_start_date()
S
59 3 13
PrliUtils::percentagizeArray()
S
62 3 12
PrliUtils::php_get_browsercap_ini()
S
61 3 12
PrliClicksController::auto_trim_clicks()
S
61 3 12
PrliOnboardingController::maybe_onboard()
S
63 3 11
PrliOptionsController::route()
S
61 3 11
PrliClick::getAll()
S
60 3 11
PrliPopupController::stop_popup()
S
62 3 11
PrliLink::get_link_min()
S
61 3 11
PrliPopupController::enqueue_admin_scripts()
S
53 2 23
PrliUtils::browser_image()
S
55 2 20
PrliUtils::os_image()
S
55 2 20
PrliLink::update_cpt_post_date()
S
57 2 19
PrliLink::update_cpt_post_modified()
S
57 2 19
PrliLinksController::add_meta_boxes()
S
57 2 18
PrliLink::update_group()
S
58 2 17
PrliLinksController::sortable_columns()
S
63 3 10
PrliLinkMeta::update_link_meta()
S
63 3 10
PrliLinksController::default_hidden_columns()
S
70 3 6
PrliUtils::debug_log()
S
71 3 5
PrliClicksController::route()
S
68 3 7
PrliUpdateController::display_form()
S
67 3 7
PrliClicksController::route_scripts()
S
70 3 6
PrliLinksController::search_links_table()
S
65 3 8
PrliLinksController::modify_quick_links()
S
64 3 10
PrliUtils::get_currentuserinfo()
S
64 3 10
PrliUtils::is_post_request()
S
66 3 8
PrliUtils::is_get_request()
S
66 3 8
PrliUtils::is_logged_in_and_current_user()
S
73 3 4
PrliOnboardingController::onboarding_intercept()
S
66 3 8
PrliOptionsController::update()
S
59 2 15
PrliAppController::dismiss_upgrade_header()
S
69 3 6
PrliAppController::redirect()
S
65 3 8
PrliPopupController::is_popup_delayed()
S
66 3 8
PrliPopupController::is_popup_stopped()
S
66 3 8
PrliLinksController::redirect_post_location()
S
64 3 9
PrliPopupController::popup_delay_key()
S
65 3 9
PrliPostsController::add_tinymce_buttons()
S
67 3 7
PrliUtils::get_pretty_link_url()
S
66 3 8
PrliLink::get_link_from_cpt()
S
60 2 15
PrliClick::get_count()
S
60 2 14
PrliClick::getPage()
S
58 2 13
PrliUtils::getFirstClickDate()
S
62 2 12
PrliLinksController::ajax_reset_pretty_link()
S
61 2 12
PrliLinksController::link_meta_box()
S
61 2 12
PrliClick::clear_clicks_by_age_in_days()
S
61 2 12
PrliLink::get_all_legacy_groups()
S
63 2 11
PrliFlyoutMenuController::menu_items()
S
55 1 22
PrliUtils::decode_custom_param_str()
S
62 2 10
PrliDb::should_install()
S
70 2 6
PrliGroup::validate()
S
68 2 7
PrliUtils::get_date_from_ts()
S
67 2 8
PrliUtils::getLastRecordNum()
S
78 2 3
PrliUtils::is_date()
S
72 2 5
PrliUtils::rewriting_on()
S
75 2 4
PrliUtils::is_logged_in_and_an_admin()
S
79 2 3
PrliPopupController::delay_popup()
S
67 2 8
prli_update_pretty_link()
S
60 1 15
PrliUtils::get_permalink_pre_slug_regex()
S
68 2 7
PrliPopupController::load_hooks()
S
66 2 8
PrliUtils::get_end_date()
S
63 2 10
PrliUpdateController::is_installed_and_activated()
S
79 2 3
PrliOptionsController::__construct()
S
59 1 15
PrliPopupController::on_pretty_link_page()
S
74 2 4
PrliLocalApiController::get_pretty_link_url()
S
67 2 8
PrliUtils::gen_random_string()
S
65 2 8
PrliUtils::is_logged_in_and_a_subscriber()
S
79 2 3
PrliOptions::__construct()
S
71 2 6
PrliLinkMeta::add_link_meta_item()
S
60 1 15
PrliUpdateController::is_activated()
S
74 2 4
PrliUtils::this_is_a_robot()
S
69 2 6
PrliUtils::clear_unknown_post_metas()
S
64 2 10
PrliAppController::on_pretty_link_page()
S
74 2 4
PrliUtils::include_pluggables()
S
72 2 5
PrliUtils::is_prli_admin()
S
66 2 9
PrliUtils::sanitize_html()
S
78 2 3
PrliUtils::prepend_and_or_where()
S
78 2 3
PrliGroup::getOne()
S
65 2 8
PrliAppController::show_about_notice()
S
68 2 6
PrliAppController::about_notice()
S
63 2 10
PrliClick::get_first_date()
S
63 2 10
PrliLinksController::join_links_to_posts()
S
68 2 7
PrliUtils::getFirstRecordNum()
S
67 2 8
PrliAppController::get_screen_id()
S
69 2 7
PrliGroup::getAll()
S
64 2 8
PrliLinksController::delete_cpt_link()
S
69 2 6
PrliLinksController::maybe_cleanup_visitor_locks()
S
68 2 7
PrliUpdateController::load_hooks()
S
63 2 10
PrliUpdateController::enqueue_scripts()
S
65 2 8
PrliPopupController::maybe_show_popup()
S
68 2 7
PrliAppController::admin_separator()
S
71 2 5
PrliLinksController::advanced_featured_meta_box()
S
61 1 14
prli_create_pretty_link()
S
61 1 14
PrliLink::update_cpt_title()
S
61 1 14
PrliAppController::__construct()
S
60 1 14
PrliLink::update_cpt_status()
S
61 1 14
PrliUtils::uninstall_pro()
S
62 1 12
PrliLink::update_link_status()
S
63 1 12
PrliLinkMeta::delete_link_meta()
S
63 1 12
PrliAppController::dashboard_widget_function()
S
61 1 11
PrliLink::update_link_cpt()
S
64 1 11
PrliGroup::destroy()
S
67 1 7
PrliClicksHelper::esc_spreadsheet_cell()
S
78 1 3
PrliPostsController::add_tinymce_plugin()
S
75 1 4
PrliClick::getOne()
S
70 1 5
prli_get_link()
S
75 1 4
prli_api_version()
S
77 1 4
PrliLink::bookmarklet_link()
S
72 1 5
PrliUtils::object_to_string()
S
74 1 5
PrliUtils::now()
S
80 1 3
PrliLink::getOne()
S
78 1 3
PrliGroup::getPage()
S
64 1 8
PrliUtils::is_url()
S
78 1 3
prli_get_pretty_link_url()
S
76 1 4
PrliLinksController::intervals()
S
68 1 7
PrliLink::is_pretty_link_slug()
S
78 1 3
PrliLocalApiController::load_hooks()
S
91 1 2
PrliAppHelper::page_title()
S
79 1 3
PrliPopupController::set_popup_last_viewed_timestamp()
S
72 1 5
PrliAppController::is_pretty_link_link_page()
S
74 1 4
PrliPopupController::popup_display_count_key()
S
79 1 3
PrliClick::clearAllClicks()
S
67 1 7
PrliUtils::is_user_logged_in()
S
76 1 4
PrliUpdateController::upgrade_tags()
S
72 1 5
PrliLink::disable_link()
S
79 1 3
PrliUtils::get_post_content()
S
68 1 7
PrliOptionsController::load_hooks()
S
91 1 2
PrliUtils::check_ajax_referer()
S
75 1 4
PrliLinksHelper::link_action_visit_pretty_link()
S
65 1 9
PrliLink::enable_link()
S
79 1 3
PrliUtils::site_domain()
S
78 1 3
PrliBaseController::load_hooks()
S
100 1 0
PrliPopupController::get_popup_last_viewed_timestamp()
S
74 1 4
PrliUtils::clamp()
S
78 1 3
PrliLocalApiController::get_all_links()
S
72 1 5
prli_load_textdomain()
S
74 1 4
PrliUpdateController::upgrade_import_export()
S
72 1 5
prli_get_all_links()
S
77 1 4
PrliClick::getRecordCount()
S
67 1 7
PrliDb::table_exists()
S
69 1 6
PrliLocalApiController::get_all_groups()
S
82 1 3
PrliAppController::is_pretty_link_listing_page()
S
75 1 4
PrliAppController::close_about_notice()
S
75 1 4
PrliAppHelper::info_tooltip()
S
68 1 9
PrliUtils::ts_to_mysql_date()
S
79 1 3
PrliUtils::get_current_user_id()
S
76 1 4
PrliLinksHelper::link_action_visit_target()
S
65 1 9
PrliPostsController::load_hooks()
S
68 1 7
PrliUtils::is_subscriber()
S
79 1 3
PrliClick::get_distinct_ip_count()
S
67 1 7
PrliGroup::__construct()
S
76 1 4
PrliUpdateController::manually_queue_update()
S
75 1 4
PrliLocalApiController::get_link()
S
72 1 5
PrliClicksController::__construct()
S
81 1 3
PrliLink::get_first_date()
S
71 1 5
PrliUpdateController::queue_button()
S
72 1 5
PrliGroup::update()
S
67 1 7
PrliLinkMeta::__construct()
S
76 1 4
PrliUtils::db_date_to_ts()
S
80 1 3
PrliUpdateController::upgrade_reports()
S
72 1 5
PrliLinksHelper::link_action_tweet()
S
65 1 9
PrliUtils::is_phone()
S
79 1 3
PrliLink::reset()
S
67 1 7
prli_get_all_groups()
S
83 1 3
PrliUpdateController::set_mothership_license()
S
72 1 5
PrliUpdateController::__construct()
S
66 1 8
PrliUtils::is_authorized()
S
79 1 3
PrliXmlRpcController::export_api()
S
63 1 10
PrliUtils::db_now()
S
78 1 3
PrliClick::getPageCount()
S
78 1 3
PrliLocalApiController::get_link_from_slug()
S
72 1 5
PrliUpdateController::set_edge_updates()
S
72 1 5
PrliOptions::store()
S
72 1 5
PrliAppController::is_pretty_link_page()
S
75 1 4
PrliUtils::getTopValue()
S
76 1 4
PrliAppController::standalone_route()
S
83 1 3
PrliPopupController::is_valid_popup()
S
79 1 3
PrliXmlRpcController::load_hooks()
S
79 1 3
PrliPopupController::__construct()
S
78 1 4
PrliLinksHelper::link_action_reset()
S
64 1 10
PrliClicksController::load_hooks()
S
75 1 4
PrliClick::__construct()
S
76 1 4
PrliGroup::create()
S
67 1 7
PrliLink::get_link_slug()
S
68 1 6
PrliToolsController::load_hooks()
S
79 1 3
PrliUpdateController::update_plugin_url()
S
77 1 3
PrliReportsController::load_hooks()
S
91 1 2
PrliUpdateController::is_installed()
S
80 1 3
PrliUtils::is_email()
S
79 1 3
PrliGroup::getPageCount()
S
78 1 3
PrliReviewNoticeController::load_hooks()
S
75 1 4
PrliLink::get_count()
S
71 1 5
PrliLink::__construct()
S
76 1 4
PrliLinkMeta::delete_link_metas()
S
65 1 10
PrliAppController::is_pretty_link_new_page()
S
75 1 4
PrliLocalApiController::api_version()
S
82 1 3
PrliClick::generateUniqueVisitorId()
S
81 1 3
PrliPopupController::popup_stop_key()
S
79 1 3
PrliPopupController::increment_popup_display_count()
S
71 1 5
PrliAppController::is_pretty_link_edit_tags()
S
75 1 4
PrliLink::getOneFromSlug()
S
78 1 3
PrliUtils::get_custom_forwarding_rule()
S
74 1 4
PrliUpdateController::activate_page_url()
S
80 1 3
PrliUtils::exit_with_status()
S
71 1 5
PrliDb::__construct()
S
68 1 7
PrliFlyoutMenuController::load_hooks()
S
79 1 3
prli_get_link_from_slug()
S
75 1 4
PrliLinkMeta::add_link_meta()
S
79 1 3
PrliUpdateController::update_plugin()
S
74 1 5
PrliLinksHelper::link_action_email()
S
64 1 9
PrliPostsController::register_buttons()
S
76 1 4
PrliUtils::is_admin()
S
79 1 3
PrliUtils::current_user_can()
S
75 1 4
PrliAppController::is_pretty_link_edit_page()
S
75 1 4
PrliGroup::getRecordCount()
S
71 1 5
PrliUpdateController::upgrade_categories()
S
72 1 5
PrliOnboardingController::welcome_route()
S
80 1 3
PrliLink::find_first_target_url()
S
69 1 6