GithubHelp home page GithubHelp logo

diffywebsite / wordpress-diffy Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 3.0 3.85 MB

Plugin to integrate Diffy with Wordpress

License: GNU General Public License v2.0

PHP 77.21% JavaScript 21.52% Dockerfile 1.27%

wordpress-diffy's Introduction

=== Diffy Visual Regression Testing ===
Contributors: ygerasimov
Tags: visual regression testing, updates verification, automated testing
Requires at least: 4.8
Tested up to: 6.1.1
Requires PHP: 7.1
Stable tag: 0.9.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Development: https://github.com/DiffyWebsite/wordpress-diffy

Diffy helps to verify plugin updates by taking screenshots of your site before and after update and comparing them.

Ideally you expect zero changes after running updates.

== Set up instructions ==

You need to have active Diffy (https://diffy.website) account in order to use this plugin. Plugin will also allow you to create an account and project for your site with one click.

Diffy provides 2 weeks trial to cover up to 100 pages of your site.

Your site should be publicly available. Diffy runs workers from AWS infrastructure by using single IP address 3.216.56.216. Whitelist it if needed.

Once you registered an account, please create a project. You need to specify your site's URL as Production environment. Add your site's URLs to the project. Diffy can parse sitemaps if you like. Meanwhile you will want to have just key pages covered by visual regression testing and not every page of your site.

After setting up the project, generate API key under My Account -> Keys.

Enter project id and API Key to Diffy's plugin settings page and you should be good to go.

== How it works? ==

During plugins update process plugin will call Diffy via API to create set of screenshots before the update. Expect that it will make update process longer.

After screenshots are ready update process will continue. Once updates are completed plugin will call Diffy once again to create second set of screenshots and compare them with your "before" version.

You will receive an email notifications about screenshots and diffs being completed.

Review the report and ensure that nothing got broken.

== Screenshots ==

1. Diffy embeds to the process of updating plugin. Creates screenshots before updates applied.
2. Diffy creates screenshots after update, compares with "before" version.
3. You can see that Diffy found changes right away and can check the report.
4. Report has thumbnails view.
5. Full view of reviewing single difference.

== Support ==

Welcome to reach out to Diffy's team via Intercom or by email [email protected].

== Changelog ==

1.9.4 Separate link to update plugins with Diffy testing.

wordpress-diffy's People

Contributors

ygerasimov avatar gregurco avatar karmeljuk avatar

Stargazers

reneyap avatar Rikhen avatar Sebastian Moran avatar Luke Cavanagh avatar

Watchers

 avatar James Cloos avatar  avatar

wordpress-diffy's Issues

"Updates completed" information under each plugin

Problem: After updating plugin the "Updates completed..." information appears under each plugin without updating in the list

Screenshot 2020-10-09 at 12 13 45

ToDo: "Updates completed..." information should be under the already updated plugin only

project id was string instead of integer

[Fri Mar 12 02:12:40.751718 2021] [php7:error] [pid 49] [client ] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Diffy\Project::get() must be of the type int, string given, called in /var/www/html/site/public_html/wp-content/plugins/diffy/admin/class-wordpress-diffy-admin.php on line 267 and defined in /var/www/html/site/public_html/wp-content/plugins/diffy/vendor/diffywebsite/diffy-php/src/Project.php:71\nStack trace:\n#0 /var/www/html/site/public_html/wp-content/plugins/diffy/admin/class-wordpress-diffy-admin.php(267): Diffy\Project::get('Thatsmarketing')\n#1 /var/www/html/site/public_html/wp-includes/class-wp-hook.php(289): Diffy_Admin->diffy_validate_project_id_callback('Thatsmarketing')\n#2 /var/www/html/site/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters('Thatsmarketing', Array)\n#3 /var/www/html/site/public_html/wp-includes/formatting.php(4906): apply_filters('sanitize_option...', 'Thatsmarketing', 'diffy_project_i...', 'Thatsmarketing')\n#4 /var/www/html/site/public_html/wp-includes/option.php(369): sanitize_option('diffy_project_i...', 'Thatsmarketing')\n#5 /va in /var/www/html/site/public_html/wp-content/plugins/diffy/vendor/diffywebsite/diffy-php/src/Project.php on line 71, referer: https://beta-thatsmarketing.e.wpstage.net/wp-admin/admin.php?page=wordpress-diffy

Redirect to the welcome page after plugin activating

Problem: after installing and activating hard to find Diffy menu item in the wp-admin, especially for people who have dozens of plugins

Solution: add a simple arrow to the menu or welcome page after plugin activating. Jetpack as an example

Screenshot 2020-10-20 at 09 34 39

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.