Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize reporting between wp doctor and Drupal Site Audit? #8

Closed
danielbachhuber opened this issue Jun 6, 2016 · 2 comments
Closed

Comments

@danielbachhuber
Copy link
Member

Drupal Site Audit is:

Site Audit is a Drupal static site analysis platform that generates reports with actionable best practice recommendations.

Every Drupal site is unique, with its own individual configuration, content, audience, and so forth. With that said, they all have the same core infrastructure and configuration; Drupal! Therefore, it's possible to perform performance and behavior gathering to inspect any site.

Site Audit uses a technique known as static program analysis. This mechanism does not actually perform requests on the target site, and in doing so avoids the observer effect. It's non-intrusive, so no installation into the target site or configuration is required.

The end result is a fast, repeatable report that can help detect common problems and provide introspection into Drupal sites. Reports can be generated in multiple formats, including plain text, HTML, and JSON.

wp doctor currently provides output like this:

wp doctor diagnose core-update
+-------------+--------+----------------------------------------------------------------------+
| name        | status | message                                                              |
+-------------+--------+----------------------------------------------------------------------+
| core-update | error  | Updating to WordPress' newest minor version is strongly recommended. |
+-------------+--------+----------------------------------------------------------------------+

Can we reach some form of common ground with Drupal Site Audit, such that a standalone application can more easily handle return data from wp doctor and Drupal Site Audit?

@stevector
Copy link

@fluxsauce, I see that work has started on Site Audit for Drupal 8. Is there room for collaborating here on output format? It would be helpful for the Pantheon dashboard to have commonality between the projects.

@fluxsauce
Copy link

@stevector there's actually a 1:1 Drupal 8 port (the 8.2.x branch). I'm working on a 8.3.x branch right now with the explicit goal of better abstraction of data formats and rendering.

The Pantheon dashboard uses the --json rendering option with site_audit, is it doing something similar with wp doctor?

This is what I'm using right now: https://github.com/fluxsauce/site_audit/blob/8.x-3.x/src/Renderer/Json.php

To directly answer your question, yes, absolutely, happy to collaborate. My preference would be to standardize on a common set of values / ranges and allow each to have their own outliers as needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants