Jetpack_Search D

Total Complexity 249
Dependencies 11
Dependents 3
Total lines 2,001
Lines of code 1,040
Logical lines of code 500
Comment lines 676
Methods 49
Properties 9

Methods 49

Method Rating Maintainability Complexity Lines of code
get_filters()
D
23
48 171
convert_wp_es_to_es_args()
D
20
35 292
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
filter__posts_pre_query()
S
50 5 29
add_aggregations_to_es_query_builder()
S
59 5 15
get_search_result()
S
69 6 6
maybe_add_post_type_as_var()
S
62 6 10
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
and_es_filters()
S
60 4 13
setup()
S
61 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
62 3 12
update_search_results_aggregations()
S
62 3 11
set_filters_from_widgets()
S
66 3 9
get_taxonomy_query_var()
S
68 3 7
get_search_aggregations_results()
S
67 3 8
set_filters()
S
66 3 8
init_hooks()
S
59 2 13
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
get_last_query_failure_info()
S
79 2 3
should_handle_query()
S
78 2 3
_get_caret_boosted_fields()
S
68 2 7
add_post_type_aggregation_to_es_query_builder()
S
64 1 11
get_current_filters()
S
75 1 4
__wakeup()
S
81 1 3
load_php()
S
82 1 3
set_facets()
S
75 1 4
base_load_php()
S
73 1 5
get_search_facet_data()
S
75 1 4
get_search_facets()
S
75 1 4
store_query_failure()
S
75 1 4
store_last_query_info()
S
75 1 4
action__widgets_init()
S
76 1 4
__clone()
S
81 1 3
are_filters_by_widget_disabled()
S
81 1 3
__construct()
S
91 1 2