Extendable PHP class for creation of WordPress plugins