Hello @ilmigo. Sorry for the delay on this front. After a ton of research on what is causing certain scans to hang, we’ve determined that the plugin is hanging most often due to environment conditions on the servers where the scans are being run vs. the plugin itself or certain types of code it scans causing the problem.
This means that there is no clean way to code around the problem within the plugin. We’re currently exploring options for “side linting” (e.g. offloading the linting from your server/computer to an external service). That approach would require ongoing server costs, authentication systems, abuse controls, etc (as would any external computing service), so we’re taking a look at how viable that would be for us in this scenario.
Our recommendation at this point is if the plugin is hanging during a scan, that you try the scan in a different environment (e.g. locally, etc.). I like to use https://localbyflywheel.com/ for local environments. For full disclosure Flywheel was purchased by WP Engine last year so of course I would like their local dev product ??
As previously mentioned, it’s always preferential to run the scans on a non-production server anyways (hangs or no hangs).
There are other tools / options for linting for PHP version compatibility that require more technical ability than is required with this plugin, so we’re planning to update documentation on the plugin to reference these alternative methods should users of the plugin experience a hanging scan.
Right now we’re focused on getting support for 7.4 support out the door and we’ll be coming back to documentation updates and looking deeper at the side linting option.