Code Analysis: HyperDB 1.8

Function Rating Maintainability Complexity Lines of code
hyperdb::db_connect()
D
7
108 312
hyperdb::query()
D
28
32 136
hyperdb::get_caller()
A
48 12 34
hyperdb::has_cap()
A
49 11 29
hyperdb::ex_mysql_connect()
A
48 10 32
hyperdb::set_charset()
A
52 9 24
hyperdb::set_connect_timeout()
A
56 8 19
hyperdb::check_tcp_responsiveness()
S
51 7 28
hyperdb::run_callbacks()
S
56 7 19
hyperdb::get_server_state()
S
56 7 19
hyperdb::add_database()
S
56 6 19
hyperdb::disconnect()
S
58 5 15
hyperdb::__construct()
S
60 5 14
hyperdb::should_mysql_ping()
S
60 5 14
hyperdb::db_version()
S
60 5 13
hyperdb::ex_mysql_error()
S
62 5 12
hyperdb::is_server_marked_read_only()
S
61 5 12
hyperdb::get_table_from_query()
S
55 4 20
hyperdb::ex_mysql_connect_timeout()
S
63 4 12
hyperdb::ex_mysql_errno()
S
66 4 9
hyperdb::ex_mysql_fetch_assoc()
S
64 4 10
hyperdb::ex_mysql_fetch_object()
S
64 4 10
hyperdb::ex_mysql_fetch_row()
S
64 4 10
hyperdb::should_use_mysqli()
S
66 4 9
hyperdb::check_lag()
S
67 3 9
hyperdb::mark_server_read_only()
S
65 3 8
hyperdb::log_and_bail()
S
67 2 7
hyperdb::ex_mysql_free_result()
S
71 2 6
hyperdb::ex_mysql_fetch_field()
S
71 2 6
hyperdb::ex_mysql_set_charset()
S
71 2 6
hyperdb::is_mysql_set_charset_callable()
S
71 2 6
hyperdb::is_mysql_result()
S
71 2 6
hyperdb::_real_escape()
S
68 2 7
hyperdb::ex_mysql_affected_rows()
S
71 2 6
hyperdb::ex_mysql_ping()
S
71 2 6
hyperdb::is_mysql_connection()
S
71 2 6
hyperdb::ex_mysql_select_db()
S
70 2 6
hyperdb::mark_server_as_down()
S
67 2 7
hyperdb::ex_mysql_query()
S
71 2 6
hyperdb::ex_mysql_num_fields()
S
71 2 6
hyperdb::ex_mysql_num_rows()
S
71 2 6
hyperdb::check_database_version()
S
67 2 7
hyperdb::ex_mysql_insert_id()
S
71 2 6
hyperdb::ex_mysql_close()
S
71 2 6
hyperdb::ex_mysql_unbuffered_query()
S
70 2 6
hyperdb::ex_mysql_get_server_info()
S
71 2 6
hyperdb::send_reads_to_masters()
S
81 1 3
hyperdb::flush()
S
71 1 6
hyperdb::get_lag_cache()
S
76 1 4
hyperdb::add_table()
S
80 1 3
hyperdb::supports_collation()
S
79 1 3
hyperdb::add_callback()
S
80 1 3
hyperdb::is_write_query()
S
75 1 4
hyperdb::get_lag()
S
76 1 4