Updated 02 – 05 – 18: plugins object is now returned as an array.
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…
Autoptimize speeds up your website by optimizing JS, CSS, images (incl. lazy-load), HTML and Google Fonts, asyncing JS, removing emoji cruft and more.
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.
A lightweight plugin to add thousands of taxonomy terms in one go.
Enables the previous "classic" editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports all plugins that extend this screen.
This free "Classic Editor Addon" plugin makes sure that the new block editor cannot be accidentally activated even while the "Classic E …
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 run code snippets on 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.
Disable the use of the JSON REST API on your website to unauthenticated users.
Disables the WP REST API for visitors not logged into WordPress.
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 that protects email addresses from email-harvesting robots, by encoding them into decimal and hexadecimal entities.
Easily replace any attached image/file by simply uploading a new file in the Media Library edit view - a real time saver!
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…
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!
Automatically generate, email and download PDF documents with Gravity Forms and Gravity PDF.
Display tailored menu items to each visitor with visibility 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.
Lazy Load your images and iframes, replace Youtube videos by a preview thumbnail.
Introduces the [list-pages], [sibling-pages] and [child-pages] shortcodes for easily displaying a list of pages within a post or page.
Empowers website owners to provide rich and engaging live event coverage to a large, distributed…
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…
Lets you make a WordPress page (or port or other content type) link to a URL of your choosing (on your site, or on another site), instead of its norma …
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…
WordPress feature plugin to bring Progressive Web App (PWA) capabilities to Core
No setup required! You only need an SSL certificate, and this plugin will do the rest.
Manage 301 redirections, keep track of 404 errors, and improve your site, with no knowledge of Apache or Nginx needed.
A persistent object cache backend powered by Redis. Supports Predis, PhpRedis, HHVM, replication, clustering and…
Regenerate the thumbnails for one or more of your image uploads. Useful when changing their sizes or your theme.
Allows tweaking of several REST API settings
Limit access to visitors who are logged in or allowed by IP addresses. Includes many…
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.
View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more.
Planes have a black box, WordPress has Stream. When something goes wrong, you need to…
Subscribe to Comments Reloaded allows commenters to sign up for e-mail notifications of subsequent replies.…
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.…
Take control and protect your site today! Censor all content containing profanity, swearing, offensive, and…
WP Document Revisions is a document management and version control plugin. Built for time-sensitive and mission-critical projects, teams can collabora …
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…
Copies files to Amazon S3, DigitalOcean Spaces or Google Cloud Storage as they are uploaded…
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…
Display a list of related posts on your site based on a powerful unique algorithm. Earn money by including sponsored content!
What do you think? Is there any other info you think would be useful to include? Let me know in the comments.