On a whim this May bank holiday, tucked up on the sofa watching movies, I decided to create a plugin to display my favourited plugins on WordPress.org.
After a bit of digging I found you can use the plugins_api() function and pass it a username, e.g.:
plugins_api( 'query_plugins', array( 'user' => emirpprime, 'per_page' => '-1' ) );
This returns an object with some information about the results, then an array of plugins. A stripped down example of the structure is below:
A simple loop over the
plugins array will get all the details about a plugin you could want.
A short while later, and a rough and ready version is complete – a basic plugin that registers a shortcode and returns a list of a user’s plugins.
What does the plugin output?
Here are my favourites as an example – the markup is basic but easy to style, with a couple of classes for targetting. I’ve kept it simpler than the layout in wp-admin or the plugin repository, but hopefully with enough info to be useful:
Automatically all of a nav menu item's descendants as submenu items. Designed for pages but will work with any hierarchical post type or taxonomy …
Autoptimize speeds up your website and helps you save bandwidth by aggregating and minimizing JS,…
Automatic updating of the comment blacklist in WordPress with antispam keys from GitHub.
This plugin will check your posts, comments and other content for broken links and missing images, and notify you if any are found.
Simple, option-less, plugin to make TinyMCE - the WordPress Visual Editor - easier for clients…
All of Cloudflare’s performance and security benefits in a simple one-click install of recommended settings specifically developed for WordPress.
An easy, clean and simple way to add code snippets to your site.
The #1 Coming Soon Page, Under Construction & Maintenance Mode plugin for WordPress.
Admin UI for creating custom post types and custom taxonomies for WordPress
Debugging tool for theme authors and reviewers.
A plugin, which helps WordPress developers develop.
Allows administrators to globally disable comments on their site. Comments can be disabled according to post type. Multisite friendly.
Copy posts of any type with a click!
WordPress migration and backups are much easier with Duplicator! Clone, back up, move and transfer an entire site from one location to another.
A lightweight plugin to protect email addresses from email-harvesting robots by encoding them into decimal and hexadecimal entities.
Enables replacing attachment files by simply uploading a new file in the media library edit…
Epoch - 100% realtime chat and commenting in a tiny little package that is fully…
Speed up your website and improve your visitors' experience by automatically compressing and resizing images and PDFs.
FakerPress is a clean way to generate fake and dummy content to your WordPress, great for developers who need testing
Just your beautiful Flickr photos. In a Justified Grid.
Connects Google Analytics with your WordPress site. Displays stats to help you understand your users and site content on a whole new level!
Easily embed and customize Google maps on your WordPress site - in posts, pages or…
Automatically generate, email and download PDF documents with Gravity Forms and Gravity PDF.
Display or hide menu items with user-defines rules
iThemes Security is the #1 WordPress Security Plugin
Lazy load images to improve page load times and server bandwidth. Images are loaded only when visible to the user.
The tiny Lazy Load script for WordPress without jQuery, works for images and iframes.
Introduces the [list-pages], [sibling-pages] and [child-pages] shortcodes for easily displaying a list of pages within a post or page.
Quick and simple blogging for following fast-paced events.
Adds table editing controls to the visual content editor (TinyMCE).
Easily create responsive slideshows with WordPress that are mobile friendly and simple to customize.
The Open Graph Protocol enables any web page to become a rich object in a social graph. This plugin renders meta tags within an extension framework.
Generate automatically cover image of PDF by using ImageMagick. Allow user to insert PDF link with thumbnail into editor and set as Featured Image.
Plugin Check is a validation tool for PHP developers (and a quality checker for end…
No setup required! You only need an SSL certificate, and this plugin will do the…
Manage 301 redirections, keep track of 404 errors, and improve your site, with no knowledge…
A persistent object cache backend powered by Redis. Supports Predis, PhpRedis, HHVM, replication, clustering and WP-CLI.
Allows you to regenerate your thumbnails after changing the thumbnail sizes.
Allows tweaking of several REST API settings
Limit access to visitors who are logged in or allowed by IP addresses. Includes many options for handling blocked visitors.
This plugin gives your visitors the possibility to report a comment as inappropriate. After a…
Easily add an ajax-enhanced login widget to your WordPress site sidebar.
Planes have a black box, WordPress has Stream. When something goes wrong, you need to know how it happened.
Subscribe to Comments Reloaded allows commenters to sign up for e-mail notifications of subsequent replies. Don't miss any comment.
Enable tabs in the edit screen and manage them from the back-end.
A simple and easy way to test your theme for all the latest WordPress standards and practices. A great theme development tool!
Allows you to easily upgrade to Beta releases.
Zero Spam makes blocking spam comments a cinch. Install, activate and enjoy a spam-free site. Even supports third-party plugins!
Take control of your site today! Censor all content containing profanity, swearing, and abusive comments.…
WP Document Revisions is a document management and version control plugin. Built for time-sensitive and mission-critical…
WP Lynx allows you to mimic Facebook's wall links in your WordPress posts.
Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
Copies files to Amazon S3 as they are uploaded to the Media Library. Optionally configure Amazon CloudFront for faster delivery.
Make your website look beautiful and crisp on modern displays by creating and displaying retina images. WP 4.4+ is also supported and enhanced.
Adds the table controls to the TinyMCE editor in WordPress
WP-Optimize is WordPress's most-installed optimisation plugin. With it, you can clean up your database easily and safely, without manual queries.
Display a list of related posts on your site based on a powerful unique algorithm.
What do you think? Is there any other info you think would be useful to include? Let me know in the comments.