Code Analysis: C3 Cloudfront Cache Controller 6.1.5

Function Rating Maintainability Complexity Lines of code
C3_CloudFront_Cache_Controller\Cron_Service::run_schedule_invalidate()
A
47 11 38
C3_CloudFront_Cache_Controller\Invalidation_Service::__construct()
A
46 10 42
C3_CloudFront_Cache_Controller\Invalidation_Service::invalidate_manually()
A
47 10 36
C3_CloudFront_Cache_Controller\Invalidation_Service::register_cron_event()
A
50 10 28
C3_CloudFront_Cache_Controller\WP\Fixtures::__construct()
A
53 10 23
C3_CloudFront_Cache_Controller\AWS\CloudFront_Service::__construct()
A
54 10 22
C3_CloudFront_Cache_Controller\WP\WP_CLI_Command::update()
A
48 9 35
C3_CloudFront_Cache_Controller\WP\Options_Service::get_options()
A
49 8 37
C3_CloudFront_Cache_Controller\AWS\CloudFront_Service::list_invalidations()
A
51 8 26
C3_CloudFront_Cache_Controller\Settings_Service::__construct()
A
55 8 19
C3_CloudFront_Cache_Controller\WP\WP_CLI_Command::flush()
A
48 7 34
C3_CloudFront_Cache_Controller\AWS\Invalidation_Batch_Service::__construct()
A
58 8 17
C3_CloudFront_Cache_Controller\WP\Transient_Service::__construct()
A
58 8 17
C3_CloudFront_Cache_Controller\AWS\CloudFront_Service::try_to_call_aws_api()
S
49 7 29
C3_CloudFront_Cache_Controller\Cron_Service::__construct()
S
53 7 24
C3_CloudFront_Cache_Controller\WP\Transient_Service::query_normalize()
S
56 7 19
C3_CloudFront_Cache_Controller\WP\Options_Service::__construct()
S
58 7 16
C3_CloudFront_Cache_Controller\WP\Post::get_the_post_term_links()
S
53 6 23
C3_CloudFront_Cache_Controller\Views\Settings::__construct()
S
53 5 22
C3_CloudFront_Cache_Controller\Invalidation_Service::invalidate_by_query()
S
55 5 21
C3_CloudFront_Cache_Controller\WP\Post::get_the_post_type_archive_links()
S
57 5 16
C3_CloudFront_Cache_Controller\Class_Loader::autoloader()
S
61 5 12
C3_CloudFront_Cache_Controller\AWS\CloudFront_Service::create_client()
S
53 4 23
C3_CloudFront_Cache_Controller\AWS\CloudFront_Service::create_invalidation()
S
56 4 18
C3_CloudFront_Cache_Controller\AWS\Invalidation_Batch_Service::put_post_invalidation_batch()
S
58 4 16
C3_CloudFront_Cache_Controller\AWS\CloudFront_Service::create_credential()
S
65 5 8
C3_CloudFront_Cache_Controller\WP\Fixtures::cloudfront_is_mobile()
S
65 5 9
C3_CloudFront_Cache_Controller\Invalidation_Service::should_invalidate()
S
62 4 11
C3_CloudFront_Cache_Controller\AWS\CloudFront_Service::get_distribution_id()
S
63 4 11
C3_CloudFront_Cache_Controller\WP\Transient_Service::merge_transient_invalidation_query()
S
55 3 20
C3_CloudFront_Cache_Controller\Views\Settings::filter_and_escape()
S
60 3 15
C3_CloudFront_Cache_Controller\WP\Options_Service::update_options()
S
63 3 12
C3_CloudFront_Cache_Controller\WP\Admin_Notice::echo_error()
S
58 2 19
C3_CloudFront_Cache_Controller\AWS\Invalidation_Batch::get_invalidation_path_items()
S
70 3 6
C3_CloudFront_Cache_Controller\WP\Admin_Notice::echo_success_message()
S
63 2 15
C3_CloudFront_Cache_Controller\WP\Environment::is_amimoto_managed()
S
70 3 6
C3_CloudFront_Cache_Controller\WP\Environment::is_wp_cli()
S
71 3 6
C3_CloudFront_Cache_Controller\WP\Environment::get_distribution_id()
S
67 3 9
C3_CloudFront_Cache_Controller\Invalidation_Service::get_plugin_option()
S
67 3 7
C3_CloudFront_Cache_Controller\AWS\Invalidation_Batch::put_invalidation_path()
S
67 3 8
C3_CloudFront_Cache_Controller\WP\Fixtures::set_cookie()
S
59 2 14
C3_CloudFront_Cache_Controller\Views\Settings::create_options_page()
S
56 1 20
C3_CloudFront_Cache_Controller\WP\Environment::is_supported_version()
S
70 2 6
C3_CloudFront_Cache_Controller\WP\Fixtures::set_avoid_cache_cookie()
S
73 2 5
c3_init()
S
64 2 10
C3_CloudFront_Cache_Controller\Invalidation_Service::create_post_invalidation_batch()
S
65 2 9
C3_CloudFront_Cache_Controller\Settings_Service::update_options()
S
67 2 8
C3_CloudFront_Cache_Controller\AWS\Invalidation_Batch::make_invalidate_path()
S
69 2 6
C3_CloudFront_Cache_Controller\Invalidation_Service::invalidate_by_changing_post_status()
S
71 2 6
C3_CloudFront_Cache_Controller\Invalidation_Service::invalidate_post_cache()
S
67 2 7
C3_CloudFront_Cache_Controller\WP\Environment::get_aws_access_key()
S
72 2 6
C3_CloudFront_Cache_Controller\CloudFront_Clear_Cache::get_instance()
S
69 2 7
C3_CloudFront_Cache_Controller\AWS\Invalidation_Batch_Service::set_post()
S
71 2 6
C3_CloudFront_Cache_Controller\WP\Post::get_permalink()
S
71 2 6
C3_CloudFront_Cache_Controller\Invalidation_Service::invalidate_all()
S
67 2 8
C3_CloudFront_Cache_Controller\AWS\Invalidation_Batch_Service::create_batch_by_posts()
S
66 2 8
C3_CloudFront_Cache_Controller\WP\Post::parse_url()
S
66 2 8
C3_CloudFront_Cache_Controller\Constants::text_domain()
S
66 2 8
C3_CloudFront_Cache_Controller\WP\Environment::get_aws_secret_key()
S
72 2 6
C3_CloudFront_Cache_Controller\WP\Environment::has_managed_cdn()
S
80 1 3
C3_CloudFront_Cache_Controller\WP\Options::get_options()
S
80 1 3
C3_CloudFront_Cache_Controller\WP\Hooks::add_filter()
S
78 1 3
C3_CloudFront_Cache_Controller\AWS\Invalidation_Batch_Service::create_batch_for_all()
S
73 1 5
C3_CloudFront_Cache_Controller\WP\Admin_Notice::show_admin_error()
S
70 1 8
C3_CloudFront_Cache_Controller\WP\Admin_Notice::show_admin_success()
S
69 1 8
C3_CloudFront_Cache_Controller\WP\Options_Service::home_url()
S
80 1 3
C3_CloudFront_Cache_Controller\WP\Hooks::apply_filters()
S
79 1 3
C3_CloudFront_Cache_Controller\WP\Transient_Service::delete_invalidation_query()
S
82 1 3
C3_CloudFront_Cache_Controller\Settings_Service::get_options()
S
81 1 3
C3_CloudFront_Cache_Controller\WP\Hooks::add_action()
S
78 1 3
C3_CloudFront_Cache_Controller\WP\Transient::get_invalidation_target()
S
80 1 3
C3_CloudFront_Cache_Controller\Invalidation_Service::invalidate_posts_cache()
S
75 1 4
C3_CloudFront_Cache_Controller\AWS\Invalidation_Batch_Service::create_batch_by_post()
S
70 1 6
C3_CloudFront_Cache_Controller\AWS\Invalidation_Batch::get_invalidation_request_parameter()
S
71 1 6
C3_CloudFront_Cache_Controller\WP\Fixtures::unset_avoid_cache_cookie()
S
78 1 3
C3_CloudFront_Cache_Controller\WP\Transient_Service::save_invalidation_query()
S
73 1 5
C3_CloudFront_Cache_Controller\Class_Loader::register_autoloader()
S
80 1 3
C3_CloudFront_Cache_Controller\WP\Transient_Service::set_invalidation_query()
S
74 1 4
C3_CloudFront_Cache_Controller\Class_Loader::__construct()
S
77 1 4
C3_CloudFront_Cache_Controller\WP\Transient_Service::load_invalidation_query()
S
77 1 4
C3_CloudFront_Cache_Controller\WP\Post::set_post()
S
81 1 3
C3_CloudFront_Cache_Controller\WP\Transient::set_invalidation_target()
S
79 1 3
C3_CloudFront_Cache_Controller\WP\Transient::set_invalidation_transient()
S
79 1 3
C3_CloudFront_Cache_Controller\WP\Transient_Service::should_regist_cron_job()
S
75 1 4
C3_CloudFront_Cache_Controller\AWS\Invalidation_Batch::apply_invalidation_item_filter()
S
79 1 3
C3_CloudFront_Cache_Controller\WP\Environment::is_amimoto()
S
80 1 3
C3_CloudFront_Cache_Controller\WP\Transient::delete_transient()
S
80 1 3
C3_CloudFront_Cache_Controller\WP\Options::update_options()
S
79 1 3
C3_CloudFront_Cache_Controller\WP\Options::home_url()
S
80 1 3
C3_CloudFront_Cache_Controller\Views\Settings::define_caps()
S
76 1 4
C3_CloudFront_Cache_Controller\CloudFront_Clear_Cache::c3_invalidation()
S
75 1 4
C3_CloudFront_Cache_Controller\WP\Transient::delete_invalidation_target()
S
80 1 3
C3_CloudFront_Cache_Controller\WP\Post_Service::list_posts_by_ids()
S
65 1 10
C3_CloudFront_Cache_Controller\Invalidation_Service::list_recent_invalidation_logs()
S
77 1 4
C3_CloudFront_Cache_Controller\WP\Transient_Service::set_invalidation_time()
S
71 1 6
C3_CloudFront_Cache_Controller\WP\Options::delete_options()
S
80 1 3
C3_CloudFront_Cache_Controller\WP\Transient::get_invalidation_transient()
S
80 1 3
C3_CloudFront_Cache_Controller\WP\Transient::set_transient()
S
79 1 3
C3_CloudFront_Cache_Controller\WP\Transient::get_transient()
S
80 1 3
C3_CloudFront_Cache_Controller\AWS\Invalidation_Batch::get_invalidation_batch()
S
66 1 9