This is issue of all new web developers who have started their carrier as PHP developer.
Below is suggestion as per my best knowledge.
- you must have good tools
- think simple
- learn html, and css
- you must know what you write
- must have good knowledge of mysql
- use smart tools to increase your productivity, accuracy
- use source control to keep your code safe
- work on local systems first, don’t do changes on live environment