PHP Classes

wp-plugin-rating: Show ratings of WordPress plugins

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 45 All time: 10,795 This week: 673Up
Version License PHP version Categories
wp-plugin-rating 1.0.1MIT/X Consortium ...5.6PHP 5, Content management
Description 

Author

This package can show ratings of WordPress plugins.

It can retrieve information of given plugins available in the current WordPress installation.

The class display the plugin rating values using star images.

Innovation Award
PHP Programming Innovation award nominee
March 2018
Number 5
Many WordPress installations have installed many plugins of low quality that may compromise the stability of the installation and cause problems.

Bad plugins often get bad ratings because they have low quality.

This package can help finding which are the low quality plugins by displaying star rating averages to let the WordPress site owners determine which may be bad plugins that they may want to remove from their WordPress installation.

Manuel Lemos
Picture of Josantonius
  Performance   Level  
Name: Josantonius is available for providing paid consulting. Contact Josantonius .
Classes: 31 packages by
Country: Spain Spain
Age: ???
All time rank: 132526 in Spain Spain
Week rank: 178 Up6 in Spain Spain Up
Innovation award
Innovation award
Nominee: 11x

Documentation

WP Plugin Rating · Eliasis component

Latest Stable Version Latest Unstable Version License Codacy Badge Total Downloads Travis WP CodeCov

Versión en español

Show plugin rating in WordPress administration pages for plugins developed with Eliasis Framework.

This component requires that the page where the action hook will be inserted has been created with WP_Menu.

<p align="center">

<img src="resources/screenshot-1.png" alt="">
<img src="resources/screenshot-2.png" alt="">

</p>

Requirements

This component is supported by PHP versions 5.6 or higher and is compatible with HHVM versions 3.0 or higher.

Installation

The preferred way to install this component is through Composer.

To install WP Plugin Rating, simply:

$ composer require eliasis-framework/wp-plugin-rating

The previous command will only install the necessary files, if you prefer to download the entire source code you can use:

$ composer require eliasis-framework/wp-plugin-rating --prefer-source

You can also clone the complete repository with Git:

$ git clone https://github.com/eliasis-framework/wp-plugin-rating.git

Available Methods

Available methods in this component:

- Show WordPress plugin rating:

Hook::doAction('get_plugin_rating', $slug);

| Atttribute | Description | Type | Required | --- | --- | --- | --- | | $slug | WordPress plugin slug. | string | Yes |

@return HTML output.

Quick Start

To use this component with Composer:

use Josantonius\Hook\Hook;

Usage

- Show rating of the Search Inside plugin:

Hook::doAction('get_plugin_rating', 'search-inside');

Tests

To run tests you just need composer and to execute the following:

$ git clone https://github.com/eliasis-framework/wp-plugin-rating.git

$ cd wp-plugin-rating

$ bash bin/install-wp-tests.sh wordpress_test root '' localhost latest

$ composer install

Run unit tests with PHPUnit:

$ composer phpunit

Run WordPress code standard tests with PHPCS:

$ composer phpcs

Run PHP Mess Detector tests to detect inconsistencies in code style:

$ composer phpmd

Run all previous tests:

$ composer tests

? TODO

  • [ ] Add new feature.
  • [ ] Improve tests.
  • [ ] Improve documentation.
  • [ ] Refactor code for disabled code style rules. See phpmd.xml and .php_cs.dist.

Contribute

If you would like to help, please take a look at the list of issues or the To Do checklist.

Pull requests

  • Fork and clone.
  • Run the command `composer install` to install the dependencies. This will also install the dev dependencies.
  • Run the command `composer fix` to excute code standard fixers.
  • Run the tests.
  • Create a branch, commit, push and send me a pull request.

License

This project is licensed under MIT license. See the LICENSE file for more info.

Copyright

2017 - 2018 Josantonius, josantonius.com

If you find it useful, let me know :wink:

You can contact me on Twitter or through my email.


  Files folder image Files (44)  
File Role Description
Files folder imagebin (1 file)
Files folder imageconfig (5 files)
Files folder imagepublic (2 directories)
Files folder imageresources (2 files)
Files folder imagesrc (2 directories)
Files folder imagetests (3 files, 1 directory)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file CONDUCT.md Data Auxiliary data
Accessible without login Plain text file gulpfile.js Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpcs.xml Data Auxiliary data
Accessible without login Plain text file phpmd.xml Data Auxiliary data
Accessible without login Plain text file README-ES.md Doc. Documentation
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file wp-plugin-rating.jsond Data Auxiliary data

  Files folder image Files (44)  /  bin  
