68% website-monitoring

Code Review | Super Monitoring

WordPress plugin Super Monitoring scored68%from 54 tests.

About plugin

  • Plugin page: website-monitoring
  • Plugin version: 2.97
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.2
  • WordPress version: 6.3.1
  • First release: Mar 28, 2010
  • Latest release: Mar 30, 2023
  • Number of updates: 65
  • Update frequency: every 76.1 days
  • Top authors: siteimpulse (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

60+ active /4,464 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼33.61ms] Passed 4 tests

A check of server-side resources used by Super Monitoring
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.47 ▼0.30
Dashboard /wp-admin3.01 ▼0.2922.86 ▼30.18
Posts /wp-admin/edit.php3.02 ▼0.3424.46 ▼25.46
Add New Post /wp-admin/post-new.php3.01 ▼2.8729.17 ▼65.72
Media Library /wp-admin/upload.php3.01 ▼0.2121.52 ▼13.07
Super Monitoring /wp-admin/options-general.php?page=website-monitoring/supermonitoring.php3.0224.86

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
monitoringst
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Super Monitoring
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.35 ▼0.051.90 ▲0.0944.26 ▲4.37
Dashboard /wp-admin2,210 ▲335.62 ▼0.0491.26 ▼3.4441.28 ▲0.57
Posts /wp-admin/edit.php2,112 ▲122.04 ▲0.0642.32 ▲0.9235.96 ▼2.31
Add New Post /wp-admin/post-new.php1,537 ▲923.24 ▲0.51608.20 ▲1.9159.13 ▲14.41
Media Library /wp-admin/upload.php1,415 ▲124.23 ▲0.0299.56 ▼4.0542.97 ▲0.38
Super Monitoring /wp-admin/options-general.php?page=website-monitoring/supermonitoring.php7682.0026.6424.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=website-monitoring/supermonitoring.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=website-monitoring/supermonitoring.php
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'settingsPage' not found or invalid function name

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/website-monitoring/supermonitoring.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
These attributes need to be fixed: The official readme.txt is a good inspiration

website-monitoring/supermonitoring.php 92% from 13 tests

This is the main PHP file of "Super Monitoring" version 2.97, 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 ("website-monitoring.php" instead of "supermonitoring.php")

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 detected419 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File36021272
PHP15413147

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected