Learning PHP and building a plugin