title: Getting a list of ALL plugins
body: <p>I would like to get a list of ALL Wordpress plugins. </p>
  
  <p>There is a function called <code>get_plugins()</code> but it will return all plugins that I have installed. What I need is a list of all plugins, no matter if I installed them before or not.</p>
  
  <p>Is there a function that I could use? If not, is there a JSON, database, API or anything that I could use?</p>
  
  <p><strong>Edit:</strong></p>
  
  <pre><code>var_dump(plugins_api('query_plugins', array(
      'per_page' =&gt; 100,
      'tag' =&gt; 'contact form 7',
      'number' =&gt; 5,
      'page' =&gt; 1,
      'fields' =&gt;
          array(
              'short_description' =&gt; false,
              'description' =&gt; false,
              'sections' =&gt; false,
              'tested' =&gt; false,
              'requires' =&gt; false,
              'rating' =&gt; false,
              'ratings' =&gt; false,
              'downloaded' =&gt; false,
              'downloadlink' =&gt; false,
              'last_updated' =&gt; false,
              'added' =&gt; false,
              'tags' =&gt; false,
              'compatibility' =&gt; false,
              'homepage' =&gt; false,
              'versions' =&gt; false,
              'donate_link' =&gt; false,
              'reviews' =&gt; false,
              'banners' =&gt; false,
              'icons' =&gt; false,
              'active_installs' =&gt; false,
              'group' =&gt; false,
              'contributors' =&gt; false
          ))));
  </code></pre>
  
  <p>This returns a full of data that I don't need:</p>
  
  <p>The only data that I need are the yellow marked keys below: <code>name</code> and <code>slug</code></p>
  
  <p><a href="https://i.stack.imgur.com/vlJ7r.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vlJ7r.png" alt="enter image description here"></a></p>
  
  <p>I know that I could get them out from the array but it would be very bad for the performance.</p>
  
  <p><strong>Even when</strong> I try it with a loop, I'll get 45 plugins but not more. Where is the rest???</p>
  
  <pre><code>foreach ($plugins as $plugin) { // $plugins is the variable of my code above but without 'tag' =&gt; 'contact form 7',
      foreach ($plugin as $p) {
          if ($p != null) {
              echo $p-&gt;name . "&lt;br&gt;";
          }
      }
  }
  </code></pre>