10% wp-server-uptime-bot

Code Review | WP Server Uptime Bot by Themeqx.com

WordPress plugin WP Server Uptime Bot by Themeqx.com scored10%from 54 tests.

About plugin

  • Plugin page: wp-server-uptime-bot
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Apr 30, 2017
  • Latest release: Apr 30, 2017
  • Number of updates: 3
  • Update frequency: every 32.3 days
  • Top authors: themeqx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /432 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method THEMEQX_WPSUB_BASE::themeqx_wpsub_initial_setup() should not be called statically

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.69ms] Passed 4 tests

An overview of server-side resources used by WP Server Uptime Bot by Themeqx.com
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.07 ▼4.26
Dashboard /wp-admin3.32 ▲0.0246.35 ▼3.41
Posts /wp-admin/edit.php3.44 ▲0.0845.86 ▼4.02
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.11 ▼3.07
Media Library /wp-admin/upload.php3.25 ▲0.0240.65 ▲4.51

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 2 new tables, 7 new options
New tables
wp_wpsub_lookup_status
wp_wpsub_lookup_item
New WordPress options
db_upgraded
themeqx_wpsub_version
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Server Uptime Bot by Themeqx.com
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲11013.22 ▼0.955.10 ▲3.1740.01 ▼2.83
Dashboard /wp-admin2,226 ▲355.81 ▲0.9195.93 ▼2.3936.35 ▼7.47
Posts /wp-admin/edit.php2,112 ▲232.02 ▲0.0235.33 ▼3.6732.96 ▼3.21
Add New Post /wp-admin/post-new.php1,531 ▲1223.41 ▲0.21680.48 ▲54.9650.55 ▼5.27
Media Library /wp-admin/upload.php1,408 ▲264.25 ▲0.06100.64 ▲6.8545.35 ▲4.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method THEMEQX_WPSUB_BASE::themeqx_wpsub_deactivation() should not be called statically
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_wpsub_lookup_status
    • wp_wpsub_lookup_item
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • themeqx_wpsub_version
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-server-uptime-bot/view/themeqx_ajax_lookup_items.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-server-uptime-bot/view/emails/themeqx_wpsub_email_server_down.php:14
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-server-uptime-bot/view/themeqx_wpsub_admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-server-uptime-bot/view/emails/themeqx_wpsub_email_server_up.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-server-uptime-bot/wp-server-uptime-bot.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-server-uptime-bot/wp-server-uptime-bot.php 85% from 13 tests

This is the main PHP file of "WP Server Uptime Bot by Themeqx.com" version 1.0, 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:
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)

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
Good job! No executable or dangerous file extensions detected648 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8144116539
CSS10066
JavaScript18343

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.00
▷ Minimum class complexity2.00
▷ Maximum class complexity12.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods317.65%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin