Fix a strict PHP notice by re-factoring how the plugin url is calculated