add plugin headers 'Core', 'PHP' and functions to check against environment variables