WebFacing – Disk Usage from cPanel® on Dashboard & in Site Health

Description

🕸️ By WebFacing. Shows disk usage information, recommendations and alerts in your admin Dashboard At a Glance widget and on Site Health panels. Also includes a Site Health test for HTTPS only (http should not be allowed, but forwarded to https) with information about the issue, recommendation and actions. Made with a little help from cPanel, L.L.C., USA and PRO ISP AS, Norway – many thanks.

This plugin adds the following:

Dashboard – At a Glance (widget)

  • One item showing used disk space (on a cPanel® controlled server only)
  • One line widget footer line mentioning the name of your web hosting provider, and maximum disk space for current plan/account (on PRO ISP only)

Tools – Site Health panel

Status (tab)

  • A disk space test with explaining text and possible actions (cPanel® only) with following result types and actions
    • Good (less than 90%)
    • Recommended (over 90%, but less than 95%)
    • Critical (over 95%)
  • A HTTPS only test with explaining text (with HTTPS enabled only), actions with link to a relevant guide (special guide in case PRO ISP), and with the following result types and actions
    • Good (http loopback requests are rejected)
    • Recommended fix (http loopback requests successful)

Info (tab)

  • A disk space section containing (cPanel® only)
    • Max disk space available
    • Total disk space used
      • Disk used by media files
      • Disk space used by mail
  • Adds one line to the WordPress Constant values section
    • WF_DEBUG

Translation ready, ready translations are

  • Norwegian (bokmål)

Debug and simulation setting

To simulate high disk space utilization, report fictional, random high results close to upper limit, add this line to your wp-config.php or in another plugin:
const WF_DEBUG = true;

Known limitations

  • The amoumt of used disk space reported will not include space taken by other databases than the site’s own WordPress database. The reported value may therefore be inaccurate or too low in some cases (accounts with more databases of any type).
  • This plugin will probably not report much if the site is not on a cPanel® managed server, but will do the test for HTTPS only.
  • This plugin was originally written for PHP 7.4 and later, and for WordPress 5.4.2 and later. It’s namespaced, has static classes and uses typed class properties. Now available for PHP 7.2, after removing typed properties in this wporg-version.

Screenshots

  • Dashboard - At a Glance
  • Site Health Test for allowing HTTPS only
  • Site Health Disk Space Test
  • Site Health Info section

FAQ

Does this plugin add database tables, store options or adding lines to ´wp-config.php´?

No, none.

Does it require my login information to cPanel®?

No.

Does it work on other web hosts than PRO ISP?

Yes, probably, but not tested yet. I would like you to report your experience. Use Reviews, Support or GitHub.

Does it work without cPanel®?

Somewhat, very limited. The ‘HTTPS only’ security test should work, and disk used info, but max space test will not be performed and the result will be ‘N/A’.

Can I contribute to this plugin?

Yes, visit it’s Github repo and create an issue, clone it and/or file a pull request.

Reviews

Read all 1 review

Contributors & Developers

“WebFacing – Disk Usage from cPanel® on Dashboard & in Site Health” is open source software. The following people have contributed to this plugin.

Contributors

“WebFacing – Disk Usage from cPanel® on Dashboard & in Site Health” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “WebFacing – Disk Usage from cPanel® on Dashboard & in Site Health” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.4.1

  • Spelling error for Pro Premium package.
  • Tested for WP 5.6
  • Some minor text changes in ´readme.txt´.
  • Some old code cleanup.

1.4

  • Added detection for Enterprise hosting packages at PRO ISP.

1.3

  • Get disk used also when not on cPanel®.

1.2

  • Switched to new quota command on cPanel® for disk space max & used. Thanks to @proisp for implementing it.

1.1

  • Cap check for showing cPanel® username in At a Glance.

1.0

  • Initial release, Sep 2020.