It's a plugin used for displaying users and their details from 3rd-party remote server.
The Composer must be installed in your system. Composer (version >= 2) is recommended.
- Clone this repository into plugins folder of your WordPress setup.
- Go to the terminal and set this plugin's path in the terminal. Run 'composer install'.
- Activate the plugin.
- Go to 'your-site-url/sud-users-table' in the browser, and in cases where the redirect does not work as expected, please flush rewrite rules.
We have used 3 composer packages.
- inpsyde/php-coding-standards: For maintaining plugin's coding standard
- For phpcs checks, you can use the command:
./vendor/bin/phpcs --standard="Inpsyde" --ignore=*/vendor/* --extensions=php <path of the project>/wp-content/plugins/simple-users-display/
ORcomposer run phpcs
- For phpcs checks, you can use the command:
- phpunit/phpunit: For generating php unit test cases.
- For unit test checks, you can use the command:
vendor/bin/phpunit
ORcomposer run tests
- For unit test checks, you can use the command:
- brain/monkey: Used for generating test cases specifically for WordPress related functions.
- We have used WordPress Transients API which offers a simple and standardized way of storing cached data in the database temporarily by giving it a custom name and a timeframe after which it will expire and be deleted.
- We have stored the users data coming from API in the cache for limited time. Hence the data will display from cache till transient expires.
- Plugin is consist of translation enabled strings. Hence the pot file has added in languages folder.
- Plugin is requesting bootstrap js and css files from its CDN server for achieving the drawer effect which displays the user details.
- It is having responsiveness.
- Compatible with php 8.1
This plugin under GPL v3 LICENSE