10% dh-site-vital-monitoring

Code Review | Site Vital Monitoring by DREAMHIVE

WordPress plugin Site Vital Monitoring by DREAMHIVE scored10%from 54 tests.

About plugin

  • Plugin page: dh-site-vital-mon...
  • Plugin version: 0.2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.2
  • WordPress version: 6.3.1
  • First release: Jul 29, 2018
  • Latest release: Jan 11, 2019
  • Number of updates: 3
  • Update frequency: every 56.7 days
  • Top authors: kryu2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /593 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.93MB] [CPU: ▼55.56ms] Passed 4 tests

An overview of server-side resources used by Site Vital Monitoring by DREAMHIVE
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.51 ▼35.18
Dashboard /wp-admin2.07 ▼1.236.58 ▼44.25
Posts /wp-admin/edit.php2.07 ▼1.286.10 ▼44.17
Add New Post /wp-admin/post-new.php2.07 ▼3.815.22 ▼98.65
Media Library /wp-admin/upload.php2.07 ▼1.155.82 ▼30.35

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Site Vital Monitoring by DREAMHIVE
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.14 ▼0.221.70 ▲0.2338.25 ▼5.13
Dashboard /wp-admin2,195 ▲155.56 ▼0.0884.18 ▼6.8638.77 ▼5.17
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0434.88 ▼0.1836.50 ▲1.00
Add New Post /wp-admin/post-new.php1,526 ▼022.95 ▼0.12592.44 ▼93.3145.40 ▼11.75
Media Library /wp-admin/upload.php1,394 ▼94.08 ▼0.13103.33 ▲2.1742.27 ▼1.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: monitoring, logging

dh-site-vital-monitoring/dh-site-vital-monitoring.php Passed 13 tests

The entry point to "Site Vital Monitoring by DREAMHIVE" version 0.2.0 is a PHP file that has certain tags in its header comment area
60 characters long description:
Site Vital Monitoring can monitoring your site vital easily.

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
No dangerous file extensions were detected43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121943

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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