SimpleHistory D

Total Complexity 326
Dependencies 2
Dependents 11
Total lines 3,228
Lines of code 1,844
Logical lines of code 827
Comment lines 937
Methods 83
Properties 12

Methods 83

Method Rating Maintainability Complexity Lines of code
output_quick_stats()
C
32 26 115
getLogRowHTMLOutput()
C
27
18 180
load_loggers()
B
33 17 105
get_avatar()
B
38 19 65
getLogLevelTranslated()
B
43 17 56
check_for_upgrade()
A
34 11 116
api()
A
43 13 46
is_on_our_own_pages()
A
54 14 19
add_admin_bar_network_menu_item()
A
45 10 40
settings_field_number_of_items()
A
57 11 17
settings_field_number_of_items_dashboard()
A
57 11 17
add_js_templates()
A
40 4 106
enqueue_admin_scripts()
A
40 6 66
getLoggersThatUserCanRead()
A
47 7 39
settings_page_output()
A
45 6 48
add_settings()
A
42 5 62
purge_db()
S
44 5 48
load_dropins()
S
45 5 45
add_admin_bar_menu_item()
S
50 5 29
addWelcomeLogMessage()
S
46 3 46
getLogRowPlainTextOutput()
S
60 5 13
add_admin_pages()
S
52 4 27
filter_gettext_storeLatestTranslations()
S
56 4 18
add_dashboard_widget()
S
59 4 15
settings_field_where_to_show()
S
54 3 28
plugin_action_links()
S
60 4 13
getInstantiatedLoggerBySlug()
S
63 4 11
add_default_settings_tabs()
S
53 3 24
getLogRowHeaderOutput()
S
63 4 10
getLogRowSenderImageOutput()
S
63 4 10
getLogRowDetailsOutput()
S
63 4 10
get_num_events_per_day_last_n_days()
S
52 2 28
init()
S
50 2 28
filter_gettext_with_context()
S
63 3 11
filter_gettext()
S
63 3 11
get_num_events_last_n_days()
S
54 2 22
settings_field_clear_log()
S
55 2 20
get_unique_events_for_days()
S
55 2 20
setup_cron()
S
64 3 10
get_cache_incrementor()
S
65 3 9
history_page_output()
S
54 1 27
clear_log()
S
56 1 19
onAdminHead()
S
74 2 5
get_instance()
S
71 2 6
onAdminFooter()
S
74 2 5
maybe_purge_db()
S
71 2 6
json_encode()
S
72 2 5
admin_notice_logger_slug_to_long()
S
65 1 14
add_admin_actions()
S
60 1 13
settings_output_general()
S
80 1 3
on_filter_simple_history_log_info()
S
79 1 3
load_plugin_textdomain()
S
68 1 6
ends_with()
S
78 1 3
on_filter_simple_history_log_debug()
S
79 1 3
getInstantiatedLoggers()
S
82 1 3
getInstantiatedDropins()
S
82 1 3
on_filter_simple_history_log_notice()
S
79 1 3
get_view_history_capability()
S
71 1 6
on_filter_simple_history_log_warning()
S
79 1 3
on_filter_simple_history_log_error()
S
79 1 3
on_filter_simple_history_log_critical()
S
79 1 3
on_filter_simple_history_log_alert()
S
79 1 3
on_filter_simple_history_log_emergency()
S
79 1 3
on_filter_simple_history_log()
S
79 1 3
setup_variables()
S
64 1 10
get_view_settings_capability()
S
71 1 6
settings_output_styles_example()
S
80 1 3
does_database_have_data()
S
66 1 8
settings_section_output()
S
91 1 2
settings_output_log()
S
80 1 3
getSettingsTabs()
S
82 1 3
registerSettingsTab()
S
80 1 3
setting_show_on_dashboard()
S
72 1 5
setting_show_as_page()
S
72 1 5
filter_option_page_capability()
S
82 1 3
user_can_clear_log()
S
75 1 4
dashboard_widget_output()
S
65 1 10
get_pager_size_dashboard()
S
72 1 5
get_clear_history_interval()
S
70 1 6
get_pager_size()
S
72 1 5
register_dropin()
S
80 1 3
register_logger()
S
80 1 3
__construct()
S
82 1 3