The performance of bulk heterojunction solar cells based on a novel donor polymer DPP-TT-T was optimised by tuning molecular weight and thermal annealing.