Index: src/wp-admin/includes/class-wp-site-health.php
===================================================================
--- src/wp-admin/includes/class-wp-site-health.php	(revision 49139)
+++ src/wp-admin/includes/class-wp-site-health.php	(working copy)
@@ -106,8 +106,8 @@
 		if ( 'site-health' === $screen->id && ! isset( $_GET['tab'] ) ) {
 			$tests = WP_Site_Health::get_tests();
 
-			// Don't run https test on localhost.
-			if ( 'localhost' === preg_replace( '|https?://|', '', get_site_url() ) ) {
+			// Don't run https test on development environments.
+			if ( $this->is_development_environment() ) {
 				unset( $tests['direct']['https_status'] );
 			}
 
@@ -1464,6 +1464,11 @@
 
 				$result['status'] = 'critical';
 
+				// On development environments, set the status to recommended
+				if ( $this->is_development_environment() ) {
+					$result['status'] = 'recommended';
+				}
+
 				$result['description'] .= sprintf(
 					'<p>%s</p>',
 					sprintf(
@@ -2519,8 +2524,8 @@
 			'critical'    => 0,
 		);
 
-		// Don't run https test on localhost.
-		if ( 'localhost' === preg_replace( '|https?://|', '', get_site_url() ) ) {
+		// Don't run https test on development environments.
+		if ( $this->is_development_environment() ) {
 			unset( $tests['direct']['https_status'] );
 		}
 
@@ -2595,4 +2600,19 @@
 
 		set_transient( 'health-check-site-status-result', wp_json_encode( $site_status ) );
 	}
+
+	/**
+	 * Check if we are in a development environment.
+	 *
+	 * Checks if the wp_get_environment_type function returns
+	 * development or local.
+	 *
+	 * @since 5.6.0
+	 *
+	 * @return bool True if it is a development environment, false if not.
+	 */
+	public function is_development_environment() {
+		return in_array( wp_get_environment_type(), array( 'development', 'local' ), true );
+	}
+
 }
