Fixing WordPress Site Health Critical Issues
I've successfully resolved "2 critical issues" on my site.

■ First, the second issue: "Your site is set to display errors to visitors"
I had left debugging enabled after troubleshooting an issue that came up. Apparently, this is a bad idea for security reasons. Note to self: always remember to revert this setting as soon as debugging is finished next time.
The option is defined in the following file located in the WordPress directory, so I need to update it.
/var/www/html/wp-config.php
Change details
define( 'WP_DEBUG', false );
■ Now for the first issue: "One or more required modules are missing"
There are plenty of warnings including "recommended" ones, but let's start by fixing the "required" ones first.
The missing module is 'gd', which stands for Graphic Draw—apparently an image processing library. While I haven't really had any issues without it so far, I suppose it's needed for processing images directly within WordPress. I'll go ahead and install it.
The site I referenced suggested matching the module to the PHP version, so let's check the current PHP version.
:/var/www/html$ php -v
PHP 7.4.3 (cli) (built: Mar 2 2022 15:36:52) ( NTS )
~ Omitted below ~
I installed it using the command below. I figured the installer would automatically select the matching version, so I didn't bother manually verifying or checking it.
:/var/www/html$ sudo apt install php7.4-gd
Restart Apache.
:/var/www/html$ sudo systemctl restart apache2
Reloading the WordPress page in the browser confirmed that the error regarding required modules was gone.

■ Addressing "One or more recommended modules are missing"
It feels much better without any errors, and since hidden issues are hard to spot and the performance impact should be minimal, I decided to clean them up too.
Basically, it's just a matter of installing the recommended modules. However, you need to install php-curl rather than the command-line curl tool, for instance. I initially got stuck because installing the command-line version didn't resolve the issue.
$ sudo apt install php-curl
The others followed the same pattern: php-dom, php-imagick, php-zip—all starting with "php-". I skipped specifying version numbers since it's a hassle and I figured the system would handle it automatically.
As a result, all module-related warnings have been completely resolved.
■ Other "Recommended Improvements"
The remaining items are minor details. I won't go into detail here, but I knocked out most of them with a few clicks, except for "Your site is not using HTTPS." Since I've done that before and know it can be a pain, I'll tackle it another time and write a separate blog post about it.

