Code Analysis: Instant Articles for WP 5.0.1

Function Rating Maintainability Complexity Lines of code
Instant_Articles_Option::universal_render_handler()
D
28
31 152
Instant_Articles_Option_Ads::sanitize_option_fields()
C
36 23 82
Instant_Articles_Post::add_ads_from_settings()
B
37 16 80
Instant_Articles_Post::to_instant_article()
B
36 15 77
Instant_Articles_Post::should_submit_post()
A
47 14 35
instant_articles_embed_oembed_html()
A
44 13 42
rescrape_article()
A
44 11 46
invalidate_scrape_on_update()
A
43 10 53
Instant_Articles_Post::_get_the_content()
A
47 10 35
Instant_Articles_AMP_Markup::markup_version()
A
42 9 50
Instant_Articles_Post::add_analytics_from_settings()
A
48 8 37
Instant_Articles_Jetpack::_fix_facebook_embed()
A
51 8 29
Instant_Articles_Option_Publishing::sanitize_option_fields()
A
50 8 28
Instant_Articles_Co_Authors_Plus::authors()
A
53 8 20
Instant_Articles_Option::wp_bootstrap_add_fields_to_section()
S
49 7 30
Instant_Articles_Meta_Box::render_meta_box()
S
48 6 30
inject_ia_markup_meta_tag()
S
53 6 25
fbia_indication_column()
S
52 6 25
Instant_Articles_Option_Ads::custom_render_ad_source()
S
47 5 39
Instant_Articles_Option_Analytics::sanitize_option_fields()
S
54 6 21
Instant_Articles_Post::set_appearance_from_settings()
S
54 6 20
Instant_Articles_Post::get_the_kicker()
S
61 6 11
Instant_Articles_Option_AMP::sanitize_option_fields()
S
58 5 17
instant_articles_query()
S
57 5 17
Instant_Articles_Post::is_empty_after_transformation()
S
60 5 13
Instant_Articles_Post::get_cover_media()
S
61 5 12
Instant_Articles_Wizard::render()
S
54 4 20
instant_articles_register_scripts()
S
44 1 65
Instant_Articles_Post::get_the_featured_image()
S
56 4 19
Instant_Articles_Google_Analytics_For_WordPress::get_raw_embed_code()
S
58 4 16
Instant_Articles_Option_Analytics::custom_render_integrations()
S
51 3 30
instant_articles_query_where()
S
63 5 10
Instant_Articles_Comscore::get_raw_embed_code()
S
59 4 14
Instant_Articles_Signer::gen_keys()
S
60 4 13
Instant_Articles_Option::wp_bootstrap_create_sections()
S
53 3 27
Instant_Articles_Yoast_SEO::user_url()
S
62 4 12
Instant_Articles_AMP_Markup::inject_link_rel()
S
60 3 14
Instant_Articles_Post::has_warnings_after_transformation()
S
60 3 13
Instant_Articles_Option::get_option_decoded()
S
63 3 11
Instant_Articles_Post::get_canonical_url()
S
62 3 11
Instant_Articles_Yoast_SEO::override_featured_image()
S
63 3 11
Instant_Articles_Option::init()
S
62 3 11
Instant_Articles_Post::get_the_authors()
S
55 2 19
Facebook\InstantArticles\Transformer\WPTransformerTest::test_transform_content()
S
49 1 31
Instant_Articles_AMP_Markup::validate_json()
S
65 3 10
ia_markup_version()
S
64 3 9
fbia_indicator_column_heading()
S
66 3 8
instant_articles_setup_admin_notice()
S
64 3 9
wpcom_fbia_remove_stats_pixel()
S
64 3 10
wpcom_fbia_add_stats_pixel()
S
60 2 12
Instant_Articles_Google_Tag_Manager_For_WordPress::add_to_registry()
S
62 2 11
Instant_Articles_Option::delete_option()
S
68 2 7
Instant_Articles_Option::universal_sanitize_and_encode_handler()
S
65 2 9
Instant_Articles_Post::get_the_subtitle()
S
66 2 9
Instant_Articles_Wizard::get_url()
S
68 2 7
Instant_Articles_Jetpack::facebook_embed_handler()
S
58 2 8
Instant_Articles_AMP_Markup::get_settings()
S
71 2 6
Instant_Articles_Post::get_the_content()
S
72 2 6
Instant_Articles_Post::get_the_excerpt()
S
63 2 10
invalidate_all_posts_transformation_info_cache()
S
72 2 6
is_transforming_instant_article()
S
69 2 7
instant_articles_embed_get_html()
S
65 2 9
Instant_Articles_Meta_Box::render_meta_box_loader()
S
70 2 6
inject_url_claiming_meta_tag()
S
66 2 9
Instant_Articles_Signer::output_public_key()
S
67 2 8
Instant_Articles_Option::update_option()
S
68 2 7
Instant_Articles_Meta_Box::force_submit()
S
63 2 9
Instant_Articles_Signer::get_public_key()
S
68 2 8
Instant_Articles_AMP_Markup::is_markup_enabled()
S
69 2 7
InstantArticlesPostTest::set_up()
S
59 1 15
Instant_Articles_Signer::get_private_key()
S
68 2 8
Instant_Articles_Post::has_subtitle()
S
68 2 8
Instant_Articles_Option::__construct()
S
65 2 9
Instant_Articles_Option_Ads::__construct()
S
60 1 14
Instant_Articles_Wizard::init()
S
61 1 13
instant_articles_enqueue_scripts()
S
63 1 13
Facebook\InstantArticles\Transformer\WPTransformerTest::test_title_transformed_with_bold()
S
60 1 13
Instant_Articles_Wizard::menu_items()
S
64 1 11
Instant_Articles_Option_Publishing::__construct()
S
64 1 11
Instant_Articles_Meta_Box::init()
S
64 1 11
Instant_Articles_Option_Analytics::__construct()
S
64 1 11
Instant_Articles_Google_Tag_Manager_For_WordPress::init()
S
74 1 4
Instant_Articles_Option_FB_Page::__construct()
S
71 1 7
Instant_Articles_Signer::get_signature()
S
74 1 4
Instant_Articles_Meta_Box::register_meta_box()
S
65 1 10
Instant_Articles_Jetpack::_fix_youtube_embed()
S
81 1 3
Instant_Articles_Option_FB_App::__construct()
S
71 1 7
InstantArticlesPostTest::test_kicker_is_empty_for_no_category()
S
80 1 3
Instant_Articles_Get_The_Image::init()
S
79 1 3
Instant_Articles_Jetpack::transformer_loaded()
S
70 1 6
Instant_Articles_Post::get_the_pubdate_iso()
S
71 1 5
InstantArticlesPostTest::test_can_create_instance()
S
79 1 3
Instant_Articles_Co_Authors_Plus::init()
S
78 1 3
Instant_Articles_Signer::sign_request_path()
S
66 1 8
admin_notice__scrape_invalidation_failed()
S
68 1 10
Instant_Articles_Post::get_the_title()
S
70 1 6
instant_articles_feed()
S
80 1 3
Instant_Articles_Apester::init()
S
79 1 3
instant_articles_load_compat()
S
81 1 3
Instant_Articles_Get_The_Image::transformer_loaded()
S
70 1 6
Instant_Articles_Wizard::add_settings_link_to_plugin_actions()
S
67 1 7
Instant_Articles_Yoast_SEO::init()
S
74 1 4
Instant_Articles_Post::get_the_moddate_iso()
S
71 1 5
Instant_Articles_Comscore::add_to_registry()
S
66 1 9
Instant_Articles_Option::wp_bootstrap_register_option()
S
70 1 7
Instant_Articles_Apester::transformer_loaded()
S
70 1 6
Instant_Articles_Playbuzz::init()
S
79 1 3
invalidate_post_transformation_info_cache()
S
76 1 4
fbia_show_version_incompatible_warning()
S
76 1 4
instant_articles_init()
S
80 1 3
Instant_Articles_Post::get_the_excerpt_rss()
S
73 1 5
Instant_Articles_Option::get_registered_compat()
S
68 1 8
Instant_Articles_Wizard::get_admin_url()
S
75 1 4
Instant_Articles_Comscore::init()
S
79 1 3
instant_articles_load_textdomain()
S
78 1 3
Instant_Articles_Google_Analytics_For_WordPress::init()
S
79 1 3
Instant_Articles_Google_Tag_Manager_For_WordPress::add_ia_status_to_data_layer()
S
76 1 4
InstantArticlesPostTest::test_can_get_post_fields()
S
67 1 7
instant_articles_deactivate()
S
83 1 3
admin_notice__scrape_invalidation_success()
S
71 1 9
Instant_Articles_Post::get_the_title_rss()
S
73 1 5
Instant_Articles_Jetpack::init()
S
73 1 5
Instant_Articles_Option_Styles::__construct()
S
71 1 7
Instant_Articles_Post::__construct()
S
81 1 3
Instant_Articles_Signer::init()
S
79 1 3
Instant_Articles_Playbuzz::transformer_loaded()
S
70 1 6
Instant_Articles_Google_Analytics_For_WordPress::add_to_registry()
S
66 1 9
instant_articles_activate()
S
79 1 4
Instant_Articles_Post::get_the_id()
S
82 1 3
Instant_Articles_Option_AMP::__construct()
S
71 1 7
Instant_Articles_Post::get_newsfeed_cover()
S
73 1 5
InstantArticlesPostTest::test_featured_image_is_array()
S
80 1 3
Instant_Articles_Option::sanitize_option_fields()
S
82 1 3