I worked developing plugins for WordPress years ago, many many years ago. Then, I decided to move to a greener pastures, why? because there is not market when the competitors spoil the same service works for practically peanuts.
However, for a project, I decided to look at the code of WordPress and O_O
- It still uses an old naming convention “wp_class_someclass” I can understand it is because legacy support but..
- It doesn’t use namespaces at all.
- It uses lots of includes_once. Why? It is because it is not using namespaces. Plugins uses namespaces but WordPress is like to work in PHP 4.0
- Mixed html and code.
- And a lot of hacky methods there and here.
WordPress is a truly time machine.