Code Analysis: Safe Redirect Manager 1.10.1

Function Rating Maintainability Complexity Lines of code
SRM_Redirect::match_redirect()
C
32 29 95
srm_import_file()
B
42 16 46
srm_check_for_possible_redirect_loops()
A
47 13 34
SRM_Post_Type::action_save_post()
A
47 12 35
SRM_WP_CLI::import_htaccess()
A
44 9 44
srm_get_redirects()
A
43 8 46
SRM_Redirect::maybe_redirect()
A
50 8 28
SRM_WP_CLI::create()
A
51 8 27
srm_create_redirect()
S
47 6 34
srm_sanitize_redirect_from()
S
57 7 16
SRM_Post_Type::action_redirect_chain_alert()
S
54 6 26
SRM_WP_CLI::cli_list()
S
47 5 37
SRM_Post_Type::filter_admin_title()
S
58 5 17
SRM_Post_Type::filter_post_type_link()
S
58 5 16
SRM_Post_Type::redirect_rule_metabox()
S
46 3 42
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 23
SRM_Post_Type::action_register_post_types()
S
44 1 45
SRM_Post_Type::action_custom_redirect_columns()
S
63 4 10
SRM_WP_CLI::delete()
S
62 4 10
SRM_Post_Type::filter_search_clauses()
S
52 2 28
SRM_Post_Type::init_search_filters()
S
61 3 12
SRM_Post_Type::filter_redirect_updated_messages()
S
53 2 21
SRM_Post_Type::filter_hidden_columns()
S
68 3 7
SRM_Post_Type::disable_core_search()
S
69 3 6
SRM_Post_Type::filter_disable_quick_edit()
S
68 3 7
SRM_Post_Type::action_transition_post_status()
S
68 3 8
SRM_Post_Type::is_plugin_page()
S
76 3 3
SRM_Post_Type::action_print_logo_css()
S
67 2 14
SRM_Post_Type::setup()
S
54 1 19
srm_get_valid_status_codes_data()
S
58 1 16
SRM_Post_Type::factory()
S
68 2 8
SRM_Redirect::setup_redirect()
S
68 2 7
SRM_Redirect::factory()
S
68 2 8
srm_flush_cache()
S
80 1 3
srm_get_max_redirects()
S
80 1 3
srm_get_valid_status_codes()
S
79 1 3
SRM_Redirect::setup()
S
78 1 3
SRM_Redirect::filter_allowed_redirect_hosts()
S
68 1 7
SRM_WP_CLI::update_cache()
S
77 1 4
srm_max_redirects_reached()
S
73 1 5
SRM_Post_Type::filter_redirect_sortable_columns()
S
77 1 4
SRM_Post_Type::filter_bulk_actions()
S
76 1 4
SRM_Post_Type::filter_redirect_columns()
S
64 1 9
SRM_Post_Type::action_redirect_rule_metabox()
S
77 1 3
srm_match_redirect()
S
81 1 3