[wp-trac] [WordPress Trac] #46573: Introduce a Site Health module for users to self-service their site

WordPress Trac noreply at wordpress.org
Fri Mar 22 06:08:59 UTC 2019


#46573: Introduce a Site Health module for users to self-service their site
---------------------------------------+-----------------------
 Reporter:  Clorith                    |       Owner:  pento
     Type:  enhancement                |      Status:  assigned
 Priority:  normal                     |   Milestone:  5.2
Component:  General                    |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  has-patch has-screenshots  |     Focuses:
---------------------------------------+-----------------------

Comment (by pento):

 In [attachment:"46573.diff"]:

 - Design improvements from @melchoyce.
 - A multitude of string tweaks.
 - Proper docblocks everywhere.
 - Removed the magic from `WP_Site_Health_Auto_Updates::run_tests()`. (I
 definitely used an anonymous function, because we don't have to care about
 PHP 5.2 anymore.)
 - Combined the constant checks in `WP_Site_Health_Auto_Updates` into one
 method.
 - Altered `WP_Site_Health::get_test_php_version()` to use
 `wp_check_php_version()`, and generally simplified it.
 - Removed `WP_Site_Health::json_wordpress_version()`.
 - Simplified `WP_Site_Health::child_test_php_extension_availability()`.
 - Switched the `manage_options` permission checks to `install_plugins`, to
 more accurately reflect whether a user is capable of finding out this
 information independently.
 - Changed the issue template to use `wp.template()`.
 - Moved the menu item to Tools.

 Things still to be done, but I think they can all wait until after beta 1.

 - HTTPS check shouldn't run for localhost, for which an SSL cert can't be
 generated.
 - REST API failure due to loopback request failing is a weird error
 message.
 - The debug tab is really slow to load.
 - Test how `WP_Debug_Data::get_directory_size()` deals with recursive
 symlinks.
 - `WP_Debug_Data::get_database_size()` should differentiate between the
 WordPress database, and all databases on the server.
 - From MySQL 5.7, you can get more accurate InnoDB table sizes from
 `INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES`:
 https://dev.mysql.com/doc/refman/5.7/en/innodb-sys-tablespaces-table.html
 - The values of `WP_CONTENT_DIR`, `WP_PLUGIN_DIR`,
 `$upload_dir['basedir']`, and `get_template_directory()` should be shown.
 - `show_count` behaviour needs to be better translatable. Drop-ins should
 show the count, too.
 - Needs better responsive styling.
 - `WP_Site_Health::get_test_dotorg_communication()` should talk to
 api.wordpress.org.
 - Convert all of the actions to buttons. (eg,
 `WP_Site_Health::get_test_php_version()`)
 - Add actions for all tests, so site owners can do something with the
 information.
 - The documentation link in `WP_Site_Health::get_test_https_status()`
 should go to a wordpress.org page, or perhaps letsencrypt. Not Cloudflare.
 - All text needs reviewing.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46573#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list