Support » Everything else WordPress » How to check the minimum WP version a plugin supports?

Viewing 10 replies - 1 through 10 (of 10 total)
  • In the right sidebar on the plugin’s page (assuming you’re looking at the repository) is a value beside the word Requires. This is the minimum version that the plugin developer has specified. It’s based on the developer’s judgement not some official test. Some plugins will work outside of the specified range.

    For example, on one of my plugins you can see that the minimum version required is 4.0.

    Hello Marios and thank you for your reply. Admittedly, my message was very brief and lacked clarification about this. I was actually asking from the developer’s standpoint so as to be able to set this Compatible up to number more accurately.

    Kind Regards,
    George

    Also, I’d be very interested in your (or other developer’s) current workflow in order to determine WP’s minimum version for your plugin.

    George

    Sorry about my misinterpretation. Since I took this thread down the wrong path, you might want to start a new thread with your question rephrased so plugin developers will notice it and can weigh in.

    As for me, I look at 2 pieces of info. The first tells me how old the WP versions are:

    https://wordpress.org/about/stats/

    And the second tells me how many users use each version of WP:

    https://codex.wordpress.org/WordPress_Versions

    Of course, neither of the above are based on actual compatibility with the code base.

    Oh, I see. You are basing this on user stats. That’s an interesting approach! Indeed I was looking for a compatibility check based on code.

    George

    As for me, I look at 2 pieces of info.

    I might consider doing the same thing due to the lack of a code based test. User stats seem like the best alternative approach and, for sure, it’s a lot better than wild guessing or than having a false sense of compatibility!

    However, I won’t mark the topic as resolved yet, as I’d like to see more feedback about this. Thanks for your replies.

    George

    Moderator cubecolour

    (@numeeja)

    ɹoʇɐɹǝpoɯ

    I don’t think there’s a specific way to determine which versions of WordPress a plugin works with, apart from installing it on a test installation of every version and testing.

    In my view it is wasted effort to spend any time checking compatibility of a newly developed plugin with obsolete versions of WordPress.

    Stating that the plugin is compatible with the current version of WordPress when the plugin is launched is appropriate as you would have tested that when developing the plugin. You might want to additionally test with the last previous version, but I don’t do that for my own plugins.

    Hi cubecolour and thank you for your reply.

    I don’t think there’s a specific way to determine which versions of WordPress a plugin works with, apart from installing it on a test installation of every version and testing.

    I tend to believe that this is the only viable solution, but it could only be done by a service provided by wordpress org. Then again I’m not so sure if it’s worth the effort or the resources for the reasons you already mentioned.

    So, I think I’ll just go ahead with Marios’ approach of taking the WP stats into account.

    I’ll now mark this topic as resolved. Thanks all for your input!

    George

    There is a service for that: https://wpseek.com/pluginfilecheck/

    It’s a start, but does not catch everything. It tells me for my plugin to require WP 3.4, but I know I use a function introduced in WP 3.7. It seems to recognize only global functions but no class methods.

    So, it’s always a good thing to have a look at the documentation or the @since annotation in the code, whenever you use a new function.

    However, I also want to abandon the old WP versions and stick as close to the current version as possible.

    Looks fantastic! Much better than what I had in mind.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to check the minimum WP version a plugin supports?’ is closed to new replies.