Code Analysis: WP Redis 1.4.6

Function Rating Maintainability Complexity Lines of code
WP_Object_Cache::_call_redis()
C
36 30 70
WP_Object_Cache::get_multiple()
B
41 19 53
wp_redis_get_info()
B
40 16 56
WP_Object_Cache::__construct()
A
48 13 29
WP_Object_Cache::decr()
A
46 11 41
WP_Object_Cache::incr()
A
46 11 41
WP_Object_Cache::get()
A
49 8 32
WP_Object_Cache::build_client_parameters()
A
49 8 31
WP_Object_Cache::set()
A
51 8 27
WP_Object_Cache::_get_internal()
A
56 8 18
WP_Object_Cache::flush_group()
A
56 8 17
WP_Object_Cache::delete_group()
A
56 8 17
WP_Redis_CLI_Command::cli()
S
50 7 28
WP_Object_Cache::delete()
S
54 7 22
WP_Redis_CLI_Command::info()
S
54 7 20
WP_Object_Cache::_unset_internal()
S
59 7 13
wp_cache_supports()
S
62 7 13
WP_Object_Cache::_connect_redis()
S
47 5 39
WP_Redis_CLI_Command::get_relative_path()
S
52 6 24
WP_Redis_CLI_Command::load_wordpress_with_template()
S
50 5 28
WP_Redis_CLI_Command::enable()
S
56 5 18
WP_Object_Cache::_set_internal()
S
61 5 12
WP_Object_Cache::add()
S
61 5 12
WP_Object_Cache::stats()
S
52 4 22
WP_Object_Cache::is_redis_failback_flush_enabled()
S
67 5 8
WP_Object_Cache::_isset_internal()
S
63 5 9
WP_Object_Cache::_exists()
S
60 4 14
WP_Object_Cache::perform_client_connection()
S
60 4 13
WP_Object_Cache::check_client_dependencies()
S
64 4 10
WP_Object_Cache::prepare_client_connection()
S
59 3 15
WP_Object_Cache::_key()
S
62 3 11
WP_Object_Cache::replace()
S
65 3 9
WP_Object_Cache::wp_action_admin_notices_warn_missing_redis()
S
69 3 6
WP_Object_Cache::_format_message_for_pattern()
S
69 3 6
WP_Object_Cache::_should_use_redis_hashes()
S
70 3 6
WP_Object_Cache::exception_message_matches()
S
64 3 10
wp_cache_init()
S
72 2 6
WP_Object_Cache::flush()
S
69 2 7
WP_Object_Cache::add_global_groups()
S
67 2 8
WP_Object_Cache::switch_to_blog()
S
75 2 4
WP_Object_Cache::_exception_handler()
S
68 2 7
wp_cache_get()
S
75 1 4
wp_cache_get_multiple()
S
75 1 4
WP_Object_Cache::add_non_persistent_groups()
S
72 1 5
wp_cache_replace()
S
75 1 4
wp_cache_decr()
S
75 1 4
wp_cache_flush_group()
S
77 1 4
WP_Object_Cache::add_redis_hash_groups()
S
72 1 5
wp_cache_flush()
S
77 1 4
WP_Redis_CLI_Command::debug()
S
64 1 10
wp_cache_close()
S
83 1 3
WP_Object_Cache::__destruct()
S
82 1 3
wp_cache_delete()
S
76 1 4
wp_cache_set()
S
75 1 4
WP_Object_Cache::_should_persist()
S
79 1 3
WP_Object_Cache::reset()
S
79 1 3
wp_cache_delete_group()
S
77 1 4
wp_cache_add_non_persistent_groups()
S
77 1 4
wp_cache_add_redis_hash_groups()
S
77 1 4
wp_cache_incr()
S
75 1 4
WP_Object_Cache::retry_exception_messages()
S
74 1 4
wp_cache_flush_runtime()
S
77 1 4
wp_cache_switch_to_blog()
S
77 1 4
wp_cache_add()
S
75 1 4
wp_cache_reset()
S
73 1 5
wp_cache_add_global_groups()
S
77 1 4