I don't know about the worst song ever written but IMHO, the worst song ever recorded was "Lucy in the Sky in Diamonds" by William Shatner.

Sorry Trekkies but this was beyond awful.

bill