Plugins: call directly within php instead of http requests