Code Analysis: Optimization Detective 0.7.0

Function Rating Maintainability Complexity Lines of code
od_optimize_template_output_buffer()
B
40 17 57
OD_HTML_Tag_Processor::next_token()
B
40 15 61
OD_Link_Collection::add_link()
A
44 16 40
OD_URL_Metric::extend_schema_with_optional_properties()
A
43 10 55
od_handle_rest_request()
A
39 7 75
OD_Link_Collection::merge_consecutive_links()
A
45 8 46
OD_URL_Metric_Group_Collection::__construct()
A
45 8 46
OD_URL_Metric::get_json_schema()
A
34 3 120
OD_URL_Metrics_Post_Type::get_url_metrics_from_post()
A
42 7 57
OD_Strict_URL_Metric::set_additional_properties_to_false()
A
52 9 25
OD_URL_Metric_Group::get_lcp_element()
A
47 8 39
OD_URL_Metrics_Post_Type::store_url_metric()
A
42 7 54
od_generate_media_query()
A
56 9 17
OD_URL_Metric_Group::__construct()
A
46 7 45
od_get_current_url()
A
54 8 21
OD_URL_Metric_Group_Collection::get_common_lcp_element()
A
49 7 33
OD_URL_Metric_Group_Collection::get_groups_by_lcp_element()
S
57 6 17
od_maybe_add_template_output_buffer_filter()
S
58 6 16
OD_HTML_Tag_Processor::get_updated_html()
S
51 5 29
OD_URL_Metric_Group_Collection::get_group_for_viewport_width()
S
55 5 22
OD_URL_Metric_Group_Collection::get_all_elements_positioned_in_any_initial_viewport()
S
55 5 20
OD_URL_Metric_Group::is_complete()
S
56 5 19
OD_URL_Metric_Group_Collection::get_xpath_elements_map()
S
57 5 18
OD_Link_Collection::get_response_header()
S
55 5 17
od_register_endpoint()
S
45 3 46
od_can_optimize_response()
S
63 6 10
od_is_response_html_content_type()
S
58 5 14
OD_URL_Metrics_Post_Type::schedule_garbage_collection()
S
60 5 13
OD_URL_Metric::prepare_data()
S
51 4 27
od_get_breakpoint_max_widths()
S
48 3 38
OD_URL_Metric_Group::add_url_metric()
S
54 4 22
OD_URL_Metric_Group_Collection::get_all_element_max_intersection_ratios()
S
57 4 18
OD_URL_Metrics_Post_Type::delete_stale_posts()
S
56 4 18
OD_URL_Metric_Group_Collection::is_any_group_populated()
S
59 4 15
OD_URL_Metric_Group_Collection::is_every_group_populated()
S
59 4 15
OD_URL_Metric_Group_Collection::is_every_group_complete()
S
59 4 15
OD_HTML_Tag_Processor::expects_closer()
S
61 4 13
od_get_detection_script()
S
45 2 42
OD_HTML_Tag_Processor::set_attribute()
S
61 4 12
OD_HTML_Tag_Processor::is_foreign_element()
S
67 4 8
od_get_normalized_query_vars()
S
61 3 13
OD_Link_Collection::get_html()
S
61 3 12
OD_Storage_Lock::is_locked()
S
62 3 11
OD_URL_Metric_Group_Collection::add_url_metric()
S
63 3 11
OD_Tag_Visitor_Context::__get()
S
55 2 23
OD_URL_Metrics_Post_Type::get_post()
S
55 2 21
od_get_url_metric_freshness_ttl()
S
58 2 17
od_get_url_metrics_breakpoint_sample_size()
S
58 2 17
OD_HTML_Tag_Processor::next_open_tag()
S
68 3 8
OD_HTML_Tag_Processor::remove_attribute()
S
66 3 8
OD_HTML_Tag_Processor::get_xpath()
S
64 3 9
od_buffer_output()
S
60 2 14
OD_URL_Metric::get_elements()
S
63 2 11
OD_HTML_Tag_Processor::release_bookmark()
S
62 2 11
OD_URL_Metric_Group_Collection::jsonSerialize()
S
55 1 22
OD_URL_Metrics_Post_Type::delete_all_posts()
S
56 1 22
OD_URL_Metrics_Post_Type::register_post_type()
S
57 1 18
OD_HTML_Tag_Processor::seek()
S
67 2 8
OD_Storage_Lock::set_lock()
S
65 2 9
OD_Tag_Visitor_Registry::unregister()
S
69 2 7
OD_HTML_Tag_Processor::set_bookmark()
S
64 2 10
OD_HTML_Tag_Processor::get_breadcrumbs()
S
72 2 5
OD_URL_Metric_Group_Collection::create_groups()
S
63 2 10
OD_HTML_Tag_Processor::next_tag()
S
69 2 6
OD_URL_Metric_Group::is_viewport_width_in_range()
S
72 2 6
OD_URL_Metric::__construct()
S
70 2 6
OD_URL_Metric::set_group()
S
70 2 6
OD_URL_Metric::get()
S
70 2 6
OD_Tag_Visitor_Registry::get_registered()
S
71 2 6
OD_URL_Metric_Group::jsonSerialize()
S
63 1 11
OD_Element::get_url_metric()
S
82 1 3
OD_URL_Metric_Group_Collection::get_element_max_intersection_ratio()
S
79 1 3
OD_URL_Metric_Group_Collection::is_element_positioned_in_any_initial_viewport()
S
79 1 3
OD_HTML_Tag_Processor::append_head_html()
S
80 1 3
OD_URL_Metric_Group_Collection::get_last_group()
S
79 1 3
OD_Tag_Visitor_Registry::count()
S
80 1 3
OD_URL_Metric_Group::count()
S
80 1 3
OD_Storage_Lock::get_transient_key()
S
74 1 4
od_render_generator_meta_tag()
S
79 1 3
OD_URL_Metric_Group_Collection::get_first_group()
S
80 1 3
OD_URL_Metric_Group_Collection::getIterator()
S
80 1 3
OD_URL_Metric_Group::get_maximum_viewport_width()
S
82 1 3
OD_Link_Collection::count()
S
66 1 10
OD_Strict_URL_Metric::get_json_schema()
S
79 1 3
OD_URL_Metric::jsonSerialize()
S
82 1 3
OD_URL_Metrics_Post_Type::add_hooks()
S
72 1 5
od_verify_url_metrics_storage_nonce()
S
78 1 3
OD_Element::offsetGet()
S
79 1 3
OD_Element::__construct()
S
77 1 4
OD_Element::get()
S
79 1 3
OD_Element::offsetUnset()
S
80 1 3
od_initialize_extensions()
S
80 1 3
OD_HTML_Tag_Processor::warn()
S
73 1 6
OD_Element::get_bounding_client_rect()
S
80 1 3
OD_URL_Metric::get_uuid()
S
80 1 3
od_get_url_metrics_storage_nonce()
S
79 1 3
OD_URL_Metric_Group::get_minimum_viewport_width()
S
82 1 3
OD_Element::offsetExists()
S
79 1 3
OD_URL_Metric_Group_Collection::clear_cache()
S
81 1 3
OD_Link_Collection::get_prepared_links()
S
66 1 10
OD_Tag_Visitor_Registry::is_registered()
S
79 1 3
OD_HTML_Tag_Processor::get_current_depth()
S
80 1 3
OD_Tag_Visitor_Registry::getIterator()
S
80 1 3
OD_HTML_Tag_Processor::set_meta_attribute()
S
78 1 3
OD_URL_Metric::get_url()
S
80 1 3
OD_Element::offsetSet()
S
80 1 3
OD_URL_Metric::get_timestamp()
S
80 1 3
OD_Element::get_xpath()
S
80 1 3
od_get_maximum_viewport_aspect_ratio()
S
79 1 3
od_get_minimum_viewport_aspect_ratio()
S
79 1 3
OD_URL_Metric_Store_Request_Context::__construct()
S
69 1 7
OD_Element::jsonSerialize()
S
82 1 3
OD_HTML_Tag_Processor::get_cursor_move_count()
S
82 1 3
OD_URL_Metric::get_viewport_width()
S
80 1 3
OD_Element::get_intersection_ratio()
S
80 1 3
OD_URL_Metric::get_viewport()
S
80 1 3
OD_Tag_Visitor_Registry::register()
S
80 1 3
OD_URL_Metric::get_group()
S
82 1 3
OD_URL_Metric_Group_Collection::count()
S
80 1 3
OD_URL_Metric_Group_Collection::get_flattened_url_metrics()
S
69 1 8
OD_Element::is_lcp_candidate()
S
80 1 3
od_get_url_metrics_slug()
S
80 1 3
OD_Element::is_lcp()
S
80 1 3
OD_HTML_Tag_Processor::append_body_html()
S
80 1 3
OD_Storage_Lock::get_ttl()
S
74 1 4
OD_URL_Metric_Group::getIterator()
S
80 1 3
OD_Tag_Visitor_Context::__construct()
S
74 1 5
OD_Element::get_intersection_rect()
S
80 1 3
OD_Element::get_url_metric_group()
S
81 1 3