Wordpress was created over 12 years ago before Php 5. Its still using its old code base, so most of the Wordpress code is procedural instead of Object oriented.

Pak Php is a Php micro framework that among other features provides an object oriented interface for developing WordPress plugins