Code Analysis: User Role Editor 4.64.2

Function Rating Maintainability Complexity Lines of code
URE_Role_View::toolbar()
C
40 24 71
URE_View::_show_capabilities()
B
37 15 73
URE_Role_View::display_options()
A
43 13 52
URE_User_View::display()
A
39 11 80
URE_Ajax_Processor::_dispatch()
A
45 13 43
URE_Grant_Roles::grant_roles()
A
47 13 34
URE_Base_Lib::get_request_var()
A
46 12 40
URE_Grant_Roles::update_roles()
A
54 12 19
URE_Capabilities::add_custom_post_type_caps()
A
47 11 34
URE_User_Other_Roles::update()
A
48 11 33
User_Role_Editor::plugin_init()
A
44 10 43
User_Role_Editor::edit_user_permission_check()
A
51 11 26
URE_Editor::add_new_role()
A
45 10 40
URE_Editor::process_user_request()
A
46 10 40
URE_Lib::user_has_capability()
A
53 11 21
URE_Grant_Roles::revoke_role()
A
50 10 29
URE_Editor::direct_network_roles_update()
A
45 9 40
URE_Role_View::caps_to_remove_html()
A
43 8 51
URE_Protect_Admin::not_edit_admin()
A
48 9 34
URE_Editor::change_default_role()
A
47 9 33
URE_Role_View::role_select_copy_prepare_html()
A
48 9 28
URE_Grant_Roles::add_role()
A
51 9 26
URE_User_View::get_user_info()
A
50 9 26
URE_Lib::init_options()
A
54 9 22
URE_Lib::is_super_admin()
A
56 9 18
User_Role_Editor::load_main_page_js()
A
42 7 46
URE_User_Other_Roles::roles_select_html()
A
48 8 30
URE_Capabilities_Groups_Manager::_get_built_in_wp_caps()
A
36 4 90
URE_User_Other_Roles::load_js()
A
48 8 29
URE_Tools::show_reset_roles()
A
47 7 41
URE_Capabilities_Groups_Manager::get_registered_cpt_caps()
A
54 8 22
URE_Settings::update_default_roles()
A
53 8 21
URE_Role_View::role_default_prepare_html()
A
52 8 20
URE_Grant_Roles::is_try_remove_admin_from_himself()
A
54 8 20
User_Role_Editor::restore_users_edit_caps()
A
55 8 20
URE_Editor::_init0()
A
55 8 19
URE_Editor::delete_role()
A
49 7 32
URE_Capabilities::get_caps_to_remove()
S
50 7 29
URE_Capability::delete()
S
49 7 29
URE_Capabilities::grant_all_caps_to_admin()
S
50 7 29
URE_Capabilities_Groups_Manager::add_custom_post_types()
S
50 7 27
URE_Capability::add()
S
47 6 38
URE_Settings::controller()
S
55 7 23
URE_Editor::block_cap_for_single_admin()
S
54 7 23
URE_Capabilities_Groups_Manager::get_groups_for_custom_cap()
S
54 7 23
URE_Editor::get_role_id_from_post()
S
53 7 22
User_Role_Editor::settings_screen_configure()
S
48 6 36
URE_Capability::validate()
S
48 6 35
URE_Woocommerce_Capabilities::get_caps_groups()
S
47 6 35
URE_User_Other_Roles::get_roles_array()
S
55 7 19
URE_Editor::add_other_roles()
S
55 7 18
URE_Grant_Roles::validate_users()
S
58 7 17
URE_Editor::last_check_before_update()
S
57 7 17
URE_Lib::flush_options()
S
59 7 15
URE_Editor::update_role()
S
50 6 29
URE_Settings::show()
S
49 6 28
URE_Editor::update_user()
S
52 6 26
URE_Editor::get_roles_can_delete()
S
52 6 24
URE_Editor::permissions_object_update()
S
54 6 23
URE_Editor::reset_user_roles()
S
53 6 23
URE_Capabilities_Groups_Manager::_get_all_custom_post_types_caps()
S
53 6 23
URE_Grant_Roles::grant_primary_role_to_user()
S
54 6 22
URE_Role_View::display_edit_dialogs()
S
44 3 66
URE_Uninstall::delete_caps()
S
55 6 21
URE_Own_Capabilities::get_key_capability()
S
54 6 21
URE_Own_Capabilities::get_settings_capability()
S
54 6 21
URE_Editor::rename_role()
S
48 5 35
URE_Editor::check_user_to_edit()
S
55 6 20
URE_Editor::role_contains_caps_not_allowed_for_simple_admin()
S
56 6 20
URE_User_View::show_secondary_roles()
S
55 6 18
URE_User_Other_Roles::add_default_other_roles()
S
56 6 18
URE_Base_Lib::get_short_list_str()
S
56 6 18
URE_Ajax_Processor::get_role_caps()
S
49 5 32
URE_Role_Additional_Options::show()
S
51 5 31
URE_Task_Queue::process()
S
57 6 16
URE_Editor::update_roles()
S
59 6 15
URE_Editor::update_user_roles()
S
59 6 15
User_Role_Editor::exclude_from_plugins_list()
S
58 6 15
URE_Capabilities::get_full_caps_list_from_roles()
S
59 6 14
URE_Editor::get_new_primary_role()
S
59 6 13
URE_Capabilities::add_cap_to_roles()
S
60 6 12
URE_Editor::set_current_role()
S
62 6 11
URE_Grant_Roles::show_roles_manage_html()
S
47 4 41
URE_Editor::translation_data()
S
40 2 70
URE_Editor::delete_wp_roles()
S
52 5 25
User_Role_Editor::plugin_menu()
S
52 5 25
URE_Editor::wp_api_network_roles_update()
S
53 5 23
URE_Screen_Help::get_settings_help()
S
56 5 22
URE_Editor::multisite_update_roles()
S
55 5 20
URE_Settings::show_other_default_roles()
S
54 5 19
User_Role_Editor::allow_add_user_as_superadmin()
S
55 5 19
URE_Capability::get_caps_for_deletion_from_post()
S
56 5 18
URE_Lib::roles_text()
S
57 5 17
User_Role_Editor::fix_network_admin_roles_dropdown()
S
56 5 17
URE_Capabilities::add_custom_taxonomies_caps()
S
56 5 17
URE_Role_Additional_Options::save()
S
57 5 16
URE_User_Other_Roles::load_css()
S
57 5 16
URE_Editor::remove_user_capabilities()
S
58 5 16
ure_array_merge()
S
59 5 16
URE_Base_Lib::esc_sql_in_list()
S
58 5 15
URE_Lib::user_has_role()
S
60 5 15
User_Role_Editor::translate_custom_roles()
S
58 5 15
URE_View::blocked_for_single_admin_style()
S
60 5 14
URE_Editor::user_can()
S
60 5 14
URE_Role_Additional_Options::set_active_items_hooks()
S
60 5 13
URE_View::show_select_all()
S
60 5 13
URE_Editor::prepare_capabilities_to_save()
S
60 5 13
URE_User_Other_Roles::get_user_caps_str()
S
60 5 13
URE_Assign_Role::count_quick_or_thoroughly()
S
60 5 13
URE_Woocommerce_Capabilities::get_post_types_without_caps()
S
61 5 12
URE_Editor::restore_visual_composer_caps()
S
60 5 12
URE_Capabilities_Groups_Manager::add_woocommerce_groups()
S
51 4 27
URE_View::deprecated_show_and_color()
S
62 5 11
User_Role_Editor::duplicate_roles_for_new_blog()
S
52 4 26
URE_Base_Lib::check_version()
S
61 5 11
URE_Capabilities::add_roles_caps()
S
62 5 11
URE_Ajax_Processor::get_users_without_role()
S
53 4 24
URE_Grant_Roles::select_other_roles_html()
S
53 4 23
URE_Editor::show_editor()
S
49 3 38
URE_Grant_Roles::get_user_roles()
S
53 4 21
URE_Protect_Admin::has_administrator_role()
S
55 4 20
URE_Settings::get_action()
S
55 4 20
URE_Grant_Roles::grant_other_roles_to_user()
S
55 4 20
User_Role_Editor::plugin_action_links()
S
54 4 20
URE_Editor::save_roles()
S
55 4 19
URE_Assign_Role::show_html()
S
57 4 19
URE_Own_Capabilities::init_caps()
S
55 4 19
URE_View::display_caps()
S
47 2 49
URE_Editor::init0()
S
57 4 18
User_Role_Editor::set_hooks()
S
55 4 18
URE_Protect_Admin::exclude_administrators()
S
55 4 18
URE_Own_Capabilities::get_caps()
S
50 3 32
URE_Lib::get_admin_role()
S
57 4 17
URE_User_Other_Roles::edit_user_profile_html()
S
58 4 16
URE_Known_JS_CSS_Compatibility_Issues::unload_musicplay()
S
59 4 14
URE_Role_View::role_delete_prepare_html()
S
58 4 14
URE_Grant_Roles::validate_roles()
S
60 4 14
URE_Lib::get_editable_user_roles()
S
60 4 14
URE_Capabilities_Groups_Manager::get_groups_tree()
S
51 3 29
User_Role_Editor::sort_wp_roles_list()
S
61 4 13
URE_Capability::revoke_caps_from_user()
S
62 4 12
URE_Editor::get_caps_columns_quant()
S
60 4 12
URE_Advertisement::rand_unique()
S
61 4 12
URE_bbPress::extract_bbp_roles()
S
62 4 12
URE_Editor::remove_caps_not_allowed_for_single_admin()
S
63 4 11
User_Role_Editor::load_translation()
S
61 4 11
User_Role_Editor::load_settings_js()
S
50 3 26
URE_Settings::update_general_options()
S
53 3 22
URE_Editor::leave_roles_for_blog()
S
54 3 21
User_Role_Editor::__construct()
S
55 3 20
URE_View::show_caps_groups()
S
55 3 18
URE_Grant_Roles::select_primary_role_html()
S
57 3 18
URE_Editor::init_current_role_name()
S
56 3 17
URE_Known_JS_CSS_Compatibility_Issues::unload_techgostore()
S
57 3 17
URE_Uninstall::act()
S
59 3 16
URE_Protect_Admin::exclude_admins_view()
S
58 3 16
URE_Lib::show_admin_role_allowed()
S
70 4 5
URE_Capabilities_Groups_Manager::get_base_wp_groups()
S
47 1 45
URE_Editor::set_primary_role()
S
59 3 14
URE_Advertisement::display()
S
62 3 14
URE_Capabilities_Groups_Manager::get_cap_groups()
S
59 3 14
URE_Capabilities::add_capability_to_full_caps_list()
S
60 3 14
User_Role_Editor::user_row()
S
59 3 13
URE_Grant_Roles::is_select_primary_role()
S
62 3 12
URE_Editor::delete_all_unused_roles()
S
61 3 12
URE_Lib::user_is_admin()
S
62 3 12
User_Role_Editor::sort_roles_by_name()
S
62 3 12
URE_User_Other_Roles::user_new_form()
S
63 3 11
URE_User_Other_Roles::additional_capabilities_display()
S
63 3 11
URE_Capabilities_Groups_Manager::get_custom_post_type_caps()
S
63 3 11
URE_View::advertise_pro()
S
58 2 22
URE_User_Other_Roles::user_profile_capabilities()
S
56 2 20
URE_User_Other_Roles::display()
S
59 2 19
URE_Capabilities::init_full_list()
S
57 2 18
URE_Lib::about()
S
57 2 18
URE_Assign_Role::get_users_without_role()
S
58 2 16
URE_Ajax_Processor::add_capability()
S
57 2 16
URE_Base_Lib::delete_option()
S
68 3 8
URE_Capabilities_Groups_Manager::add_group_to_edit_post_cap()
S
66 3 8
URE_User_Other_Roles::add_other_roles()
S
66 3 9
URE_Ajax_Processor::valid_nonce()
S
65 3 8
URE_Capabilities::add_create_cap_to_admin()
S
64 3 9
URE_Ajax_Processor::dispatch()
S
64 3 10
URE_Editor::valid_nonce()
S
67 3 7
URE_Lib::upgrade()
S
65 3 9
URE_Role_View::role_edit_prepare_html()
S
67 3 8
URE_Capabilities::add_gravity_forms_caps()
S
65 3 9
URE_Capabilities::get_visual_composer_caps()
S
65 3 9
URE_Base_Lib::show_message()
S
65 3 10
URE_Capability::revoke_caps_from_role()
S
69 3 7
URE_Capability::revoke_caps()
S
63 3 10
URE_Editor::get_role_id()
S
64 3 10
URE_Known_JS_CSS_Compatibility_Issues::unload_conflict_plugins_css()
S
65 3 9
URE_Lib::__construct()
S
69 3 6
URE_Editor::is_full_network_synch()
S
64 3 9
URE_Base_Lib::__construct()
S
68 3 7
URE_Settings::get_settings_link()
S
64 3 10
URE_View::get_full_capabilities()
S
64 3 9
URE_Screen_Help::get_additional_modules_tab()
S
59 2 15
URE_Ajax_Processor::get_required_cap()
S
67 3 8
URE_Editor::get_edit_user_caps_mode()
S
67 3 8
URE_Editor::check_blog_user()
S
63 3 10
URE_Lib::get_instance()
S
65 3 9
URE_Base_Lib::put_option()
S
66 3 9
User_Role_Editor::get_ure_page_url()
S
63 3 9
User_Role_Editor::admin_load_js()
S
67 3 8
URE_User_Other_Roles::set_hooks()
S
58 2 15
URE_Editor::get_user_primary_role()
S
74 3 4
URE_Protect_Admin::exclude_admin_role()
S
70 3 6
URE_Capabilities::add_bbpress_caps()
S
64 3 10
URE_Capabilities::add_user_caps()
S
63 3 10
URE_Editor::update_user_capabilities()
S
64 3 10
URE_Capabilities::add_ure_caps()
S
64 3 10
User_Role_Editor::network_plugin_menu()
S
60 2 13
URE_User_View::show_primary_role_dropdown_list()
S
60 2 13
URE_Grant_Roles::load_js()
S
59 2 13
URE_Base_Lib::get_blog_ids()
S
61 2 13
URE_Ajax_Processor::delete_capability()
S
62 2 12
URE_Settings::update_multisite_options()
S
61 2 12
URE_Editor::show()
S
63 2 11
URE_Settings::update_addons_options()
S
62 2 11
URE_Assign_Role::get_users_count_query()
S
63 2 11
URE_Screen_Help::get_general_tab()
S
52 1 26
User_Role_Editor::backup_wp_roles()
S
62 2 11
URE_Protect_Admin::__construct()
S
61 2 11
URE_Role_View::display()
S
58 1 19
URE_Lib::get_edit_post_capabilities()
S
60 1 16
URE_Woocommerce_Capabilities::add_base_caps()
S
57 1 16
URE_Lib::get_bbpress()
S
71 2 6
URE_Capabilities::get_instance()
S
71 2 6
User_Role_Editor::show_move_users_from_no_role_button()
S
69 2 7
URE_Base_Lib::get_instance()
S
70 2 6
URE_Editor::set_show_deprecated_caps()
S
67 2 8
URE_Task_Queue::get_instance()
S
71 2 6
URE_Lib::get_user_roles()
S
65 2 10
URE_Assign_Role::count_users_without_role()
S
64 2 10
URE_Ajax_Processor::get_action()
S
69 2 7
URE_bbPress::detect_bbpress()
S
71 2 6
URE_Own_Capabilities::get_caps_groups()
S
66 2 8
URE_Ajax_Processor::user_can()
S
65 2 9
URE_Settings::tools_exec()
S
65 2 9
URE_Uninstall::delete_options()
S
67 2 8
URE_bbPress::get_caps()
S
68 2 8
wp_roles()
S
70 2 7
User_Role_Editor::edit_roles()
S
68 2 7
URE_Protect_Admin::is_protection_applicable()
S
65 2 9
URE_Capabilities::add_wordpress_caps()
S
73 2 5
URE_Base_Lib::get_option()
S
65 2 9
URE_Lib::is_right_admin_path()
S
63 2 10
URE_Protect_Admin::extract_view_quantity()
S
64 2 10
URE_Capabilities_Groups_Manager::get_instance()
S
71 2 6
ure_get_post_view_access_users()
S
69 2 7
User_Role_Editor::get_instance()
S
71 2 6
URE_Base_Lib::set()
S
70 2 6
URE_Lib::restore_after_blog_switching()
S
68 2 7
User_Role_Editor::settings()
S
68 2 7
URE_Lib::set_raised_permissions()
S
78 2 3
URE_bbPress::get_roles()
S
66 2 9
URE_Editor::update_network()
S
64 2 10
URE_Base_Lib::get_main_site()
S
72 2 5
URE_Editor::init1()
S
68 2 7
URE_Editor::get()
S
68 2 7
URE_Assign_Role::create_no_rights_role()
S
65 2 9
URE_Ajax_Processor::__construct()
S
74 2 4
URE_Tools::reset_roles()
S
65 2 9
URE_Task_Queue::remove()
S
70 2 6
URE_Base_Lib::get()
S
68 2 7
URE_Capabilities::add_members_caps()
S
69 2 7
URE_Editor::get_instance()
S
71 2 6
URE_Editor::get_bbpress_role()
S
66 2 9
URE_Editor::set_caps_readable()
S
67 2 8
URE_Role_Additional_Options::get_instance()
S
70 2 6
URE_Lib::get_all_editable_roles()
S
68 2 7
User_Role_Editor::plugin_row_meta()
S
68 2 6
URE_Known_JS_CSS_Compatibility_Issues::fix()
S
64 2 10
URE_Screen_Help::get_default_roles_tab()
S
60 1 14
URE_User_View::toolbar()
S
67 1 13
URE_Woocommerce_Capabilities::add_group_to_caps()
S
60 1 13
URE_Screen_Help::get_multisite_tab()
S
61 1 13
URE_Assign_Role::get_thorougly_where_condition()
S
61 1 12
User_Role_Editor::add_js_to_users_page()
S
60 1 12
URE_Editor::wp_roles_reinit()
S
62 1 12
URE_Assign_Role::get_quick_query_part2()
S
62 1 11
URE_Advertisement::admin_menu_editor()
S
66 1 11
URE_Ajax_Processor::add_role()
S
63 1 11
URE_Ajax_Processor::update_role()
S
63 1 11
URE_Ajax_Processor::rename_role()
S
63 1 11
URE_Base_Lib::filter_string_var()
S
72 1 5
URE_Task_Queue::__construct()
S
82 1 3
URE_Ajax_Processor::delete_role()
S
64 1 10
URE_Admin_Notice::render()
S
79 1 3
URE_View::show_capabilities()
S
68 1 7
User_Role_Editor::setup()
S
72 1 6
User_Role_Editor::set_role_additional_options_hooks()
S
76 1 4
URE_Advertisement::__construct()
S
83 1 3
URE_Task_Queue::__wakeup()
S
80 1 3
URE_bbPress::__construct()
S
78 1 3
URE_Role_Additional_Options::get_active_items()
S
75 1 4
User_Role_Editor::uninstall()
S
76 1 4
URE_Task_Queue::add()
S
75 1 4
URE_Capabilities_Groups_Manager::get_post_types_without_caps()
S
71 1 6
URE_Capabilities_Groups_Manager::__wakeup()
S
80 1 3
URE_Capabilities_Groups_Manager::__clone()
S
80 1 3
URE_Capabilities::__wakeup()
S
80 1 3
URE_Ajax_Processor::hide_pro_banner()
S
66 1 9
URE_Grant_Roles::load()
S
70 1 6
URE_Task_Queue::__clone()
S
80 1 3
URE_Advertisement::init()
S
68 1 7
URE_View::advertise_commercials()
S
73 1 5
URE_Grant_Roles::get_roles_options_list()
S
72 1 6
URE_User_View::display_edit_dialogs()
S
91 1 2
User_Role_Editor::__clone()
S
80 1 3
User_Role_Editor::ure_ajax()
S
77 1 4
URE_View::toolbar()
S
98 1 1
URE_Lib::is_pro()
S
82 1 3
URE_Base_Lib::flush_options()
S
80 1 3
URE_Role_Additional_Options::create_item()
S
67 1 8
URE_Ajax_Processor::get_user_roles()
S
77 1 4
URE_Role_View::__construct()
S
73 1 5
URE_Ajax_Processor::grant_roles()
S
77 1 4
URE_User_Other_Roles::__construct()
S
77 1 4
URE_User_View::__construct()
S
76 1 4
URE_bbPress::get_bbp_editable_roles()
S
77 1 4
URE_View::display_box_start()
S
73 1 7
URE_Lib::init_full_capabilities()
S
73 1 5
User_Role_Editor::add_css_to_users_page()
S
74 1 4
URE_Uninstall::__construct()
S
73 1 5
URE_Uninstall::init_options_list()
S
66 1 9
URE_Tools::show()
S
75 1 4
URE_View::display_box_end()
S
81 1 6
ure_hide_admin_bar()
S
82 1 3
URE_View::output_confirmation_dialog()
S
77 1 7
User_Role_Editor::settings_css_action()
S
74 1 4
URE_Ajax_Processor::get_caps_to_remove()
S
72 1 5
URE_Lib::get_assign_role()
S
77 1 4
URE_Task_Queue::init()
S
79 1 3
URE_Capability::escape()
S
69 1 6
URE_Base_Lib::init_options()
S
76 1 4
URE_Editor::set_notification()
S
81 1 3
URE_Editor::__clone()
S
80 1 3
User_Role_Editor::is_pro()
S
81 1 3
URE_User_Other_Roles::is_user_profile_extention_allowed()
S
74 1 4
URE_Protect_Admin::extract_int()
S
71 1 5
members_get_capabilities()
S
100 1 2
URE_Assign_Role::__construct()
S
77 1 4
URE_Base_Lib::__clone()
S
80 1 3
URE_Task_Queue::reinit()
S
82 1 3
URE_Capabilities_Groups_Manager::add_ure_group()
S
68 1 7
URE_Editor::__construct()
S
80 1 3
URE_Capabilities::convert_cap_to_readable()
S
73 1 5
URE_Editor::get_last_role_id()
S
71 1 6
User_Role_Editor::__wakeup()
S
80 1 3
URE_Role_Additional_Options::__construct()
S
77 1 4
URE_Lib::_get_post_types()
S
69 1 6
URE_Capabilities::__clone()
S
80 1 3
URE_Grant_Roles::__construct()
S
75 1 4
URE_Editor::__wakeup()
S
80 1 3
URE_Capabilities_Groups_Manager::get_built_in_wp_caps()
S
82 1 3
URE_View::__construct()
S
76 1 4
URE_Lib::get_main_blog_id()
S
82 1 3
URE_Role_Additional_Options::init()
S
67 1 7
User_Role_Editor::admin_css_action()
S
71 1 5
URE_Task_Queue::is_empty()
S
79 1 3
URE_Editor::get_wp_built_in_roles()
S
75 1 4
URE_Lib::get_custom_taxonomies()
S
66 1 9
URE_View::output_task_status_div()
S
70 1 7
URE_Lib::is_wp_built_in_role()
S
65 1 10
User_Role_Editor::load_users_page()
S
72 1 5
URE_Lib::get_built_in_wp_caps()
S
73 1 5
URE_Base_Lib::__wakeup()
S
80 1 3
User_Role_Editor::cleanup()
S
91 1 2
URE_Admin_Notice::__construct()
S
72 1 5
URE_Base_Lib::get_current_url()
S
72 1 5
URE_bbPress::is_active()
S
82 1 3
URE_Capabilities::__construct()
S
76 1 4
URE_View::display()
S
98 1 1
URE_Capabilities_Groups_Manager::__construct()
S
74 1 5
URE_Base_Lib::filter_string_polyfill()
S
73 1 4