83% my-website-is-online-uptime-monitoring

Code Review | Uptime Monitoring for WordPress - My Website is Online

WordPress plugin Uptime Monitoring for WordPress - My Website is Online scored83%from 54 tests.

About plugin

  • Plugin page: my-website-is-onl...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jan 10, 2022
  • Latest release: Jul 27, 2023
  • Number of updates: 9
  • Update frequency: every 62.6 days
  • Top authors: santerref (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /4,035 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.74ms] Passed 4 tests

Analyzing server-side resources used by Uptime Monitoring for WordPress - My Website is Online
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.48 ▲3.48
Dashboard /wp-admin3.31 ▲0.0144.37 ▼0.83
Posts /wp-admin/edit.php3.36 ▲0.0146.15 ▲1.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.82 ▼10.68
Media Library /wp-admin/upload.php3.24 ▲0.0134.73 ▼0.47

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Uptime Monitoring for WordPress - My Website is Online: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲10013.24 ▼1.141.69 ▼0.0743.34 ▼2.51
Dashboard /wp-admin2,238 ▲504.85 ▼1.02112.31 ▼6.3538.85 ▼0.49
Posts /wp-admin/edit.php2,127 ▲382.00 ▼0.0338.43 ▼1.0135.20 ▲0.89
Add New Post /wp-admin/post-new.php1,546 ▲2723.31 ▲0.27579.46 ▼2.1961.21 ▲12.64
Media Library /wp-admin/upload.php1,427 ▲394.17 ▼0.0294.77 ▼6.3843.01 ▲0.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/my-website-is-online-uptime-monitoring/mwio-uptime.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (17 tag instead of maximum 10)
You can look at the official readme.txt

my-website-is-online-uptime-monitoring/mwio-uptime.php 85% from 13 tests

The main PHP script in "Uptime Monitoring for WordPress - My Website is Online" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("my-website-is-online-uptime-monitoring.php" instead of "mwio-uptime.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin84 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1181079
SVG1005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin