How to Hide WP-Optimize - Clean, Compress, Cache Admin Menus

function plt_hide_wp_optimize_menus() {
	//Hide "WP-Optimize".
	remove_menu_page('WP-Optimize');
	//Hide "WP-Optimize → Database".
	remove_submenu_page('WP-Optimize', 'WP-Optimize');
	//Hide "WP-Optimize → Images".
	remove_submenu_page('WP-Optimize', 'wpo_images');
	//Hide "WP-Optimize → Cache".
	remove_submenu_page('WP-Optimize', 'wpo_cache');
	//Hide "WP-Optimize → Minify".
	remove_submenu_page('WP-Optimize', 'wpo_minify');
	//Hide "WP-Optimize → Settings".
	remove_submenu_page('WP-Optimize', 'wpo_settings');
	//Hide "WP-Optimize → Help".
	remove_submenu_page('WP-Optimize', 'wpo_support');
	//Hide "WP-Optimize → Premium Upgrade".
	remove_submenu_page('WP-Optimize', 'wpo_mayalso');
}

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

Where do I put this code?