PegasaasScanner D

Total Complexity 951
Dependencies 3
Dependents 2
Total lines 4,658
Lines of code 3,137
Logical lines of code 2,363
Comment lines 412
Methods 60
Properties 1

Methods 60

Method Rating Maintainability Complexity Lines of code
get_scanned_objects()
D
2
130 379
submit_scan_request()
D
7
112 291
get_site_performance_metrics()
D
18
58 214
get_rule_description()
D
22
56 173
get_site_score()
D
25
51 138
submit_benchmark_requests()
D
22
46 184
get_lazy_loadable_scripts()
D
26
39 145
get_scanned_object_post_data()
D
26
40 126
get_rule_name()
D
35 35 72
get_site_benchmark_score()
D
32 33 93
get_page_speed_opportunities()
D
35 33 72
pegasaas_fetch_pagespeed_benchmark_last_scan()
B
36 22 80
pegasaas_fetch_pagespeed_last_scan()
B
36 22 80
process_pagespeed_score_request()
B
34 19 90
get_page_benchmark_speed_opportunities()
B
43 19 40
pegasaas_request_image_data()
B
37 17 70
pegasaas_prerequest_pagespeed_score()
B
36 16 77
has_need()
A
55 14 18
get_site_pages_accelerated_data()
A
43 10 48
maybe_request_page_scan()
A
41 9 56
pegasaas_process_pagespeed_score_request()
A
48 10 30
pegasaas_process_pagespeed_benchmark_score_request()
A
49 10 29
get_pages_with_scores()
A
47 9 36
pegasaas_request_pagespeed_benchmark_score()
A
43 8 45
get_rule_icon()
A
58 10 14
request_pagespeed_score()
A
44 8 43
sort_scan_items_by_score_desc()
A
56 9 19
pegasaas_check_queued_pagespeed_score_requests()
A
42 7 47
process_pagespeed_benchmark_score_request()
A
43 7 46
pegasaas_check_queued_pagespeed_benchmark_score_requests()
A
43 6 46
fetch_page_scripts()
S
51 7 25
clear_pagespeed_benchmark_scores()
S
49 5 28
get_page_score_history()
S
49 5 27
get_analytics_loaded()
S
54 5 21
sort_scan_items_by_page_importance()
S
59 5 14
number_of_non_cachable_resources()
S
59 5 14
get_adnetwork_loaded()
S
60 5 14
condition_scan_data()
S
50 3 32
pegasaas_request_pagespeed_score()
S
57 4 16
caching_allows_gpsi_calls()
S
61 4 12
pegasaas_fetch_pagespeed_opportunities_html()
S
53 3 22
clear_pagespeed_scores()
S
57 3 16
sort_page_items_by_accelerated_status()
S
71 3 6
sort_site_speed_opportunities()
S
70 3 6
sort_page_speed_opportunities_v5()
S
70 3 6
sort_page_speed_opportunities()
S
70 3 6
needs_webperf_scans()
S
66 3 8
needs_benchmark_scans()
S
66 3 8
sort_resources_by_load_order()
S
70 3 6
get_pagespeed_benchmark_scores_count()
S
73 1 5
__construct()
S
82 1 3
get_pagespeed_scores_count()
S
73 1 5
get_scanned_posts()
S
81 1 3
get_scanned_pages()
S
81 1 3
clear_last_benchmark_scan()
S
75 1 4
clear_pagespeed_benchmark_requests()
S
67 1 7
clear_pagespeed_requests()
S
67 1 7
clear_performance_scans()
S
68 1 7
calculate_web_pef_metrics()
S
80 1 3
pegasaas_cancel_request_pagespeed_score()
S
100 1 2