84% uptime-robot

Code Review | Uptime Robot

WordPress plugin Uptime Robot scored84%from 54 tests.

About plugin

  • Plugin page: uptime-robot
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: May 28, 2013
  • Latest release: Nov 3, 2015
  • Number of updates: 15
  • Update frequency: every 75.9 days
  • Top authors: scottnelle (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /2,926 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.11MB] [CPU: ▼5.61ms] Passed 4 tests

An overview of server-side resources used by Uptime Robot
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.97 ▼0.4976.27 ▲34.13
Dashboard /wp-admin3.33 ▲0.0351.61 ▼5.83
Posts /wp-admin/edit.php3.38 ▲0.0248.32 ▼1.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.30 ▼15.16
Media Library /wp-admin/upload.php3.25 ▲0.0241.51 ▲0.13
Uptime Robot /wp-admin/options-general.php?page=uptimerobot3.2231.45

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Uptime Robot: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.39 ▼0.147.75 ▲6.1541.79 ▼0.01
Dashboard /wp-admin2,246 ▲755.84 ▲0.26103.41 ▲15.6443.82 ▲3.90
Posts /wp-admin/edit.php2,101 ▼22.01 ▲0.0634.82 ▲0.2229.97 ▼6.78
Add New Post /wp-admin/post-new.php1,529 ▲323.74 ▲0.88680.34 ▼19.0461.16 ▲8.74
Media Library /wp-admin/upload.php1,407 ▲134.27 ▲0.0494.00 ▼4.9546.83 ▲3.39
Uptime Robot /wp-admin/options-general.php?page=uptimerobot7942.0025.1730.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uptime-robot/uptimerobot.php:166

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: server, uptime, monitoring

uptime-robot/uptimerobot.php 92% from 13 tests

The main PHP script in "Uptime Robot" version 0.1.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("uptime-robot.php" instead of "uptimerobot.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected106 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12938106

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity15.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin