Code Analysis: Redis Object Cache 2.5.2

Function Rating Maintainability Complexity Lines of code
WP_Object_Cache::connect_using_credis()
C
31 29 99
WP_Object_Cache::connect_using_predis()
C
34 29 79
Predis::connect()
C
34 25 89
WP_Object_Cache::is_serialized()
B
41 24 53
Plugin::maybe_print_comment()
B
42 24 47
WP_Object_Cache::get_multiple()
B
35 21 90
WP_Object_Cache::__construct()
B
39 22 60
Plugin::do_admin_actions()
B
34 18 107
WP_Object_Cache::connect_using_phpredis()
B
37 19 71
WP_Object_Cache::flush()
B
42 17 53
WP_Object_Cache::add_or_replace()
B
40 15 61
Plugin::test_filesystem_writing()
A
43 15 46
WP_Object_Cache::connect_using_relay()
A
41 14 54
WP_Object_Cache::get()
A
44 12 44
Plugin::pro_notice()
A
45 12 42
Predis::flush()
A
47 12 40
WP_Object_Cache::add_multiple_at_once()
A
42 11 52
WP_Object_Cache::flush_group()
A
46 12 35
WP_Object_Cache::set_multiple_at_once()
A
42 11 48
Plugin::render_admin_bar()
A
38 9 76
wp_cache_init()
A
56 11 19
Plugin::wc_pro_notice()
A
48 10 33
Plugin::show_admin_notices()
A
49 10 31
WP_Object_Cache::show_error_and_die()
A
45 9 40
WP_Object_Cache::maybe_serialize()
A
56 10 18
Plugin::incompatible_content_type()
A
50 9 30
WP_Object_Cache::fetch_info()
A
52 9 23
WP_Object_Cache::delete_multiple_at_once()
A
49 8 29
Plugin::enqueue_admin_scripts()
A
44 7 44
Plugin::get_status()
A
54 8 21
WP_Object_Cache::connect_using_hhvm()
A
48 7 33
WP_Object_Cache::set()
A
48 7 33
Plugin::show_admin_page()
A
49 7 32
WP_Object_Cache::maybe_unserialize()
S
59 8 13
WP_Object_Cache::add_multiple()
S
56 7 17
Metrics::get()
S
50 6 29
wp_cache_supports()
S
62 7 13
WP_Object_Cache::execute_lua_script_on_cluster()
S
50 6 28
Plugin::acceleratewp_install()
S
60 7 12
Plugin::enqueue_redis_metrics()
S
51 6 27
WP_Object_Cache::delete()
S
51 6 26
WP_Object_Cache::execute_lua_script()
S
51 6 26
WP_Object_Cache::build_parameters()
S
48 5 36
Plugin::initialize_filesystem()
S
57 6 20
QM_Collector::process()
S
47 5 34
Plugin::get_redis_status()
S
59 6 16
Rhubarb\RedisCache\CLI\Commands::enable()
S
51 5 28
WP_Object_Cache::lua_flush_extended_closure()
S
47 4 42
WP_Object_Cache::lua_flush_closure()
S
52 5 26
Autoloader::load_mapped_file()
S
54 5 21
WP_Object_Cache::validate_expiration()
S
63 6 10
Plugin::on_deactivation()
S
58 5 15
WP_Object_Cache::set_multiple()
S
59 5 14
WP_Object_Cache::delete_multiple()
S
59 5 14
WP_Object_Cache::parse_redis_response()
S
62 5 12
WP_Object_Cache::increment()
S
52 4 24
WP_Object_Cache::decrement()
S
52 4 24
Rhubarb\RedisCache\CLI\Commands::disable()
S
56 4 19
QM_Collector::process_defaults()
S
49 3 32
QM_Output::admin_menu()
S
56 4 17
Rhubarb\RedisCache\UI\Tab::__construct()
S
57 4 17
Plugin::get_redis_version()
S
63 5 10
Plugin::add_actions_and_filters()
S
49 3 27
WP_Object_Cache::info()
S
50 3 27
WP_Object_Cache::determine_client()
S
62 4 11
WP_Object_Cache::cache_group_types()
S
64 4 11
Plugin::admin_bar_script()
S
49 1 50
QM_Output::output()
S
56 3 20
WP_Object_Cache::stats()
S
57 3 20
Rhubarb\RedisCache\CLI\Commands::update_dropin()
S
56 3 19
Plugin::setup_dashboard_widget()
S
58 3 17
Metrics::count()
S
59 3 16
Metrics::discard()
S
59 3 15
WP_Object_Cache::fast_build_key()
S
64 4 9
Plugin::enqueue_admin_styles()
S
59 3 15
Metrics::is_active()
S
68 4 7
Plugin::maybe_update_dropin()
S
67 4 8
Plugin::update_dropin()
S
59 3 15
Plugin::add_plugin_row_meta()
S
60 3 14
Autoloader::load_class()
S
60 3 13
Autoloader::add_namespace()
S
61 3 12
Rhubarb\RedisCache\UI\Tab::nav_classes()
S
62 3 12
WP_Object_Cache::handle_exception()
S
61 3 12
Plugin::object_cache_dropin_outdated()
S
62 3 11
Plugin::link_to_ocp()
S
65 3 8
Plugin::get_diagnostics()
S
68 3 7
Plugin::register_shutdown_hooks()
S
71 3 5
WP_Object_Cache::switch_to_blog()
S
68 3 7
Plugin::init()
S
72 3 5
Plugin::register_qm_output()
S
64 3 10
WP_Object_Cache::get_from_internal_cache()
S
66 3 9
Plugin::get_redis_client_name()
S
64 3 10
Plugin::ajax_flush_cache()
S
64 3 10
Plugin::maybe_redirect()
S
65 3 10
Plugin::validate_object_cache_dropin()
S
61 2 13
QM_Output::panel_menu()
S
60 2 13
WP_Object_Cache::build_cluster_connection_array()
S
62 2 12
Predis::build_cluster_connection_array()
S
62 2 12
Plugin::__construct()
S
62 2 12
Metrics::save()
S
62 2 12
Plugin::ajax_dismiss_notice()
S
63 2 11
WP_Object_Cache::build_key()
S
67 2 8
Metrics::is_enabled()
S
75 2 4
Plugin::litespeed_disable_objectcache()
S
72 2 5
WP_Object_Cache::add_to_internal_cache()
S
71 2 6
Metrics::max_time()
S
71 2 6
Plugin::add_admin_menu_page()
S
64 2 10
Rhubarb\RedisCache\UI\Tab::custom()
S
71 2 6
Plugin::manage_redis_capability()
S
79 2 3
WP_Object_Cache::get_flush_closure()
S
70 2 7
WP_Object_Cache::is_group_of_type()
S
75 2 4
Plugin::get_redis_prefix()
S
79 2 3
Metrics::init()
S
68 2 7
Plugin::instance()
S
71 2 6
Rhubarb\RedisCache\CLI\Commands::flush_redis()
S
68 2 8
Plugin::get_redis_maxttl()
S
79 2 3
WP_Object_Cache::sanitize_key_part()
S
78 2 3
Plugin::get_text()
S
70 2 6
Plugin::check_redis_connection()
S
66 2 9
Rhubarb\RedisCache\UI\Tab::classes()
S
64 2 10
Autoloader::require_file()
S
70 2 7
Plugin::action_link()
S
65 2 9
Metrics::record()
S
67 2 8
Plugin::is_file_mod_allowed()
S
69 2 7
WP_Object_Cache::add_global_groups()
S
65 2 9
WP_Object_Cache::__get()
S
78 2 3
Plugin::admin_bar_style()
S
67 1 14
WP_Object_Cache::glob_quote()
S
60 1 13
Metrics::collect()
S
60 1 12
WP_Object_Cache::redis_instance()
S
82 1 3
WP_Object_Cache::is_predis()
S
79 1 3
wp_cache_add()
S
75 1 4
Plugin::register_qm_collector()
S
76 1 4
wp_cache_get()
S
75 1 4
wp_cache_replace()
S
75 1 4
WP_Object_Cache::incr()
S
79 1 3
wp_cache_incr()
S
75 1 4
wp_cache_decr()
S
75 1 4
wp_cache_set()
S
75 1 4
QM_Collector::name()
S
79 1 3
Rhubarb\RedisCache\UI\Tab::is_disabled()
S
82 1 3
wp_cache_switch_to_blog()
S
77 1 4
WP_Object_Cache::decr()
S
79 1 3
Plugin::current_user_can_manage_redis()
S
80 1 3
Plugin::add_plugin_actions_links()
S
67 1 8
WP_Object_Cache::is_unflushable_group()
S
79 1 3
wp_cache_delete_multiple()
S
76 1 4
WP_Object_Cache::add_non_persistent_groups()
S
72 1 5
Rhubarb\RedisCache\UI\Tab::nav_id()
S
74 1 4
wp_cache_close()
S
83 1 3
WP_Object_Cache::add_unflushable_groups()
S
73 1 5
WP_Object_Cache::add()
S
78 1 3
wp_cache_set_multiple()
S
75 1 4
Plugin::on_activation()
S
79 1 3
wp_cache_get_multiple()
S
75 1 4
Rhubarb\RedisCache\UI\Tab::id()
S
74 1 4
wp_cache_flush_group()
S
77 1 4
Rhubarb\RedisCache\UI\Tab::label()
S
82 1 3
WP_Object_Cache::redis_version()
S
82 1 3
wp_cache_flush_runtime()
S
77 1 4
Rhubarb\RedisCache\CLI\Commands::status()
S
76 1 4
wp_cache_delete()
S
75 1 4
WP_Object_Cache::replace()
S
78 1 3
UI::register_tab()
S
77 1 3
Rhubarb\RedisCache\UI\Tab::file()
S
82 1 3
Predis::flushOrFail()
S
80 1 3
Rhubarb\RedisCache\UI\Tab::is_default()
S
82 1 3
WP_Object_Cache::is_ignored_group()
S
79 1 3
Plugin::show_dashboard_widget()
S
80 1 3
QM_Output::name()
S
79 1 3
redis_object_cache()
S
80 1 3
QM_Collector::get_storage()
S
81 1 3
wp_cache_add_multiple()
S
75 1 4
Plugin::object_cache_dropin_exists()
S
79 1 3
WP_Object_Cache::is_global_group()
S
79 1 3
WP_Object_Cache::flush_runtime()
S
77 1 4
WP_Object_Cache::redis_status()
S
81 1 3
Autoloader::register()
S
79 1 3
Plugin::obscure_url_secrets()
S
70 1 7
Rhubarb\RedisCache\UI\Tab::slug()
S
82 1 3
wp_cache_add_global_groups()
S
77 1 4
UI::get_tabs()
S
80 1 3
Rhubarb\RedisCache\UI\Tab::display()
S
76 1 4
wp_cache_add_non_persistent_groups()
S
77 1 4
QM_Output::__construct()
S
71 1 5
wp_cache_flush()
S
77 1 4
Rhubarb\RedisCache\UI\Tab::disabled_notice()
S
72 1 6