• Resolved mikeyb31

    (@mikeyb31)


    Hi guys,

    I’ve tried using this plugin a few times (for GDPR) but have ended up removing it straight away as it intermittently kills/hangs the application. I decided to have a closer look at the code and report my findings.

    There is an AJAX request to /wp-admin/admin-ajax.php?_fs_blog_admin=true which calls the action “AjaxRefresh” – the method AjaxRefresh is located in classes\Views\AuditLog.php.

    I immediately noticed a usleep() on L308 which is called in a do/while loop (see https://imgur.com/XLpqZEh). This snippet, on occasions (I’ve not looked into why) sleeps for a considerable length of time, enough for PHP to timeout (30 sec default). If you’re clicking around the different Audit Log pages or have multiple tabs open etc your PHP workers will be stuck in this sleep and very quickly your application will grind to a halt.

    I haven’t spent enough time investigating this issue to give suggestions on a fix as I don’t fully understand what this snippet of code is doing but this does need to be rectified. I’ve noticed a few of the negative reviews for this plugin also had similar issues so hopefully this will prompt a fix.

    Kind regards,
    Mike

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mikeyb31

    (@mikeyb31)

    *** As a quick fix/alternative, you can disable the AJAX requests by setting the “Refresh Audit Log Viewer” to “Manual” @ /wp-admin/admin.php?page=wsal-settings#tab-audit-log

    Plugin Author WPWhiteSecurity

    (@wpwhitesecurity)

    Hello @mikeyb31,

    Thank you very much for taking the time to report the issue.

    In regards to performance, we are always optimizing the plugin but the more the merrier. So we are taking your feedback on board and will also look into optimizing this specific issue.

    Should you have anything else to share, let me know and thank you again.

    Thread Starter mikeyb31

    (@mikeyb31)

    You’re welcome @wpwhitesecurity
    Thank you for the plugin ??

    Plugin Author WPWhiteSecurity

    (@wpwhitesecurity)

    You’re welcome @mikeyb31.

    I can confirm that we identified a problem that was eating up some resources and can also confirmed that it is fixed. Will release a fix with some other updates early next week and you should notice a considerable performance improvement.

    If you’d like an early sneak peak and test the beta of next week’s update drop me an email on [email protected].

    Thank you again for taking the time to report the issue.

    Plugin Author WPWhiteSecurity

    (@wpwhitesecurity)

    Hello @mikeyb31,

    We just released version 3.1.7 of the plugin which includes a fix and performance enhancement. Please try it out and keep us posted on the outcome of the test.

    Thank you for your cooperation.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin hangs application solved’ is closed to new replies.