newfold-labs / how-we-work

https://newfold-labs.github.io/how-we-work/
0 stars 0 forks source link

Update rules for determining minimum PHP version for brand plugins #30

Open wpscholar opened 3 months ago

wpscholar commented 3 months ago

This is our current rule:

If WordPress currently recommends PHP 7.4, we support two versions prior, which would be 7.2. See https://github.com/newfold-labs/how-we-work/blob/8452b832a53b4203310316b746c928d633bd9a72/5-wordpress.md?plain=1#L25-L33

We should probably create a clearer rule regarding PHP versions that take into account a few things:

If we apply all these rules without hosting-level PHP version stats, we're looking at PHP 7.2 as our lowest supported version. However, for Bluehost and HostGator we support 7.3+. That said, I think we should be fine to support PHP 7.3+ for all plugins, given the only rule that would dictate we support 7.2 would be if we support the lowest compatible version for the last 3 WP versions. If we ignore that rule the minimum becomes 7.3+ based on usage stats. Unless the hosting stats show otherwise, we'll use what we have from Hiive.