Sounds like you have no process:
Before task is assigned, there should be a technical design and acceptance criteria.
All code should be peer reviewed.
All code should have an attached unit test.
All code should be tested in a dev and cert environment.