89% better-uptime

Code Review | Better Uptime

WordPress plugin Better Uptime scored89%from 54 tests.

About plugin

  • Plugin page: better-uptime
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Feb 2, 2021
  • Latest release: Feb 4, 2021
  • Number of updates: 9
  • Update frequency: every 11.8 days
  • Top authors: simonbetteruptime (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /649 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Better Uptime
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.94 ▼8.60
Dashboard /wp-admin3.32 ▼0.0354.27 ▼14.95
Posts /wp-admin/edit.php3.37 ▲0.0149.19 ▼1.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.64 ▼22.25
Media Library /wp-admin/upload.php3.24 ▲0.0137.60 ▼0.67
Better Uptime monitoring /wp-admin/options-general.php?page=better-uptime3.2133.82

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Better Uptime: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.75 ▲0.112.03 ▲0.1338.53 ▼5.06
Dashboard /wp-admin2,199 ▲225.66 ▲0.1283.96 ▼9.0240.61 ▲1.93
Posts /wp-admin/edit.php2,104 ▲12.02 ▼0.0141.90 ▲1.7739.33 ▲4.42
Add New Post /wp-admin/post-new.php1,529 ▲323.45 ▼0.07664.87 ▼21.8753.79 ▼12.74
Media Library /wp-admin/upload.php1,404 ▲44.20 ▲0.09104.08 ▼11.0841.68 ▼6.47
Better Uptime monitoring /wp-admin/options-general.php?page=better-uptime8621.9925.7531.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: You can take inspiration from this readme.txt

better-uptime/better-uptime.php 92% from 13 tests

Analyzing the main PHP file in "Better Uptime" version 1.0.3
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171661

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin