Tips on Customizing WP Statistics

How to Hide WP Statistics Admin Menus

function plt_hide_wp_statistics_menus() {
	//Hide "Statistics".
	remove_menu_page('wps_overview_page');
	//Hide "Statistics → Overview".
	remove_submenu_page('wps_overview_page', 'wps_overview_page');
	//Hide "Statistics → Hits".
	remove_submenu_page('wps_overview_page', 'wps_hits_page');
	//Hide "Statistics → Online".
	remove_submenu_page('wps_overview_page', 'wps_online_page');
	//Hide "Statistics → Visitors".
	remove_submenu_page('wps_overview_page', 'wps_visitors_page');
	//Hide "Statistics → Referrers".
	remove_submenu_page('wps_overview_page', 'wps_referrers_page');
	//Hide "Statistics → Search Words".
	remove_submenu_page('wps_overview_page', 'wps_words_page');
	//Hide "Statistics → Search Engines".
	remove_submenu_page('wps_overview_page', 'wps_searches_page');
	//Hide "Statistics → Pages".
	remove_submenu_page('wps_overview_page', 'wps_pages_page');
	//Hide "Statistics → Categories".
	remove_submenu_page('wps_overview_page', 'wps_categories_page');
	//Hide "Statistics → Tags".
	remove_submenu_page('wps_overview_page', 'wps_tags_page');
	//Hide "Statistics → Authors".
	remove_submenu_page('wps_overview_page', 'wps_authors_page');
	//Hide "Statistics → Browsers".
	remove_submenu_page('wps_overview_page', 'wps_browser_page');
	//Hide "Statistics → Platforms".
	remove_submenu_page('wps_overview_page', 'wps_platform_page');
	//Hide "Statistics → Top Visitors Today".
	remove_submenu_page('wps_overview_page', 'wps_top-visitors_page');
	//Hide "Statistics →".
	remove_submenu_page('wps_overview_page', 'wps_break_menu');
	//Hide "Statistics → Optimization".
	remove_submenu_page('wps_overview_page', 'wps_optimization_page');
	//Hide "Statistics → Settings".
	remove_submenu_page('wps_overview_page', 'wps_settings_page');
	//Hide "Statistics → Add-Ons".
	remove_submenu_page('wps_overview_page', 'wps_plugins_page');
	//Hide "Statistics → Donate".
	remove_submenu_page('wps_overview_page', 'wps_donate_page');
}

add_action('admin_menu', 'plt_hide_wp_statistics_menus', 11);

Where do I put this code?

How to Hide the "Hit Statistics" Meta Box

function plt_hide_wp_statistics_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Hit Statistics" meta box.
	remove_meta_box('wp-statistics-post-widget', $screen->id, 'normal');
}

add_action('add_meta_boxes', 'plt_hide_wp_statistics_metaboxes', 20);

How to Hide WP Statistics Dashboard Widgets

function plt_hide_wp_statistics_dashboard_widgets() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Remove the "Quick Stats" widget.
	remove_meta_box('wp-statistics-quickstats-widget', 'dashboard', 'normal');
	//Remove the "Summary" widget.
	remove_meta_box('wp-statistics-summary-widget', 'dashboard', 'normal');
	//Remove the "Top 10 Browsers" widget.
	remove_meta_box('wp-statistics-browsers-widget', 'dashboard', 'normal');
	//Remove the "Top Platforms" widget.
	remove_meta_box('wp-statistics-platforms-widget', 'dashboard', 'normal');
	//Remove the "Hit Statistics" widget.
	remove_meta_box('wp-statistics-hits-widget', 'dashboard', 'normal');
	//Remove the "Top 10 Pages" widget.
	remove_meta_box('wp-statistics-pages-widget', 'dashboard', 'normal');
	//Remove the "Top Referring" widget.
	remove_meta_box('wp-statistics-referring-widget', 'dashboard', 'normal');
	//Remove the "Search Engine Referrals" widget.
	remove_meta_box('wp-statistics-search-widget', 'dashboard', 'normal');
	//Remove the "Latest Search Words" widget.
	remove_meta_box('wp-statistics-words-widget', 'dashboard', 'normal');
	//Remove the "Top 10 Visitors Today" widget.
	remove_meta_box('wp-statistics-top-visitors-widget', 'dashboard', 'normal');
	//Remove the "Recent Visitors" widget.
	remove_meta_box('wp-statistics-recent-widget', 'dashboard', 'normal');
	//Remove the "Online Users" widget.
	remove_meta_box('wp-statistics-useronline-widget', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_wp_statistics_dashboard_widgets', 20);