File Role Description
  Accessible without login Plain text file install-wp-tests.sh Data Auxiliary data

  Files folder image Files (44)  /  config  
File Role Description
  Accessible without login Plain text file add-urls.php Example Example script
  Accessible without login Plain text file assets.php Example Example script
  Accessible without login Plain text file namespaces.php Aux. Auxiliary script
  Accessible without login Plain text file paths.php Example Example script
  Accessible without login Plain text file set-hooks.php Example Example script

  Files folder image Files (44)  /  public  
File Role Description
Files folder imagecss (1 file, 1 directory)
Files folder imagesass (1 file)

  Files folder image Files (44)  /  public  /  css  
File Role Description
Files folder imagesource (2 files)
  Accessible without login Plain text file wp-plugin-rating.min.css Data Auxiliary data

  Files folder image Files (44)  /  public  /  css  /  source  
File Role Description
  Accessible without login Plain text file wp-plugin-rating.css Data Auxiliary data
  Accessible without login Plain text file wp-plugin-rating.css.map Data Auxiliary data

  Files folder image Files (44)  /  public  /  sass  
File Role Description
  Accessible without login Plain text file wp-plugin-rating.sass Data Auxiliary data

  Files folder image Files (44)  /  resources  
File Role Description
  Accessible without login Image file screenshot-1.png Data Auxiliary data
  Accessible without login Image file screenshot-2.png Data Auxiliary data

  Files folder image Files (44)  /  src  
File Role Description
Files folder imagecontroller (2 files)
Files folder imagetemplate (1 file)

  Files folder image Files (44)  /  src  /  controller  
File Role Description
  Plain text file class-launcher.php Class Class source
  Plain text file class-main.php Class Class source

  Files folder image Files (44)  /  src  /  template  
File Role Description
  Accessible without login Plain text file component.php Example Example script

  Files folder image Files (44)  /  tests  
File Role Description
Files folder imagesample-app (1 directory)
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script
  Plain text file class-back-end-test.php Class Class source
  Plain text file class-front-end-test.php Class Class source

  Files folder image Files (44)  /  tests  /  sample-app  
File Role Description
Files folder imagecomponents (1 file, 1 directory)

  Files folder image Files (44)  /  tests  /  sample-app  /  components  
File Role Description
Files folder imagewp-plugin-rating (1 file, 3 directories)
  Accessible without login Plain text file .components-states.jsond Data Auxiliary data

  Files folder image Files (44)  /  tests  /  sample-app  /  components  /  wp-plugin-rating  
File Role Description
Files folder imageconfig (5 files)
Files folder imagepublic (2 directories)
Files folder imagesrc (2 directories)
  Accessible without login Plain text file wp-plugin-rating.jsond Data Auxiliary data

  Files folder image Files (44)  /  tests  /  sample-app  /  components  /  wp-plugin-rating  /  config  
File Role Description
  Accessible without login Plain text file add-urls.php Example Example script
  Accessible without login Plain text file assets.php Example Example script
  Accessible without login Plain text file namespaces.php Aux. Auxiliary script
  Accessible without login Plain text file paths.php Example Example script
  Accessible without login Plain text file set-hooks.php Example Example script

  Files folder image Files (44)  /  tests  /  sample-app  /  components  /  wp-plugin-rating  /  public  
File Role Description
Files folder imagecss (1 file)
Files folder imagesass (2 files)

  Files folder image Files (44)  /  tests  /  sample-app  /  components  /  wp-plugin-rating  /  public  /  css  
File Role Description
  Accessible without login Plain text file wp-plugin-rating.css Data Auxiliary data

  Files folder image Files (44)  /  tests  /  sample-app  /  components  /  wp-plugin-rating  /  public  /  sass  
File Role Description
  Accessible without login Plain text file wp-plugin-rating.css.map Data Auxiliary data
  Accessible without login Plain text file wp-plugin-rating.sass Data Auxiliary data

  Files folder image Files (44)  /  tests  /  sample-app  /  components  /  wp-plugin-rating  /  src  
File Role Description
Files folder imagecontroller (2 files)
Files folder imagetemplate (1 file)

  Files folder image Files (44)  /  tests  /  sample-app  /  components  /  wp-plugin-rating  /  src  /  controller  
File Role Description
  Plain text file class-launcher.php Class Class source
  Plain text file class-main.php Class Class source

  Files folder image Files (44)  /  tests  /  sample-app  /  components  /  wp-plugin-rating  /  src  /  template  
File Role Description
  Accessible without login Plain text file component.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:45
This week:0
All time:10,795
This week:673Up