Make copyright/license consistent in plugin php

Add defined or die where needed.