Code Analysis: Safe Redirect Manager 2.2.2

Function Rating Maintainability Complexity Lines of code
SRM_Redirect::match_redirect()
D
31 32 103
SRM_Post_Type::action_save_post()
B
40 21 60
srm_import_file()
B
41 20 49
SRM_Loop_Detection::get_directed_graph()
A
44 13 44
srm_check_for_possible_redirect_loops()
A
47 13 34
SRM_Redirect::maybe_redirect()
A
43 11 47
srm_get_redirects()
A
42 10 52
SRM_WP_CLI::import_htaccess()
A
44 9 44
srm_create_redirect()
A
39 7 71
SRM_WP_CLI::create()
A
51 8 27
SRM_Post_Type::action_redirect_chain_alert()
A
47 7 42
SRM_Redirect::multisite_checks()
A
56 8 20
SRM_Post_Type::srm_autocomplete()
S
46 6 42
SRM_Post_Type::srm_validate_from_url()
S
47 6 35
srm_sanitize_redirect_from()
S
57 7 16
SRM_Post_Type::action_quick_edit_custom_redirect_columns()
S
48 5 39
SRM_WP_CLI::cli_list()
S
47 5 37
SRM_Post_Type::redirect_rule_metabox()
S
42 3 59
SRM_Post_Type::action_custom_redirect_columns()
S
60 6 12
SRM_Post_Type::filter_admin_title()
S
58 5 17
SRM_Post_Type::filter_post_type_link()
S
58 5 16
SRM_Redirect::modify_redirect_protocol()
S
59 5 14
SRM_Loop_Detection::has_cycle_recursive()
S
59 5 14
SRM_Loop_Detection::detect_redirect_loops()
S
59 4 14
SRM_WP_CLI::export_csv()
S
51 3 28
SRM_Post_Type::get_redirect_capability()
S
61 4 12
srm_sanitize_redirect_to()
S
62 4 12
SRM_WP_CLI::import()
S
53 3 24
SRM_Post_Type::filter_redirect_updated_messages()
S
47 2 36
SRM_WP_CLI::delete()
S
62 4 10
SRM_Post_Type::action_register_post_types()
S
45 1 45
SRM_Post_Type::filter_search_clauses()
S
52 2 28
SRM_Post_Type::init_search_filters()
S
61 3 12
srm_get_valid_status_codes_data()
S
55 2 21
SRM_Post_Type::load_resources()
S
55 2 18
SRM_Post_Type::action_transition_post_status()
S
68 3 8
SRM_Post_Type::is_plugin_page()
S
76 3 3
SRM_Post_Type::disable_core_search()
S
69 3 6
SRM_Post_Type::filter_disable_quick_edit()
S
69 3 6
SRM_Post_Type::filter_hidden_columns()
S
68 3 7
SRM_Post_Type::action_print_logo_css()
S
67 2 14
SRM_Post_Type::setup()
S
52 1 23
SRM_Redirect::factory()
S
68 2 8
SRM_Post_Type::factory()
S
68 2 8
SRM_Redirect::setup_redirect()
S
66 2 8
SRM_Loop_Detection::get_cycle_source()
S
63 1 11
minimum_php_requirement()
S
83 1 3
srm_get_valid_status_codes()
S
79 1 3
SRM_Post_Type::filter_redirect_sortable_columns()
S
77 1 4
site_meets_php_requirements()
S
79 1 3
SRM_Redirect::filter_allowed_redirect_hosts()
S
68 1 7
srm_get_max_redirects()
S
80 1 3
SRM_Post_Type::action_redirect_rule_metabox()
S
77 1 3
srm_flush_cache()
S
77 1 4
SRM_WP_CLI::update_cache()
S
77 1 4
srm_max_redirects_reached()
S
73 1 5
srm_match_redirect()
S
81 1 3
SRM_Post_Type::filter_redirect_columns()
S
63 1 10
SRM_Post_Type::init_properties()
S
80 1 3
SRM_Redirect::setup()
S
78 1 3