Right now Freemius limits the webhooks execution to 10 seconds. This is not ideal since the Mautic API can take a while to process the logic it needs to.
I can foresee that as a mautic install grows, it would take more time to run the processes Coach Freem is asking it to. One such process is to search for a contact when only given the email: https://github.com/UVLabs/coach-freem/blob/1.1.3/includes/Contacts/Base.php#L60
It would be best to save the webhook received by Freemius for later processing instead of trying to run all the logic while the webhook is limited to 10 seconds.
Converting Coach to a plugin will also make it easier to get started with for other Freemius users not big on editing code.
Right now Freemius limits the webhooks execution to 10 seconds. This is not ideal since the Mautic API can take a while to process the logic it needs to.
I can foresee that as a mautic install grows, it would take more time to run the processes Coach Freem is asking it to. One such process is to search for a contact when only given the email: https://github.com/UVLabs/coach-freem/blob/1.1.3/includes/Contacts/Base.php#L60
It would be best to save the webhook received by Freemius for later processing instead of trying to run all the logic while the webhook is limited to 10 seconds.
Converting Coach to a plugin will also make it easier to get started with for other Freemius users not big on editing code.