No description
  • CSS 90.7%
  • PHP 9%
  • JavaScript 0.3%
Find a file
2020-05-21 19:24:42 -03:00
classes Fix admin style must not be global, shortcode ajax for non-logged users 2020-05-21 19:24:42 -03:00
css Basic plugin structure, admin page styling 2020-05-20 10:50:43 -03:00
inc Add PublicAdmin::render_table() test 2020-05-20 18:53:03 -03:00
js Add PublicAdmin::render_table() test 2020-05-20 18:53:03 -03:00
partials Adjust timezone and add a decent README 2020-05-20 20:57:48 -03:00
tests Adjust timezone and add a decent README 2020-05-20 20:57:48 -03:00
.gitignore Add PublicAdmin::render_table() test 2020-05-20 18:53:03 -03:00
composer.json Add admin tests 2020-05-20 20:18:09 -03:00
composer.lock Add PublicAdmin::render_table() test 2020-05-20 18:53:03 -03:00
phpcs.xml.dist Implement the flow 2020-05-20 16:03:54 -03:00
phpunit.xml.dist Add PublicAdmin::render_table() test 2020-05-20 18:53:03 -03:00
README.md Fix admin style must not be global, shortcode ajax for non-logged users 2020-05-21 19:24:42 -03:00
README.txt Basic plugin structure, admin page styling 2020-05-20 10:50:43 -03:00
rgou-challenge.php Fix admin style must not be global, shortcode ajax for non-logged users 2020-05-21 19:24:42 -03:00

RGOU Challenge Crawler

A simple crawler to display some data as a table using a shortcode.

This is a Formidable Form Applicant Challenge.

Install

  1. Click to download version 1.0.1
  2. You can either:
  • Upoload and install via Add New button on the plugins page on your Wordpress site; or;
  • Unzip under wp-contents/plugins. But heads up: move the folder rgou-challenge-v1.0.1/rgou-challenge to wp-contents/plugins.
  1. Activate the plugin on the plugins page, or using WP-CLI if you have installed:
cd PATH_TO_YOUR_WORDPRESS_INSTALL/
wp plugin activate rgou-challenge

Using

Shortcode

You can place the shortcode [rgou-challenge] in posts or pages.

Admin area

On the menu there's a new item called RGOU Challenge Crawler. Once entered, if there's no previous data, it requests and caches.

The Refresh button forces a new request.

Reset via command line

The following command resets the cache. The next access - either using the shorcode or using the admin page - will make a new request.

wp rgou-challenge-reset

Tests and coding standards

To run tests with PHPUnit and check coding standards with PHP Code Sniffer using Wordpress standards, first install the depencies using Composer:

cd PATH_TO_YOUR_WORDPRESS_INSTALL/wp-contents/plugins/rgou-challenge
composer install

To run tests:

composer test

To validate coding standards:

composer phpcs

To auto-fix coding standards:

composer phpcs:fix