Jetpack_Search D

Total Complexity 246
Dependencies 11
Dependents 2
Total lines 1,941
Lines of code 1,025
Logical lines of code 491
Comment lines 640
Methods 45
Properties 9

Methods 45

Method Rating Maintainability Complexity Lines of code
get_filters()
D
23
48 171
convert_wp_es_to_es_args()
D
20
35 291
search()
A
39 14 64
do_search()
A
42 14 51
move_search_widgets_to_inactive()
A
51 10 27
get_es_wp_query_terms_for_query()
A
53 10 22
get_active_filter_buckets()
A
57 8 17
get_es_wp_query_post_type_for_query()
S
51 7 28
add_aggregations_to_es_query_builder()
S
56 6 18
filter__posts_pre_query()
S
49 5 30
maybe_add_post_type_as_var()
S
62 6 10
get_search_result()
S
69 6 6
fix_aggregation_ordering()
S
62 5 12
filter__add_date_filter_to_query()
S
52 4 25
add_date_histogram_aggregation_to_es_query_builder()
S
57 4 17
setup()
S
61 4 13
and_es_filters()
S
60 4 13
add_taxonomy_aggregation_to_es_query_builder()
S
54 3 23
print_query_success()
S
60 3 15
track_widget_updates()
S
59 3 15
_apply_boosts_multiplier()
S
60 3 14
instance()
S
61 3 12
update_search_results_aggregations()
S
61 3 11
set_filters()
S
66 3 8
get_taxonomy_query_var()
S
68 3 7
set_filters_from_widgets()
S
66 3 9
get_search_aggregations_results()
S
67 3 8
init_hooks()
S
59 2 13
_get_caret_boosted_fields()
S
68 2 7
should_handle_query()
S
78 2 3
get_last_query_failure_info()
S
79 2 3
get_last_query_info()
S
79 2 3
print_query_failure()
S
65 2 10
has_vip_index()
S
79 2 3
is_search_supported()
S
71 2 6
add_post_type_aggregation_to_es_query_builder()
S
64 1 11
__wakeup()
S
81 1 3
load_php()
S
82 1 3
__clone()
S
81 1 3
base_load_php()
S
80 1 3
store_query_failure()
S
75 1 4
store_last_query_info()
S
75 1 4
are_filters_by_widget_disabled()
S
81 1 3
action__widgets_init()
S
76 1 4
__construct()
S
91 1 2