Code Analysis: HyperDB 1.7

Function Rating Maintainability Complexity Lines of code
hyperdb::db_connect()
D
10
101 262
hyperdb::query()
C
31 24 114
hyperdb::get_caller()
A
49 12 29
hyperdb::ex_mysql_connect()
A
49 10 30
hyperdb::set_charset()
A
54 9 19
hyperdb::set_connect_timeout()
A
58 8 16
hyperdb::check_tcp_responsiveness()
S
52 7 25
hyperdb::run_callbacks()
S
57 7 16
hyperdb::init_charset()
S
60 7 13
hyperdb::add_database()
S
62 6 11
hyperdb::get_server_state()
S
61 5 13
hyperdb::should_mysql_ping()
S
60 5 13
hyperdb::has_cap()
S
61 5 12
hyperdb::db_version()
S
61 5 11
hyperdb::get_table_from_query()
S
56 4 17
hyperdb::ex_mysql_error()
S
65 5 9
hyperdb::disconnect()
S
63 5 10
hyperdb::ex_mysql_errno()
S
68 4 7
hyperdb::ex_mysql_fetch_assoc()
S
66 4 8
hyperdb::ex_mysql_fetch_object()
S
66 4 8
hyperdb::ex_mysql_fetch_row()
S
66 4 8
hyperdb::ex_mysql_connect_timeout()
S
65 4 10
hyperdb::__construct()
S
66 4 8
hyperdb::should_use_mysqli()
S
69 4 7
hyperdb::check_lag()
S
70 3 7
hyperdb::ex_mysql_select_db()
S
72 2 5
hyperdb::ex_mysql_get_server_info()
S
73 2 5
hyperdb::ex_mysql_fetch_field()
S
73 2 5
hyperdb::is_mysql_result()
S
73 2 5
hyperdb::ex_mysql_ping()
S
73 2 5
hyperdb::check_database_version()
S
68 2 6
hyperdb::ex_mysql_unbuffered_query()
S
72 2 5
hyperdb::ex_mysql_query()
S
73 2 5
hyperdb::is_mysql_set_charset_callable()
S
73 2 5
hyperdb::is_mysql_connection()
S
73 2 5
hyperdb::mark_server_as_down()
S
72 2 5
hyperdb::ex_mysql_free_result()
S
73 2 5
hyperdb::ex_mysql_affected_rows()
S
73 2 5
hyperdb::ex_mysql_num_rows()
S
73 2 5
hyperdb::_real_escape()
S
68 2 7
hyperdb::ex_mysql_close()
S
73 2 5
hyperdb::ex_mysql_set_charset()
S
73 2 5
hyperdb::ex_mysql_insert_id()
S
73 2 5
hyperdb::ex_mysql_num_fields()
S
73 2 5
hyperdb::log_and_bail()
S
69 2 6
hyperdb::add_callback()
S
80 1 3
hyperdb::supports_collation()
S
80 1 3
hyperdb::get_lag()
S
76 1 4
hyperdb::get_lag_cache()
S
76 1 4
hyperdb::send_reads_to_masters()
S
82 1 3
hyperdb::add_table()
S
80 1 3
hyperdb::flush()
S
71 1 6
hyperdb::hyperdb()
S
81 1 3
hyperdb::is_write_query()
S
75 1 4