I think making code as simple and readable as possible is one of the most important goals every developer should try to achieve. Here’s an article that shows some improvements that could be made to virtually any code: https://www.ibuildings.nl/blog/2016/01/programming-guidelines-php-developers-part-1-reducing-complexity
What do you think? Do you have more tricks?