Support » Plugin: My Plugin Information » pull compatibility info

  • Resolved ikookmaar



    Your plugin seems very usefull, thanks!
    I am trying to create a single table of used plugins on multiple sites along with usefull version and compatibility info to help me decide if these sites are ready to upgrade to a new WP version… I’d like to get the info from the voting system (votes/broken/works) also.
    Too bad I am not a php programmer (yet?)…
    I did manage to add some more info (like Piet did), by copying a few lines and adding more values for “field”, but the one I’m interested in most, namely “compatibility” just returns the word “Array”.
    I understand this is because the query returns an array of values indeed (multiple votes, versions, outcomes).
    Is there a way to make it return the outcome of either “works” “broken” or “not enough data” for just the latest or a specific WP version instead?

    thanks in advance,


    Thanks in advance

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Harish Chouhan


    Hi Peter,

    No issues, I’m not a good programmer too. I end up googling every time I need to do even basic things. The reason I had not added those fields is because of more arrays. I definitely could search around and do it, but would not be able to do it anytime soon, however if you could ask around in StackOverflow and find a solution, please feel to post a PULL request in the GitHub repo and I will give you credit for it.
    I will also ask others if anyone is willing to do this and see.

    Problem with the compatibility fields is that the output is quite difficult to read.

    I ran one of my plugins (so-mobile-map-widget) through the api and got the following result for the compatibility field:

    	s:3:"3.5"; a:1:{
    		s:3:"0.1"; a:3:{i:0;i:100;i:1;i:1;i:2;i:1;}
    		s:3:"0.3";	a:3:{i:0;i:100;i:1;i:1;i:2;i:1;}
    		s:3:"0.4";	a:3:{i:0;i:100;i:1;i:1;i:2;i:1;}
    		s:5:"0.4.1";		a:3:{i:0;i:100;i:1;i:1;i:2;i:1;}
    		s:10:"2013.12.25";	a:3:{i:0;i:100;i:1;i:1;i:2;i:1;}
    		s:10:"2014.04.16";	a:3:{i:0;i:100;i:1;i:1;i:2;i:1;}

    Obviously the first is the WordPress version and the second are the plugin version that were present during that particular WordPress version.

    But what the 0’s 100 1’s and 2’s represent and in what order is now the main puzzle. Any tips appreciated!

    Compatibility output for this plugin is:

    Plugin Author Harish Chouhan


    Thanks Piet. This was the reason I had not focussed on these fields.

    My best guess for 1 and 100’s is, 1 represent number of votes received, and 100 represents compatibility. I assume if another user voted and said the plugin does not work, it would become 2 and 50.
    But there are still many other fields to figure out.

    Thing is that the first 0 is not the amount of votes it received.

    I always vote my new plugin releases as works, so that must be reflected in one of the other 1’s, who knows which one though?

    So if anyone can solve this puzzle or can get the info from somewhere then I don’t mind adding it as another output option, but I’m afraid that I don’t have time to research that.

    Maybe the original poster (@ikookmaar) can look into that?

    Plugin Author Harish Chouhan


    Thanks @piet for looking into this. This seems too time consuming so will ask around to get more info.

    @ikookmaar, I’m afraid you are on your own for now. If you come up with any solution do let us know.

    Thank you both for looking into this.
    I tried the plugin plugin-info first, which does manage to display the final compatibility results from the votes, but it’s not much use to me since it’s interface only allows to get info for one plugin per post…
    Maybe looking into it’s code will help…

    I looked into the plugin you refer to @ikookmaar, but that seems to work for plugins that don’t have enough compatibility votes only.

    If you use the slug wordpress-seo the whole thing fails miserably with all kinds of errors.

    Unless you’re willing to pay for plugin development, I think you better can forget about this.

    Sorry I cannot help you guys any further with this.

    I’ll look around a bit more to see if someone else has come across a solution.
    I wish I could afford paying you guys for plugin development, but it’s not that urgent anyway.
    Thanks and keep up the good work!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘pull compatibility info’ is closed to new replies.