* No authentication check on any page after login page. (You could type in any URL in browser address bar and gain access).
* GET request updating home page related content in database. (A few of these GET request was picked up by Alexa bot and we hard our home page content change randomly for many days. We had a real hard time troubleshooting this one).
* Use of mysql_query() in PHP. (Deprecated mote than 10 years ago. Opens doors for SQL injection).
* Use of loop variables i,j,k,l,m for 5-level nested loop. (Too error prone and difficult to read).
* Unit testing applied to a highly monolithic code. (The hacks for isolating code units produced more garbage than the code itself). It was a legacy code and the management blindly ordered writing of unit tests when a few bugs were caught in production.