I think your two points about Xdebug and PHP naming conventions aren't a fair lense on PHP as a whole. Seems that they're framed around how wordpress uses PHP (poorly) for some of the more basic abstractions.
You aren't likely to find those issues in any modern PHP Framework out the box.