Code Analysis: WordPress Popular Posts 5.4.2

Function Rating Maintainability Complexity Lines of code
Query::build_query()
D
10
86 296
WordPressPopularPosts\Block\Widget\Widget::render()
D
22
72 124
WordPressPopularPosts\Front\Front::wpp_shortcode()
D
20
63 160
WordPressPopularPosts\Widget\Widget::update()
D
24
47 148
Output::format_content()
D
29 45 98
Image::get()
D
27
42 142
Output::render_post()
D
27
40 113
WordPressPopularPosts\Admin\Admin::get_popular_items()
D
30 30 112
wpp_get_views()
C
32 26 102
WordPressPopularPosts\Admin\Admin::get_dates()
B
37 20 72
Output::build_output()
B
38 20 67
WordPressPopularPosts\Rest\ViewLoggerEndpoint::update_views_count()
B
31 16 125
WordPressPopularPosts\Admin\Admin::upgrade()
A
40 15 55
Output::get_metadata()
A
44 15 38
WordPressPopularPosts\Admin\Admin::enqueue_assets()
A
38 13 61
Image::get_file_meta()
A
41 13 55
WordPressPopularPosts\Block\Widget\Widget::register()
A
29
3 195
Output::get_taxonomies()
A
45 13 39
Themer::load_theme()
A
51 14 23
Cache::set()
A
44 12 45
Image::fetch_external_image()
A
45 11 39
WordPressPopularPosts\Admin\Admin::clear_data()
A
47 11 35
WordPressPopularPosts\Admin\Admin::clear_thumbnails()
A
49 11 29
WordPressPopularPosts\Admin\Admin::get_chart_data()
A
41 9 55
Image::resize()
A
46 10 38
Image::get_alt_attribute()
A
47 10 34
WordPressPopularPosts\Admin\Admin::notices()
A
49 10 29
WordPressPopularPosts\Admin\Admin::__construct()
A
50 10 27
wpp_get_mostpopular()
A
51 10 24
Output::get_excerpt()
A
47 9 36
WordPressPopularPosts\Front\Front::enqueue_assets()
A
47 9 32
WordPressPopularPosts\Admin\Admin::update_chart()
A
50 9 25
Helper::is_single()
A
54 9 20
Image::get_sizes()
A
51 8 27
WordPressPopularPosts\Admin\Admin::render_list()
A
48 7 34
Output::get_pageviews()
A
58 8 16
WordPressPopularPosts\Front\Front::update_views_count()
S
45 6 45
WordPressPopularPosts\Widget\Widget::widget()
S
49 7 30
Image::resolve()
S
52 7 25
Helper::prettify_number()
S
51 7 25
WordPressPopularPosts\Rest\PostsEndpoint::get_collection_params()
S
36 2 99
Image::get_attachment_id()
S
52 7 22
WordPressPopularPosts\Rest\WidgetEndpoint::prepare_widget_item_for_response()
S
53 7 21
WordPressPopularPosts\Admin\Admin::get_admin_color_scheme()
S
55 7 20
WordPressPopularPosts\Admin\Admin::get_range_item_count()
S
48 6 32
WordPressPopularPosts\Admin\Admin::trending_dashboard_widget()
S
41 3 75
WordPressPopularPosts\Rest\Endpoint::set_lang()
S
58 7 15
WordPressPopularPosts\Widget\Widget::get_popular()
S
50 6 30
WordPressPopularPosts\Admin\Admin::flush_post_thumbnail()
S
59 7 13
WordPressPopularPosts\Admin\Admin::handle_performance_notice()
S
52 6 25
Helper::get_date_range()
S
53 6 24
Themer::read()
S
59 6 14
delete_thumb_cache()
S
60 6 13
Translate::get_locale()
S
60 6 13
WordPressPopularPosts\Admin\Admin::performance_check()
S
52 5 26
WordPressPopularPosts\Front\Front::convert_inline_js_into_json()
S
55 5 21
WordPressPopularPosts\Admin\Admin::at_a_glance_stats()
S
48 4 32
Helper::is_image_url()
S
55 5 16
WordPressPopularPosts\Activation\Deactivator::deactivate()
S
58 5 16
WordPressPopularPosts\Activation\Activator::activate()
S
57 5 16
Image::get_srcset()
S
56 5 15
Helper::truncate()
S
57 5 15
WordPressPopularPosts\Rest\PostsEndpoint::get_items()
S
58 5 14
Image::url_to_path()
S
63 5 11
Helper::merge_array_r()
S
61 5 11
WordPressPopularPosts\Rest\Endpoint::maybe_query()
S
52 4 25
Settings::get()
S
56 4 20
WordPressPopularPosts\Rest\ThumbnailsEndpoint::get_items()
S
55 4 19
WordPressPopularPosts\Admin\Admin::add_contextual_help()
S
49 3 34
WordPressPopularPosts\Rest\WidgetEndpoint::get_widget_block()
S
55 4 18
Image::__construct()
S
57 4 16
WordPressPopularPosts\Front\Front::update_views()
S
57 4 16
WordPressPopularPosts\Admin\Admin::flush_transients()
S
65 5 8
WordPressPopularPosts\Activation\Activator::do_db_tables()
S
51 3 30
Themer::is_valid_config()
S
76 5 3
Image::generate_thumbnail()
S
58 4 14
Image::render()
S
58 4 12
WordPressPopularPosts\Container\WordPressPopularPostsConfiguration::modify()
S
43 1 55
WordPressPopularPosts\Block\Widget\Widget::__construct()
S
44 1 48
I18N::load_plugin_textdomain()
S
68 4 6
Image::get_default_url()
S
66 4 8
Output::get_comments()
S
69 4 6
Query::run_query()
S
69 4 6
Helper::is_timestamp()
S
65 4 9
Helper::debug()
S
65 4 9
WordPressPopularPosts\Admin\Admin::add_plugin_settings_link()
S
59 3 14
Helper::get_timezone()
S
60 3 12
WordPressPopularPosts\Activation\Activator::plugin_activate()
S
62 3 11
WordPressPopularPosts\Front\Front::inline_loading_css()
S
64 1 36
WordPressPopularPosts\Rest\ViewLoggerEndpoint::get_tracking_params()
S
51 1 31
Output::get_thumbnail()
S
59 2 16
Translate::get_default_language()
S
71 3 5
Translate::get_current_language()
S
71 3 5
Output::get_date()
S
63 3 9
Output::get_output()
S
72 3 4
Image::exists()
S
65 3 8
Output::get_author()
S
69 3 6
Helper::add_scheme()
S
65 3 9
WordPressPopularPosts\Container\Container::configure()
S
71 3 6
WordPressPopularPosts\Rest\PostsEndpoint::prepare_item()
S
58 2 15
WordPressPopularPosts\Container\Container::offsetGet()
S
68 3 6
Image::get_plugin_uploads_dir()
S
73 3 5
WordPressPopularPosts\Widget\Widget::get_sidebar_data()
S
64 3 9
WordPressPopularPosts\Admin\Admin::upgrade_site()
S
66 3 8
Output::get_rating()
S
68 3 7
WordPressPopularPosts\Block\Widget\Widget::parse_attributes()
S
67 3 7
Helper::is_number()
S
77 3 3
WordPressPopularPosts\Admin\Admin::hooks()
S
51 1 25
WordPressPopularPosts\Rest\WidgetEndpoint::register()
S
55 1 22
WordPressPopularPosts\Widget\Widget::__construct()
S
58 1 16
WordPressPopularPosts\Admin\Admin::activate_new_site()
S
68 2 7
Helper::is_valid_date()
S
74 2 4
WordPressPopularPosts\Admin\Admin::purge_post_data()
S
75 2 4
uninstall()
S
59 1 15
Translate::get_object_id()
S
66 2 9
WordPressPopularPosts\Rest\WidgetEndpoint::get_widget()
S
63 2 9
Helper::timestamp()
S
78 2 3
WordPressPopularPosts\Container\Container::service()
S
67 2 9
WordPressPopularPosts\Admin\Admin::add_dashboard_widgets()
S
66 2 9
WordPressPopularPosts\Admin\Admin::updated_post_meta()
S
74 2 5
WordPressPopularPosts\Admin\Admin::purge_post()
S
66 2 8
Output::get_title()
S
65 2 9
Output::get_permalink()
S
71 2 6
WordPressPopularPosts\Admin\Admin::deleted_post_meta()
S
74 2 5
Themer::get_theme()
S
78 2 3
WordPressPopularPosts\Rest\WidgetEndpoint::get_widget_params()
S
61 1 14
WordPressPopularPosts\Rest\ThemesEndpoint::register()
S
61 1 13
WordPressPopularPosts\Rest\TaxonomiesEndpoint::register()
S
61 1 13
WordPressPopularPosts\Rest\ThumbnailsEndpoint::register()
S
61 1 13
WordPressPopularPosts\Rest\PostsEndpoint::register()
S
61 1 12
WordPressPopularPosts\Rest\ViewLoggerEndpoint::register()
S
61 1 12
WordPressPopularPosts\Widget\Widget::form()
S
69 1 7
WordPressPopularPosts\Rest\Controller::__construct()
S
67 1 8
Output::__construct()
S
67 1 8
get_mostpopular()
S
80 1 3
WordPressPopularPosts\Rest\TaxonomiesEndpoint::get_items()
S
74 1 4
WordPressPopularPosts::__construct()
S
67 1 8
WordPressPopularPosts\Rest\Controller::register_routes()
S
69 1 8
WordPressPopularPosts\Container\Container::offsetSet()
S
80 1 3
WordPressPopularPosts\Widget\Widget::remove_from_legacy_widget_block()
S
77 1 4
WordPressPopularPosts\Admin\Admin::display_plugin_admin_page()
S
79 1 3
WordPressPopularPosts\Rest\Endpoint::__construct()
S
77 1 4
WordPressPopularPosts\Admin\Admin::upgrade_check()
S
82 1 3
Output::set_public_options()
S
72 1 6
WordPressPopularPosts\Widget\Widget::hooks()
S
74 1 4
WordPressPopularPosts\Container\Container::offsetUnset()
S
80 1 3
WPP_Query::__construct()
S
75 1 4
Output::set_data()
S
81 1 3
Translate::set_current_language()
S
81 1 3
WordPressPopularPosts\Rest\Endpoint::register()
S
100 1 0
WordPressPopularPosts\Container\Container::__construct()
S
81 1 3
Output::output()
S
81 1 3
Query::get_query()
S
82 1 3
Helper::curdate()
S
79 1 3
wpp_render_min_requirements_notice()
S
65 1 10
Cache::get()
S
80 1 3
Query::get_posts()
S
82 1 3
WordPressPopularPosts\Rest\ThemesEndpoint::__construct()
S
74 1 5
Helper::microtime_float()
S
74 1 4
WordPressPopularPosts\Container\Container::offsetExists()
S
79 1 3
Translate::get_object_lang_code()
S
65 1 10
Query::set_options()
S
81 1 3
WordPressPopularPosts\Admin\Admin::add_plugin_admin_menu()
S
67 1 9
WordPressPopularPosts\Block\Block::hooks()
S
79 1 3
WordPressPopularPosts\Rest\ThemesEndpoint::get_items()
S
72 1 5
Themer::__construct()
S
72 1 5
WordPressPopularPosts\Front\Front::__construct()
S
74 1 5
WordPressPopularPosts::init()
S
69 1 8
WordPressPopularPosts\Widget\Widget::register()
S
81 1 3
Translate::url()
S
79 1 3
WordPressPopularPosts\Admin\Admin::purge_data()
S
73 1 4
Themer::hooks()
S
79 1 3
Translate::__construct()
S
91 1 2
WordPressPopularPosts\Front\Front::hooks()
S
65 1 8
Themer::get_themes()
S
82 1 3
WordPressPopularPosts\Block\Block::render()
S
100 1 0
WordPressPopularPosts\Admin\Admin::at_a_glance_stats_css()
S
82 1 3
WordPressPopularPosts\Activation\Deactivator::plugin_deactivate()
S
73 1 5
WordPressPopularPosts\Rest\Controller::hooks()
S
79 1 3
I18N::__construct()
S
81 1 3
Helper::now()
S
80 1 3
WordPressPopularPosts\Rest\WidgetEndpoint::__construct()
S
74 1 5
WordPressPopularPosts\Admin\Admin::delete_site_data()
S
71 1 6
WordPressPopularPosts\Activation\Activator::track_new_site()
S
80 1 3
WordPressPopularPosts\Block\Block::register()
S
100 1 0
Output::is_single()
S
79 1 3
Query::__construct()
S
74 1 5