Code Analysis: Safe Redirect Manager 2.0.0

Function Rating Maintainability Complexity Lines of code
SRM_Redirect::match_redirect()
D
32 31 98
srm_import_file()
B
42 17 47
SRM_Post_Type::action_save_post()
A
45 13 40
srm_check_for_possible_redirect_loops()
A
47 13 34
SRM_Redirect::maybe_redirect()
A
44 11 43
SRM_WP_CLI::import_htaccess()
A
44 9 44
srm_get_redirects()
A
43 8 47
SRM_WP_CLI::create()
A
51 8 27
SRM_Redirect::multisite_checks()
A
56 8 20
srm_create_redirect()
S
46 6 36
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::redirect_rule_metabox()
S
44 3 51
SRM_Post_Type::filter_admin_title()
S
58 5 17
SRM_Post_Type::filter_post_type_link()
S
58 5 16
SRM_Post_Type::srm_validate_from_url()
S
49 4 31
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_WP_CLI::delete()
S
62 4 10
SRM_Post_Type::action_custom_redirect_columns()
S
63 4 10
SRM_Post_Type::action_register_post_types()
S
44 1 45
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_get_valid_status_codes_data()
S
55 2 21
SRM_Post_Type::action_transition_post_status()
S
68 3 8
SRM_Post_Type::filter_disable_quick_edit()
S
68 3 7
SRM_Post_Type::is_plugin_page()
S
76 3 3
SRM_Post_Type::disable_core_search()
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::load_resources()
S
60 2 13
SRM_Post_Type::setup()
S
53 1 21
SRM_Redirect::factory()
S
68 2 8
SRM_Post_Type::factory()
S
68 2 8
SRM_Redirect::setup_redirect()
S
66 2 8
srm_flush_cache()
S
80 1 3
SRM_Redirect::filter_allowed_redirect_hosts()
S
68 1 7
SRM_Post_Type::filter_bulk_actions()
S
76 1 4
SRM_Post_Type::action_redirect_rule_metabox()
S
77 1 3
srm_get_max_redirects()
S
80 1 3
SRM_Post_Type::filter_redirect_columns()
S
64 1 9
SRM_Post_Type::init_properties()
S
80 1 3
srm_get_valid_status_codes()
S
79 1 3
srm_match_redirect()
S
81 1 3
SRM_Post_Type::filter_redirect_sortable_columns()
S
77 1 4
SRM_Redirect::setup()
S
78 1 3
SRM_WP_CLI::update_cache()
S
77 1 4
srm_max_redirects_reached()
S
73 1 5