By default it optimizes everything but "Google Play Services". I additionally added to the "not optimized" category: "Android System", "Calendar", "Calendar Storage", "Gmail" and "Google Contacts Sync".
This seems to have worked mostly. There is the odd time WiFi is off when plugged in but it...