A song was leaked in late 2010 with speculation that the lyrics were towards the singer 's x-boyfrined Travie McCoy .
It was written by Perry and Bonnie McKee , with production and additional writing by Dr. Luke , Max Martin , and Cirkut .