Your block is probably too big.
Keep your logic outside of the trigger.
Learn techniques to replace messy software.
Keep it simple, stupid.
For performance and simplicity.
Move your business logic down to your models.
Some guidelines for the MVC technique.
Will your code stand the test of time?
Watch out for the weak link.
As in, don’t repeat yourself.