Signs your PHP needs refactoring

Soledad Penadés once again is spot-on with her “Signs your PHP needs refactoring”:

I have had to go through a php application recently which has given me more than one headache and has required me to use all my possible patience. While working with it, I thought This is good material for an article, so that nobody else does the same in the future, and nodody else will need to experience the same displeasure as I have had to. So here are the signs your PHP application needs a serious refactoring, right now:…

Her first sign is a huge pet peeve of mine: the use of global variables. I’m looking at you, Matt Mullenweg.

[tags]php, refactoring, wordpress, globals[/tags]