Metasync_Telemetry_Manager B

Total Complexity 99
Dependencies 3
Dependents 3
Total lines 633
Lines of code 281
Logical lines of code 163
Comment lines 250
Methods 30
Properties 10

Methods 30

Method Rating Maintainability Complexity Lines of code
is_telemetry_enabled()
A
60 9 13
send_message()
A
55 8 20
analyze_db_queries()
S
50 7 28
send_exception()
S
57 6 17
parse_memory_limit()
S
57 6 17
test_sentry_connection()
S
61 5 12
generate_error_fingerprint()
S
61 5 11
setup_hooks()
S
58 4 15
send_activation()
S
67 4 7
send_deactivation()
S
67 4 7
send_performance()
S
63 4 10
init_telemetry()
S
61 3 13
get_telemetry_stats()
S
61 3 12
on_plugin_init()
S
65 3 8
end_page_timer()
S
64 3 9
get_instance()
S
71 2 6
on_wp_loaded()
S
65 2 8
on_shutdown()
S
64 2 9
start_page_timer()
S
75 2 4
on_log_preparation()
S
70 2 6
on_log_upload()
S
70 2 6
test_telemetry_connection()
S
70 2 6
get_cached_memory_limit()
S
70 2 6
is_memory_usage_safe()
S
67 2 8
cleanup_old_errors()
S
68 2 7
__construct()
S
76 1 4
flush_telemetry_queue()
S
91 1 2
should_check_memory()
S
78 1 3
is_error_already_sent()
S
79 1 3
mark_error_as_sent()
S
76 1 4