78% powies-uptime-robot

Code Review | Powie's Uptime Robot Plugin

WordPress plugin Powie's Uptime Robot Plugin scored78%from 54 tests.

About plugin

  • Plugin page: powies-uptime-robot
  • Plugin version: 0.9.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Mar 5, 2014
  • Latest release: Dec 7, 2019
  • Number of updates: 26
  • Update frequency: every 80.9 days
  • Top authors: PowieT (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

900+ active /10,638 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▲2.54ms] Passed 4 tests

A check of server-side resources used by Powie's Uptime Robot Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.76 ▲4.98
Dashboard /wp-admin3.35 ▲0.0445.86 ▲2.52
Posts /wp-admin/edit.php3.40 ▲0.0443.94 ▲2.47
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.16 ▲3.86
Media Library /wp-admin/upload.php3.27 ▲0.0433.11 ▲1.29
Uptime Robot Setup /wp-admin/options-general.php?page=powies-uptime-robot/pum_settings.php3.2432.53

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_pum-status-cloud
can_compress_scripts
postfield-legend
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Powie's Uptime Robot Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.33 ▼0.031.77 ▲0.2443.71 ▼5.33
Dashboard /wp-admin2,202 ▲305.56 ▼0.0281.68 ▼22.7147.69 ▲10.30
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0835.96 ▲1.5734.04 ▲0.52
Add New Post /wp-admin/post-new.php1,529 ▲123.35 ▲0.31613.73 ▼85.6857.07 ▼5.36
Media Library /wp-admin/upload.php1,401 ▲14.18 ▼0.01101.53 ▲1.0343.27 ▼3.23
Uptime Robot Setup /wp-admin/options-general.php?page=powies-uptime-robot/pum_settings.php1,1035.54143.9041.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_pum-status-cloud
    • can_compress_scripts
    • postfield-legend
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/powies-uptime-robot/status-cloud-widget.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/powies-uptime-robot/pum.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/powies-uptime-robot/pum_settings.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=powies-uptime-robot/pum_settings.php
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: widget, server monitoring, shortcode, uptime robot

powies-uptime-robot/pum.php 92% from 13 tests

This is the main PHP file of "Powie's Uptime Robot Plugin" version 0.9.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("powies-uptime-robot.php" instead of "pum.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
There were no executable files found in this plugin398 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP33251238
PO File280144152
CSS1218

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin