90% wp-disable-site-health

Code Review | WP Disable Site Health

WordPress plugin WP Disable Site Health scored90%from 54 tests.

About plugin

  • Plugin page: wp-disable-site-h...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2
  • WordPress version: 6.3.1
  • First release: Jun 13, 2019
  • Latest release: Jun 13, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: eastsidecode (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /2,192 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼13.72ms] Passed 4 tests

Server-side resources used by WP Disable Site Health
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.76 ▼2.39
Dashboard /wp-admin3.31 ▼0.0348.50 ▼23.60
Posts /wp-admin/edit.php3.36 ▲0.0150.02 ▼0.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.58 ▼24.56
Media Library /wp-admin/upload.php3.23 ▲0.0135.04 ▼4.34

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Disable Site Health
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,782 ▲1114.53 ▲0.181.70 ▼0.5743.59 ▼4.20
Dashboard /wp-admin2,191 ▲145.66 ▼0.0091.52 ▼7.7540.74 ▼3.32
Posts /wp-admin/edit.php2,093 ▼42.00 ▲0.0240.10 ▲3.7135.40 ▲3.46
Add New Post /wp-admin/post-new.php1,530 ▲423.10 ▲0.03625.41 ▼61.8055.19 ▼1.65
Media Library /wp-admin/upload.php1,396 ▼44.19 ▼0.1797.55 ▼6.2245.15 ▼1.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: disable site health screen, security

wp-disable-site-health/index.php 92% from 13 tests

The main PHP file in "WP Disable Site Health" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-disable-site-health.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1211216

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin