Removed unused $wpdb, added array_map for user_group_ids, added nonce check and quick animation.