Tips on Customizing Post Views Counter

How to Hide Post Views Counter Admin Menus

function plt_hide_post_views_counter_menus() {
	//Hide "Post Views".
	remove_menu_page('post-views-counter');
	//Hide "Post Views → General".
	remove_submenu_page('post-views-counter', 'post-views-counter');
	//Hide "Post Views → Display".
	remove_submenu_page('post-views-counter', 'post-views-counter&tab=display');
	//Hide "Post Views → Reports".
	remove_submenu_page('post-views-counter', 'post-views-counter&tab=reports');
	//Hide "Post Views → Other".
	remove_submenu_page('post-views-counter', 'post-views-counter&tab=other');
}

add_action('admin_menu', 'plt_hide_post_views_counter_menus', 12);

Where do I put this code?

How to Hide the "Post Views Counter" Dashboard Widget

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

	//Remove the "Post Views Counter" widget.
	remove_meta_box('pvc_dashboard', 'dashboard', 'normal');
}

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