src/Modules/Dashboard_widget.php
function get_plugins_from_wporg( $author ) {
		$products = wp_remote_get(
			'https://api.wordpress.org/plugins/info/1.1/?action=query_plugins&request[author]=' . $author . '&request[per_page]=40&request[fields][active_installs]=true'
		);
		$products = json_decode( wp_remote_retrieve_body( $products ) );
		if ( is_object( $products ) ) {
			$products = isset( $products->plugins ) ? $products->plugins : array();
		} else {
			$products = array();
		}

		return (array) $products;
	}
function get_plugins_from_wporg( $author ) {
		$products = wp_remote_get(
			'https://api.wordpress.org/plugins/info/1.1/?action=query_plugins&request[author]=' . $author . '&request[per_page]=40&request[fields][active_installs]=true'
		);
		$products = json_decode( wp_remote_retrieve_body( $products ) );
		if ( is_object( $products ) ) {
			$products = isset( $products->plugins ) ? $products->plugins : array();
		} else {
			$products = array();
		}

		return (array) $products;
	}
function get_plugins_from_wporg ( $ author ) { $ products = wp_remote_get ( 'https://api.wordpress.org/plugins/info/1.1/?action=query_plugins&request[author]=' . $ author . '&request[per_page]=40&request[fields][active_installs]=true' ) ; $ products = json_decode ( wp_remote_retrieve_body ( $ products ) ) ; if ( is_object ( $ products ) ) { $ products = isset ( $ products -> plugins ) ? $ products -> plugins : array ( ) ; } else { $ products = array ( ) ; } return ( array ) $ products ; }
Fetch plugin from wporg api.

@param string $author The author slug.

@return array The list of plugins for the selected author.
Fetch plugin from wporg api .