The battery was too a bit too small, and this was a design flaw.
But overall, I think third-party developers are more at fault. The biggest reason that old phones get slow is because third-party developers get new phones and don't worry as much about optimization for older models.