Code Analysis: Pretty Links 3.4.2

Function Rating Maintainability Complexity Lines of code
PrliOptions::set_default_options()
D
17
63 282
PrliNotifications::output()
D
22
57 170
PrliLinksController::setup_edit_vars()
D
39 58 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()
C
36 26 77
PrliUpdateController::ajax_activate_license()
C
35 24 74
PrliNotifications::verify()
B
40 24 53
PrliClicksHelper::get_click_sort_vars()
B
36 19 79
PrliAppController::enqueue_admin_scripts()
B
29
15 138
PrliClick::get_params_array()
B
54 23 16
PrliLocalApiController::update_pretty_link()
B
42 21 45
PrliAddonUpdates::queue_update()
B
36 17 81
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
PrliUpdateController::check_license_activation()
B
41 16 51
PrliClicksController::admin_page()
A
37 14 66
PrliLinksController::save_bulk_edit()
A
47 16 30
PrliUtils::php_get_browser()
A
45 15 39
PrliAddonUpdates::plugin_info()
A
36 12 80
PrliAddonsController::ajax_addon_install()
A
40 13 61
PrliNotifications::dismiss()
A
45 14 41
PrliGroup::get_params_array()
A
58 15 12
PrliLinksController::save_quick_edit()
A
49 14 27
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 28
PrliReviewNoticeController::review_notice()
A
39 9 85
PrliLinksController::ajax_quick_create()
A
45 12 38
PrliUtils::get_current_client_ip()
A
52 13 23
PrliUtils::get_main_message()
A
46 12 37
PrliToolsController::bookmark()
A
53 13 17
PrliLinksController::custom_columns()
A
44 10 50
PrliAppController::menu()
A
38 8 71
PrliPopupController::popup_visible()
A
51 11 25
PrliLink::get_target_to_pretty_urls()
A
42 9 54
PrliPostsController::search_results()
A
46 10 33
PrliLinksController::custom_link_sort_orderby()
A
48 10 33
PrliUpdateController::addons()
A
48 10 32
PrliLink::get_one_by()
A
41 8 60
PrliUpdateController::ajax_install_license_edition()
A
50 10 26
PrliPostsController::display_tinymce_form()
A
42 8 53
PrliUtils::is_incorrect_edition_installed()
A
52 10 22
PrliDb::prli_install()
A
37 5 96
PrliUtils::get_page_title()
A
53 10 19
PrliAppController::admin_submenu_order()
A
44 8 46
PrliClicksController::click_report()
A
44 8 44
PrliLinksController::add_row_actions()
A
44 8 41
PrliLink::validate()
A
51 9 25
PrliToolsController::route()
A
55 9 17
PrliOptionsController::update_attrs()
A
56 9 15
PrliClick::get_counts_by_days()
A
49 8 27
PrliAppController::admin_menu_order()
A
52 8 26
PrliAddonsController::ajax_addon_activate()
A
51 8 25
prli_get_home_url()
A
56 8 18
PrliUtils::is_robot()
A
56 8 17
PrliNotifications::verify_active()
S
59 8 14
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
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
PrliToolsController::standalone_route()
S
58 7 14
PrliPostsController::validate_tinymce_slug()
S
59 7 13
PrliNotifications::get_option()
S
59 7 13
PrliAppController::parse_standalone_request()
S
60 7 12
PrliUpdateController::activate_from_define()
S
54 6 21
PrliReviewNoticeController::dismiss_review_prompt()
S
55 6 20
PrliOptions::get_options()
S
57 6 18
PrliAddonsController::ajax_addon_deactivate()
S
55 6 18
PrliLinksController::columns()
S
44 4 47
PrliUpdateController::send_mothership_request()
S
49 5 31
PrliAppController::pro_settings_submenu()
S
50 5 31
PrliXmlRpcController::get_all_groups()
S
56 6 16
PrliXmlRpcController::get_all_links()
S
56 6 16
PrliLink::is_pretty_link()
S
57 6 15
PrliPopupController::display_popups()
S
64 7 8
PrliLink::get_or_create_pretty_link_for_target_url()
S
58 6 14
PrliPostsController::create_pretty_link()
S
51 5 28
PrliAppController::pl_admin_header()
S
48 4 43
PrliNotifications::get_notifications_with_human_readeable_start_time()
S
59 6 13
PrliLinksController::link_saved_admin_notice()
S
61 6 11
PrliClick::setupClickLineGraph()
S
50 5 24
PrliFlyoutMenuController::output()
S
53 5 24
PrliLinksHelper::link_list_actions()
S
51 5 24
PrliNotifications::add()
S
53 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
PrliFlyoutMenuController::get_items_html()
S
54 5 20
PrliLink::generateValidSlug()
S
56 5 17
PrliLinksController::modify_quick_links()
S
57 5 17
PrliNotifications::get()
S
57 5 16
PrliNotifications::dismiss_events()
S
58 5 15
prli_plugin_info()
S
59 5 14
PrliReportsController::chart_data()
S
50 4 28
PrliXmlRpcController::api_version()
S
59 5 13
PrliAppController::pro_get_started_headline()
S
59 5 13
PrliNotifications::get_notifications_with_formatted_content()
S
61 5 12
PrliLink::create_cpt_for_link()
S
52 4 26
PrliUpdateController::plp_edge_updates()
S
61 5 11
PrliLinkMeta::get_link_meta()
S
53 4 25
PrliUtils::getMonthsArray()
S
52 4 23
PrliLink::update()
S
53 4 22
PrliLinksController::register_post_type()
S
43 2 52
PrliAppController::load_hooks()
S
52 4 21
PrliLinksController::quick_bulk_edit_add()
S
50 3 35
PrliAppController::promote_pretty_links()
S
55 4 20
PrliUpdateController::ajax_deactivate_license()
S
56 4 17
PrliLinksHelper::redirect_type_dropdown()
S
56 4 16
PrliAppController::pro_action_needed()
S
58 4 16
PrliUpdateController::activation_warning()
S
68 5 6
PrliLinksController::where_links_belong_to_legacy_group()
S
62 5 10
PrliUtils::delete_prli_post_meta()
S
68 5 7
PrliOptionsController::validate()
S
62 5 10
PrliNotifications::enqueues()
S
51 3 30
PrliUtils::get_prli_post_meta()
S
67 5 7
PrliUtils::update_prli_post_meta()
S
67 5 7
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
PrliUpdateController::deactivate_license()
S
51 3 27
PrliLinksController::add_clicks_to_select()
S
53 3 27
PrliAppHelper::pro_only_feature_indicator()
S
62 4 11
PrliAppController::admin_footer()
S
55 3 22
PrliLinksHelper::link_list_url_clipboard()
S
54 3 22
PrliAddonsController::enqueue_scripts()
S
53 3 21
PrliNotifications::admin_menu_append_count()
S
55 3 21
PrliLinksController::load_hooks()
S
46 2 35
PrliAppController::add_plugin_action_links()
S
55 3 19
PrliToolsController::clear_clicks()
S
58 3 17
PrliAppController::install()
S
57 3 17
PrliFlyoutMenuController::menu_items()
S
50 2 31
PrliUtils::get_edition()
S
56 3 16
PrliAppController::should_enqueue_block_editor_scripts()
S
63 4 10
PrliUtils::get_minimum_role()
S
65 4 9
PrliUtils::full_request_url()
S
63 4 9
PrliOnboardingController::load_hooks()
S
68 4 6
PrliAppController::link_redirect_from_slug()
S
64 4 9
PrliLinksController::set_custom_post_types_admin_order()
S
64 4 9
PrliNotifications::schedule_fetch()
S
65 4 8
PrliLinksController::cleanup_visitor_locks()
S
52 2 29
PrliLink::destroy()
S
58 3 14
PrliUtils::get_start_date()
S
59 3 13
PrliAddonsController::route()
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
PrliLink::get_link_min()
S
61 3 11
PrliOnboardingController::maybe_onboard()
S
63 3 11
PrliOptionsController::route()
S
61 3 11
PrliPopupController::stop_popup()
S
62 3 11
PrliNotifications::fetch_feed()
S
63 3 11
PrliClick::getAll()
S
60 3 11
PrliPopupController::enqueue_admin_scripts()
S
53 2 24
PrliUpdateController::enqueue_scripts()
S
52 2 21
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
PrliUpdateController::load_hooks()
S
57 2 16
PrliPostsController::add_tinymce_buttons()
S
67 3 7
PrliLinksController::redirect_post_location()
S
64 3 9
PrliUpdateController::display_form()
S
67 3 7
PrliLink::get_link_from_cpt()
S
60 2 15
PrliLinksController::default_hidden_columns()
S
70 3 6
PrliLinksController::sortable_columns()
S
63 3 10
PrliLinkMeta::update_link_meta()
S
63 3 10
PrliUpdateController::maybe_activate()
S
68 3 8
PrliAppController::dismiss_upgrade_header()
S
69 3 6
PrliLinksController::search_links_table()
S
65 3 8
PrliClicksController::route()
S
68 3 7
PrliUtils::get_pretty_link_url()
S
66 3 8
PrliPopupController::is_popup_stopped()
S
66 3 8
PrliUtils::is_logged_in_and_current_user()
S
73 3 4
PrliClicksController::route_scripts()
S
70 3 6
PrliAddonsController::hide_admin_notices()
S
67 3 8
PrliUtils::get_currentuserinfo()
S
64 3 10
PrliUtils::is_post_request()
S
66 3 8
PrliUtils::is_get_request()
S
66 3 8
PrliOnboardingController::onboarding_intercept()
S
66 3 8
PrliAppController::redirect()
S
65 3 8
PrliOptionsController::update()
S
59 2 15
PrliNotifications::has_access()
S
64 3 10
PrliPopupController::is_popup_delayed()
S
66 3 8
PrliUtils::debug_log()
S
71 3 5
PrliPopupController::popup_delay_key()
S
65 3 9
PrliClick::get_count()
S
60 2 14
PrliClick::getPage()
S
58 2 13
PrliClick::clear_clicks_by_age_in_days()
S
61 2 12
PrliUtils::getFirstClickDate()
S
62 2 12
PrliLinksController::ajax_reset_pretty_link()
S
61 2 12
PrliLinksController::link_meta_box()
S
61 2 12
PrliLink::get_all_legacy_groups()
S
63 2 11
PrliUpdateController::activate_license()
S
56 1 19
PrliGroup::getOne()
S
65 2 8
PrliGroup::validate()
S
68 2 7
PrliAppController::get_screen_id()
S
69 2 7
PrliUtils::this_is_a_robot()
S
69 2 6
PrliLinkMeta::add_link_meta_item()
S
60 1 15
PrliUpdateController::is_activated()
S
74 2 4
PrliUtils::get_permalink_pre_slug_regex()
S
68 2 7
PrliUtils::decode_custom_param_str()
S
62 2 10
PrliPostsController::render_meta_box()
S
65 2 10
PrliUpdateController::is_installed_and_activated()
S
79 2 3
PrliLinksController::delete_cpt_link()
S
69 2 6
PrliUtils::rewriting_on()
S
75 2 4
PrliUtils::include_pluggables()
S
72 2 5
PrliLinksController::join_links_to_posts()
S
68 2 7
PrliUpdateController::check_incorrect_edition()
S
65 2 9
PrliAppController::admin_separator()
S
71 2 5
PrliUtils::is_logged_in_and_an_admin()
S
79 2 3
PrliUtils::clear_unknown_post_metas()
S
64 2 10
PrliUpdateController::install_plugin_silently()
S
64 2 9
PrliUtils::is_date()
S
72 2 5
PrliUtils::is_logged_in_and_a_subscriber()
S
79 2 3
PrliUtils::getFirstRecordNum()
S
67 2 8
PrliUtils::is_prli_admin()
S
66 2 9
PrliOptionsController::__construct()
S
59 1 15
PrliAddonInstallSkin::set_upgrader()
S
74 2 5
PrliUtils::get_date_from_ts()
S
67 2 8
PrliPopupController::on_pretty_link_page()
S
74 2 4
PrliAddonUpdates::check_incorrect_edition()
S
65 2 9
prli_update_pretty_link()
S
60 1 15
PrliPopupController::delay_popup()
S
67 2 8
PrliNotifications::get_count()
S
77 2 3
PrliLocalApiController::get_pretty_link_url()
S
67 2 8
PrliAddonInstallSkin::error()
S
74 2 5
PrliUtils::prepend_and_or_where()
S
78 2 3
prli_run_activation()
S
66 2 9
PrliUtils::sanitize_html()
S
78 2 3
PrliAppController::on_pretty_link_page()
S
74 2 4
PrliUtils::get_end_date()
S
63 2 10
PrliAppController::show_about_notice()
S
68 2 6
PrliGroup::getAll()
S
64 2 8
PrliClick::get_first_date()
S
63 2 10
PrliAppController::about_notice()
S
63 2 10
PrliPopupController::maybe_show_popup()
S
68 2 7
PrliPopupController::load_hooks()
S
66 2 8
PrliUtils::gen_random_string()
S
65 2 8
PrliOptions::__construct()
S
71 2 6
PrliLinksController::maybe_cleanup_visitor_locks()
S
68 2 7
PrliDb::should_install()
S
70 2 6
PrliPostsController::add_meta_box()
S
63 2 10
PrliUtils::getLastRecordNum()
S
78 2 3
PrliAddonUpdates::__construct()
S
58 1 14
PrliLink::update_cpt_status()
S
61 1 14
PrliLink::update_cpt_title()
S
61 1 14
PrliLinksController::advanced_featured_meta_box()
S
61 1 14
PrliAppController::__construct()
S
60 1 14
prli_create_pretty_link()
S
61 1 14
PrliNotifications::update()
S
62 1 13
PrliUtils::uninstall_pro()
S
62 1 12
PrliLinkMeta::delete_link_meta()
S
63 1 12
PrliLink::update_link_status()
S
63 1 12
PrliAppController::dashboard_widget_function()
S
61 1 11
PrliLink::update_link_cpt()
S
64 1 11
prli_activation()
S
80 1 3
PrliUpdateController::queue_button()
S
72 1 5
PrliLinksHelper::link_action_tweet()
S
65 1 9
PrliUpdateController::manually_queue_update()
S
75 1 4
PrliLocalApiController::api_version()
S
82 1 3
PrliUpdateController::deactivate()
S
76 1 4
PrliPopupController::set_popup_last_viewed_timestamp()
S
72 1 5
PrliXmlRpcController::export_api()
S
63 1 10
PrliAppHelper::info_tooltip()
S
68 1 9
PrliUpdateController::set_edge_updates()
S
72 1 5
PrliAppController::is_pretty_link_page()
S
75 1 4
PrliPopupController::increment_popup_display_count()
S
71 1 5
PrliAddonInstallSkin::footer()
S
98 1 1
PrliUtils::is_user_logged_in()
S
76 1 4
PrliUtils::getTopValue()
S
76 1 4
PrliNotifications::init()
S
82 1 3
PrliPopupController::popup_stop_key()
S
79 1 3
PrliXmlRpcController::load_hooks()
S
79 1 3
PrliLink::getOneFromSlug()
S
78 1 3
PrliUtils::object_to_string()
S
74 1 5
PrliAppHelper::page_title()
S
79 1 3
PrliUtils::get_post_content()
S
68 1 7
PrliPopupController::is_valid_popup()
S
79 1 3
PrliClick::getOne()
S
70 1 5
PrliUtils::is_authorized()
S
79 1 3
PrliToolsController::load_hooks()
S
79 1 3
PrliClick::generateUniqueVisitorId()
S
81 1 3
PrliOptionsController::load_hooks()
S
91 1 2
PrliLocalApiController::get_all_groups()
S
82 1 3
PrliClick::getRecordCount()
S
67 1 7
PrliClicksHelper::esc_spreadsheet_cell()
S
78 1 3
PrliLink::bookmarklet_link()
S
72 1 5
PrliClick::get_distinct_ip_count()
S
67 1 7
PrliLinkMeta::__construct()
S
76 1 4
PrliUtils::exit_with_status()
S
71 1 5
PrliLinksHelper::link_action_visit_pretty_link()
S
65 1 9
PrliUpdateController::upgrade_groups()
S
72 1 5
prli_get_all_groups()
S
83 1 3
PrliUpdateController::update_plugin()
S
74 1 5
PrliFlyoutMenuController::load_hooks()
S
79 1 3
PrliDb::table_exists()
S
69 1 6
PrliUtils::ts_to_mysql_date()
S
79 1 3
PrliLink::reset()
S
67 1 7
PrliPopupController::__construct()
S
78 1 4
PrliUpdateController::update_plugin_url()
S
77 1 3
PrliLink::find_first_target_url()
S
69 1 6
PrliUpdateController::set_mothership_license()
S
72 1 5
PrliClicksController::load_hooks()
S
75 1 4
PrliUpdateController::__construct()
S
66 1 8
PrliGroup::getPageCount()
S
78 1 3
PrliAppController::is_pretty_link_listing_page()
S
75 1 4
PrliUpdateController::activate_page_url()
S
80 1 3
PrliLinkMeta::delete_link_metas()
S
65 1 10
PrliPopupController::popup_display_count_key()
S
79 1 3
PrliReviewNoticeController::load_hooks()
S
75 1 4
PrliLink::get_count()
S
71 1 5
PrliAppController::close_about_notice()
S
75 1 4
PrliPostsController::add_tinymce_plugin()
S
75 1 4
PrliLocalApiController::load_hooks()
S
91 1 2
PrliUpdateController::upgrade_import_export()
S
72 1 5
PrliUtils::is_phone()
S
79 1 3
PrliAppController::standalone_route()
S
83 1 3
PrliPostsController::load_hooks()
S
66 1 8
prli_load_textdomain()
S
74 1 4
PrliAddonInstallSkin::decrement_update_count()
S
98 1 1
PrliClick::__construct()
S
76 1 4
PrliUtils::db_date_to_ts()
S
80 1 3
PrliUtils::is_url()
S
78 1 3
PrliGroup::getPage()
S
64 1 8
prli_api_version()
S
77 1 4
PrliLinkMeta::add_link_meta()
S
79 1 3
PrliLink::__construct()
S
76 1 4
prli_get_pretty_link_url()
S
76 1 4
PrliDb::__construct()
S
68 1 7
PrliAppController::is_pretty_link_edit_tags()
S
75 1 4
PrliAddonInstallSkin::header()
S
98 1 1
PrliNotifications::hooks()
S
66 1 8
PrliUtils::check_ajax_referer()
S
75 1 4
PrliAddonUpdates::clear_update_transient()
S
80 1 3
PrliLink::getOne()
S
78 1 3
PrliUpdateController::upgrade_tags()
S
72 1 5
prli_get_link_from_slug()
S
75 1 4
PrliLink::get_first_date()
S
71 1 5
PrliUpdateController::upgrade_reports()
S
72 1 5
PrliPopupController::get_popup_last_viewed_timestamp()
S
74 1 4
PrliGroup::create()
S
67 1 7
PrliBaseController::load_hooks()
S
100 1 0
PrliPostsController::register_buttons()
S
76 1 4
PrliLinksHelper::link_action_reset()
S
64 1 10
PrliLinksHelper::link_action_visit_target()
S
65 1 9
prli_get_all_links()
S
77 1 4
PrliUpdateController::is_installed()
S
80 1 3
PrliLinksHelper::link_action_email()
S
64 1 9
PrliUtils::site_domain()
S
78 1 3
PrliOnboardingController::welcome_route()
S
80 1 3
PrliLink::enable_link()
S
79 1 3
PrliUtils::get_custom_forwarding_rule()
S
74 1 4
PrliReportsController::load_hooks()
S
91 1 2
PrliAddonsController::load_hooks()
S
67 1 7
PrliGroup::__construct()
S
76 1 4
PrliAddonInstallSkin::feedback()
S
98 1 1
PrliClicksController::__construct()
S
81 1 3
PrliLocalApiController::get_link()
S
72 1 5
PrliAppController::is_pretty_link_link_page()
S
74 1 4
PrliUpdateController::upgrade_categories()
S
72 1 5
PrliGroup::destroy()
S
67 1 7
PrliUtils::is_admin()
S
79 1 3
PrliLinksController::intervals()
S
68 1 7
PrliLocalApiController::get_link_from_slug()
S
72 1 5
PrliLink::get_link_slug()
S
68 1 6
PrliAppController::is_pretty_link_new_page()
S
75 1 4
PrliUpdateController::clear_update_transients()
S
72 1 6
PrliClick::clearAllClicks()
S
67 1 7
PrliAppController::is_pretty_link_edit_page()
S
75 1 4
prli_get_link()
S
75 1 4
PrliUtils::now()
S
80 1 3
PrliGroup::update()
S
67 1 7
PrliLocalApiController::get_all_links()
S
72 1 5
PrliUtils::is_email()
S
79 1 3
PrliGroup::getRecordCount()
S
71 1 5
PrliUtils::is_subscriber()
S
79 1 3
PrliUtils::get_current_user_id()
S
76 1 4
PrliUpdateController::route()
S
82 1 3
PrliUtils::clamp()
S
78 1 3
PrliUtils::db_now()
S
78 1 3
PrliLink::is_pretty_link_slug()
S
78 1 3
PrliOptions::store()
S
72 1 5
PrliUtils::current_user_can()
S
75 1 4
PrliLink::disable_link()
S
79 1 3
PrliClick::getPageCount()
S
78 1 3