Code Analysis: SharDB 2.7.7

Function Rating Maintainability Complexity Lines of code
SharDB::db_connect()
D
18
73 182
shardb_migrate_site_tables()
C
35 26 74
shardb_migrate()
B
36 21 73
SharDB::__construct()
B
42 19 46
shardb_migrate_global_tables()
A
43 13 44
SharDB::check_tcp_responsiveness()
A
49 9 32
SharDB::tables()
A
52 9 25
shardb_get_ds_part_from_blog_id()
S
54 7 19
SharDB::set_prefix()
S
56 6 18
SharDB::get_ds_part_from_table()
S
56 6 15
SharDB::get_table_from_query()
S
48 4 35
BPDB::init()
S
54 4 22
SharDB::query()
S
56 4 19
SharDB::disconnect()
S
60 4 14
SharDB::is_resource()
S
70 3 6
SharDB::set_blog_id()
S
63 3 10
SharDB::get_partition_from_table()
S
68 3 6
add_shardb_migrate_page()
S
74 3 4
SharDB::_real_escape()
S
71 2 6
add_db_server()
S
64 2 8
BPDB::has_cap()
S
74 2 5
shardb_blog_columns()
S
68 2 7
BPDB::__construct()
S
67 2 7
shardb_blog_field()
S
67 2 7
add_vip_blog()
S
75 1 4
add_db_table()
S
75 1 4
localize_hostnames()
S
80 1 3
SharDB::is_write_query()
S
71 1 5
SharDB::send_reads_to_masters()
S
82 1 3
localize_hostname()
S
79 1 3
BPDB::escape_deep()
S
81 1 3
add_slave()
S
74 1 4