Marshmallow battery optimisation not working on Moto G
You don't need to do anything. Not optimised just shows the apps that are considered system critical and are excluded from battery optimisation. If you select the All apps option, that just lists all the apps that are battery optimised.