Code Analysis: Redis Object Cache 2.3.0

Function Rating Maintainability Complexity Lines of code
WP_Object_Cache::connect_using_credis()
C
31 29 99
WP_Object_Cache::connect_using_predis()
C
36 26 70
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 58
Plugin::do_admin_actions()
B
34 16 101
WP_Object_Cache::connect_using_phpredis()
B
38 18 68
WP_Object_Cache::flush()
B
40 18 63
WP_Object_Cache::add_or_replace()
B
40 15 61
WP_Object_Cache::flush_group()
A
43 14 47
WP_Object_Cache::connect_using_relay()
A
42 13 51
WP_Object_Cache::get()
A
44 12 44
Plugin::pro_notice()
A
45 12 42
WP_Object_Cache::add_multiple_at_once()
A
42 11 51
WP_Object_Cache::set_multiple_at_once()
A
43 11 47
Plugin::render_admin_bar()
A
38 8 81
wp_cache_init()
A
56 11 19
Plugin::wc_pro_notice()
A
48 10 33
Plugin::test_filesystem_writing()
A
48 10 33
Plugin::show_admin_notices()
A
49 10 31
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 28
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
Plugin::get_status()
S
56 7 18
WP_Object_Cache::add_multiple()
S
56 7 17
Metrics::get()
S
50 6 29
wp_cache_supports()
S
62 7 13
Plugin::enqueue_admin_scripts()
S
45 5 43
Plugin::enqueue_redis_metrics()
S
51 6 27
WP_Object_Cache::delete()
S
51 6 26
Plugin::initialize_filesystem()
S
57 6 20
QM_Collector::process()
S
47 5 34
WP_Object_Cache::build_parameters()
S
49 5 33
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
Plugin::get_redis_status()
S
61 5 13
WP_Object_Cache::parse_redis_response()
S
62 5 12
Rhubarb\RedisCache\CLI\Commands::enable()
S
53 4 24
WP_Object_Cache::increment()
S
52 4 24
WP_Object_Cache::decrement()
S
52 4 24
Rhubarb\RedisCache\CLI\Commands::disable()
S
56 4 18
Rhubarb\RedisCache\UI\Tab::__construct()
S
57 4 17
QM_Collector::process_defaults()
S
49 3 32
QM_Output::admin_menu()
S
56 4 17
Plugin::get_redis_version()
S
63 5 10
WP_Object_Cache::info()
S
50 3 27
WP_Object_Cache::cache_group_types()
S
64 4 11
WP_Object_Cache::determine_client()
S
62 4 11
Plugin::add_actions_and_filters()
S
51 3 23
QM_Output::output()
S
56 3 20
WP_Object_Cache::stats()
S
57 3 20
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
Plugin::maybe_update_dropin()
S
67 4 8
Plugin::update_dropin()
S
59 3 15
Metrics::is_active()
S
68 4 7
Autoloader::load_class()
S
60 3 13
Rhubarb\RedisCache\UI\Tab::nav_classes()
S
62 3 12
Autoloader::add_namespace()
S
61 3 12
WP_Object_Cache::handle_exception()
S
61 3 12
Plugin::object_cache_dropin_outdated()
S
62 3 11
Plugin::maybe_redirect()
S
65 3 10
Plugin::get_redis_client_name()
S
64 3 10
Plugin::get_diagnostics()
S
68 3 7
Rhubarb\RedisCache\CLI\Commands::update_dropin()
S
59 2 15
Plugin::init()
S
69 3 6
Plugin::register_qm_output()
S
64 3 10
WP_Object_Cache::get_from_internal_cache()
S
66 3 9
WP_Object_Cache::switch_to_blog()
S
68 3 7
Plugin::register_shutdown_hooks()
S
71 3 5
Plugin::validate_object_cache_dropin()
S
61 2 13
QM_Output::panel_menu()
S
60 2 13
Metrics::save()
S
62 2 12
WP_Object_Cache::build_cluster_connection_array()
S
62 2 12
Plugin::__construct()
S
62 2 12
Plugin::dismiss_notice()
S
63 2 11
Plugin::add_plugin_row_meta()
S
63 2 11
Plugin::action_link()
S
65 2 9
WP_Object_Cache::add_to_internal_cache()
S
71 2 6
Plugin::get_redis_prefix()
S
79 2 3
Plugin::instance()
S
71 2 6
Autoloader::require_file()
S
70 2 7
Plugin::manage_redis_capability()
S
79 2 3
WP_Object_Cache::get_flush_closure()
S
70 2 7
Metrics::max_time()
S
71 2 6
Metrics::record()
S
67 2 8
Plugin::get_redis_maxttl()
S
79 2 3
WP_Object_Cache::is_group_of_type()
S
75 2 4
Metrics::is_enabled()
S
75 2 4
WP_Object_Cache::build_key()
S
67 2 8
Rhubarb\RedisCache\UI\Tab::classes()
S
64 2 10
Rhubarb\RedisCache\UI\Tab::custom()
S
71 2 6
Plugin::add_admin_menu_page()
S
64 2 10
WP_Object_Cache::add_global_groups()
S
65 2 9
Metrics::init()
S
68 2 7
WP_Object_Cache::__get()
S
78 2 3
WP_Object_Cache::glob_quote()
S
60 1 13
Metrics::collect()
S
60 1 12
QM_Collector::name()
S
79 1 3
Plugin::current_user_can_manage_redis()
S
80 1 3
WP_Object_Cache::replace()
S
78 1 3
Rhubarb\RedisCache\UI\Tab::nav_id()
S
74 1 4
wp_cache_get_multiple()
S
75 1 4
wp_cache_replace()
S
75 1 4
wp_cache_get()
S
75 1 4
wp_cache_decr()
S
75 1 4
wp_cache_add_global_groups()
S
77 1 4
WP_Object_Cache::redis_version()
S
82 1 3
Autoloader::register()
S
79 1 3
redis_object_cache()
S
80 1 3
Rhubarb\RedisCache\UI\Tab::display()
S
76 1 4
Rhubarb\RedisCache\UI\Tab::label()
S
82 1 3
WP_Object_Cache::sanitize_key_part()
S
79 1 3
QM_Output::name()
S
79 1 3
UI::get_tabs()
S
80 1 3
wp_cache_delete()
S
75 1 4
Plugin::on_activation()
S
79 1 3
wp_cache_set_multiple()
S
75 1 4
WP_Object_Cache::add()
S
78 1 3
Rhubarb\RedisCache\UI\Tab::slug()
S
82 1 3
Rhubarb\RedisCache\CLI\Commands::status()
S
76 1 4
wp_cache_flush()
S
77 1 4
WP_Object_Cache::decr()
S
79 1 3
WP_Object_Cache::is_ignored_group()
S
79 1 3
WP_Object_Cache::add_unflushable_groups()
S
73 1 5
wp_cache_incr()
S
75 1 4
wp_cache_switch_to_blog()
S
77 1 4
Rhubarb\RedisCache\UI\Tab::is_default()
S
82 1 3
wp_cache_flush_group()
S
77 1 4
Rhubarb\RedisCache\UI\Tab::file()
S
82 1 3
WP_Object_Cache::is_predis()
S
79 1 3
QM_Output::__construct()
S
71 1 5
wp_cache_close()
S
83 1 3
Rhubarb\RedisCache\UI\Tab::id()
S
74 1 4
UI::register_tab()
S
77 1 3
Plugin::show_dashboard_widget()
S
80 1 3
wp_cache_set()
S
75 1 4
WP_Object_Cache::is_global_group()
S
79 1 3
WP_Object_Cache::redis_status()
S
81 1 3
WP_Object_Cache::add_non_persistent_groups()
S
72 1 5
wp_cache_delete_multiple()
S
76 1 4
Plugin::object_cache_dropin_exists()
S
79 1 3
Plugin::register_qm_collector()
S
76 1 4
wp_cache_add_non_persistent_groups()
S
77 1 4
wp_cache_add_multiple()
S
75 1 4
WP_Object_Cache::is_unflushable_group()
S
79 1 3
Rhubarb\RedisCache\UI\Tab::is_disabled()
S
82 1 3
WP_Object_Cache::flush_runtime()
S
77 1 4
WP_Object_Cache::incr()
S
79 1 3
wp_cache_flush_runtime()
S
77 1 4
QM_Collector::get_storage()
S
81 1 3
Rhubarb\RedisCache\UI\Tab::disabled_notice()
S
72 1 6
Plugin::add_plugin_actions_links()
S
67 1 8
WP_Object_Cache::redis_instance()
S
82 1 3
wp_cache_add()
S
75 1 4