78% wedos-online-monitoring

Code Review | WEDOS OnLine monitoring

WordPress plugin WEDOS OnLine monitoring scored 78% from 54 tests.

About plugin

  • Plugin page: wedos-online-moni...
  • Plugin version: 1.0.10
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: May 3, 2019
  • Latest release: Nov 16, 2022
  • Number of updates: 27
  • Update frequency: every 47.9 days
  • Top authors: pstast (66.67%)wedosonline (37.04%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 1,685 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.82ms] Passed 4 tests

This is a short check of server-side resources used by WEDOS OnLine monitoring
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0341.53 ▼5.15
Dashboard /wp-admin3.41 ▲0.1049.95 ▲0.30
Posts /wp-admin/edit.php3.52 ▲0.1647.41 ▼0.07
Add New Post /wp-admin/post-new.php6.02 ▲0.1386.50 ▼2.34
Media Library /wp-admin/upload.php3.33 ▲0.1037.37 ▲2.51

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WEDOS OnLine monitoring
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8713.26 ▼1.094.34 ▲1.7741.24 ▼5.88
Dashboard /wp-admin2,228 ▲406.01 ▲1.13100.46 ▼10.9638.28 ▼9.82
Posts /wp-admin/edit.php2,111 ▲222.45 ▲0.4434.37 ▼0.9832.57 ▼1.41
Add New Post /wp-admin/post-new.php1,533 ▼117.69 ▼5.56686.63 ▲16.2760.14 ▼4.03
Media Library /wp-admin/upload.php1,413 ▲254.31 ▲0.1495.58 ▼11.2641.49 ▼5.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 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)
Good news, no errors were detected

SRP 0% 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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wedos-online-monitoring/ping.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'PHPF\\WP\\Api\\Endpoint' not found in wp-content/plugins/wedos-online-monitoring/lib/ApiServer/ValidatePairToken.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'PHPF\\WP\\Api\\ApiClient' not found in wp-content/plugins/wedos-online-monitoring/lib/ApiClient/MonApiClient.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'PHPF\\WP\\Api\\Endpoint' not found in wp-content/plugins/wedos-online-monitoring/lib/ApiServer/Ping.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'PHPF\\WP\\Page\\Page' not found in wp-content/plugins/wedos-online-monitoring/lib/DashboardPage.php:13

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, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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:
  • Tags: The plugin tags were not defined
The official readme.txt might help

wedos-online-monitoring/wedos-online-monitoring.php Passed 13 tests

"WEDOS OnLine monitoring" version 1.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
110 characters long description:
WEDOS OnLine monitoring plugin. It allows you to link your website with WEDOS OnLine free monitoring solution.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin710 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP19256497694
CSS13016

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.73
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes15
▷ Abstract classes213.33%
▷ Concrete classes1386.67%
▷ Final classes215.38%
Methods56
▷ Static methods3358.93%
▷ Public methods3053.57%
▷ Protected methods1628.57%
▷ Private methods1017.86%
Functions8
▷ Named functions00.00%
▷ Anonymous functions8100.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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
No PNG files were detected