Tips on Customizing Spam protection, AntiSpam, FireWall by CleanTalk

How to Hide Anti-Spam by CleanTalk Admin Menus

function plt_hide_cleantalk_spam_protect_menus() {
	//Hide "Settings → Anti-Spam by CleanTalk".
	remove_submenu_page('options-general.php', 'cleantalk');

	//Hide "Comments → All Comments".
	remove_submenu_page('edit-comments.php', 'edit-comments.php');
	//Hide "Comments → Find spam comments".
	remove_submenu_page('edit-comments.php', 'ct_check_spam');

	//Hide "Users → Find spam users".
	remove_submenu_page('users.php', 'ct_check_users');
	//Hide "Users →".
	remove_submenu_page('users.php', 'ct_check_users_bad');
}

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

Where do I put this code?

How to Hide the "Anti-Spam by CleanTalk" Dashboard Widget

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

	//Remove the "Anti-Spam by CleanTalk" widget.
	remove_meta_box('ct_dashboard_statistics_widget', 'dashboard', 'normal');
}

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