Title: pull compatibility info
Last modified: August 21, 2016

---

# pull compatibility info

 *  Resolved [ikookmaar](https://wordpress.org/support/users/ikookmaar/)
 * (@ikookmaar)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/pull-compatibility-info/)
 * Hi,
 * 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,
 * Peter
 * Thanks in advance
 * [https://wordpress.org/plugins/my-plugin-information/](https://wordpress.org/plugins/my-plugin-information/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/pull-compatibility-info/#post-4852236)
 * 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.
 *  [Pieter Bos](https://wordpress.org/support/users/senlin/)
 * (@senlin)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/pull-compatibility-info/#post-4852293)
 * Problem with the compatibility fields is that the output is quite difficult to
   read.
 * I ran one of my plugins ([so-mobile-map-widget](http://wordpress.org/plugins/so-mobile-map-widget/))
   through the api and got the following result for the compatibility field:
 *     ```
       s:13:"compatibility";a:5:{
       	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:5:"3.5.1";a:2:{
       		s:3:"0.1";a:3:{i:0;i:100;i:1;i:2;i:2;i:2;}
       		s:3:"0.2";a:3:{i:0;i:100;i:1;i:2;i:2;i:2;}
       	}
   
       	s:5:"3.7.1";a:3:{
       		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:3:"3.8";a:2:{
       		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:3:"3.9";a: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:
    `compatibility";a:2:{s:3:"3.8";a:2:{
   s:5:"0.1.1";a:3:{i:0;i:100;i:1;i:1;i:2;i:1;}s:5:"0.2.0";a:3:{i:0;i:100;i:1;i:
   1;i:2;i:1;}}s:5:"3.8.1";a:1:{s:5:"0.2.0";a:3:{i:0;i:100;i:1;i:1;i:2;i:1;}}}`
 *  Plugin Author [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/pull-compatibility-info/#post-4852297)
 * 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.
 *  [Pieter Bos](https://wordpress.org/support/users/senlin/)
 * (@senlin)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/pull-compatibility-info/#post-4852298)
 * 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](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/pull-compatibility-info/#post-4852299)
 * Thanks [@piet](https://wordpress.org/support/users/piet/) for looking into this.
   This seems too time consuming so will ask around to get more info.
 * [@ikookmaar](https://wordpress.org/support/users/ikookmaar/), I’m afraid you 
   are on your own for now. If you come up with any solution do let us know.
 *  Thread Starter [ikookmaar](https://wordpress.org/support/users/ikookmaar/)
 * (@ikookmaar)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/pull-compatibility-info/#post-4852320)
 * 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…
 *  [Pieter Bos](https://wordpress.org/support/users/senlin/)
 * (@senlin)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/pull-compatibility-info/#post-4852330)
 * I looked into the plugin you refer to [@ikookmaar](https://wordpress.org/support/users/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.
 *  Thread Starter [ikookmaar](https://wordpress.org/support/users/ikookmaar/)
 * (@ikookmaar)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/pull-compatibility-info/#post-4852333)
 * OK,
    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.

 * ![](https://ps.w.org/my-plugin-information/assets/icon.svg?rev=3333870)
 * [My Plugin Information - Fetch Data from WordPress.org](https://wordpress.org/plugins/my-plugin-information/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-plugin-information/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-plugin-information/)
 * [Active Topics](https://wordpress.org/support/plugin/my-plugin-information/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-plugin-information/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-plugin-information/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [compatibilty](https://wordpress.org/support/topic-tag/compatibilty/)

 * 8 replies
 * 3 participants
 * Last reply from: [ikookmaar](https://wordpress.org/support/users/ikookmaar/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/pull-compatibility-info/#post-4852333)
 * Status: resolved