How to Hide WP-Optimize 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 → Settings".
	remove_submenu_page('WP-Optimize', 'wpo_settings');
	//Hide "WP-Optimize → Help".
	remove_submenu_page('WP-Optimize', 'wpo_support');
	//Hide "WP-Optimize → More plugins".
	remove_submenu_page('WP-Optimize', 'wpo_mayalso');
}

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

Where do I put this code?