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
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼283.44ms] Passed 4 tests
Server-side resources used by Uptime Robot
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 36.93 ▲17.12 |
Dashboard /wp-admin | 3.08 ▲0.03 | 37.97 ▼8.36 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 41.76 ▼3.93 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 84.44 ▼1,118.30 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 35.16 ▼3.15 |
Uptime Robot /wp-admin/options-general.php?page=uptime-robot | 3.00 | 31.35 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_uptime_robot_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Uptime Robot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,774 ▲169 | 15.97 ▲0.46 | 7.69 ▼1.08 | 50.88 ▲4.32 |
Dashboard /wp-admin | 3,053 ▲200 | 5.96 ▲0.13 | 132.70 ▼4.31 | 102.69 ▼3.23 |
Posts /wp-admin/edit.php | 2,713 ▲7 | 2.69 ▼0.13 | 61.39 ▼2.17 | 92.17 ▲11.71 |
Add New Post /wp-admin/post-new.php | 1,658 ▼195 | 18.68 ▼0.25 | 332.27 ▼29.44 | 105.51 ▼1.91 |
Media Library /wp-admin/upload.php | 1,779 ▲10 | 5.02 ▲0.02 | 140.68 ▼14.84 | 106.44 ▼8.63 |
Uptime Robot /wp-admin/options-general.php?page=uptime-robot | 1,024 | 2.08 | 51.79 | 61.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_uptime_robot_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=uptime-robot
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=uptime-robot
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/uptime-robot-by-utopian-themes/classes/class-widget.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: monitoring, uptime robot, dashboard, widget
uptime-robot-by-utopian-themes/uptime-robot.php 85% from 13 tests
The main file in "Uptime Robot" v. 1.5.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("uptime-robot-by-utopian-themes.php" instead of "uptime-robot.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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
Everything looks great! No dangerous files found in this plugin799 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 50 | 275 | 457 |
CSS | 2 | 0 | 5 | 142 |
PO File | 1 | 35 | 35 | 101 |
Markdown | 1 | 42 | 0 | 99 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 7 | 21.88% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/down.png | 0.68KB | 0.72KB | 0.00% |
assets/images/up.png | 0.76KB | 0.81KB | 0.00% |
assets/images/unknown.png | 0.77KB | 0.82KB | 0.00% |
assets/images/unchecked.png | 0.69KB | 0.71KB | 0.00% |
assets/images/paused.png | 0.58KB | 0.62KB | 0.00% |