Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.68MB] [CPU: ▼18.35ms] Passed 4 tests
Server-side resources used by Observo Monitoring
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.52 ▼2.14 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.21 ▼2.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.11 ▼4.57 |
Add New Post /wp-admin/post-new.php | 3.13 ▼2.76 | 36.15 ▼64.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.05 ▼0.67 |
Server storage [IO: ▲3.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 851 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
observo_sysinfo_code |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Observo Monitoring
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.14 ▼1.23 | 1.67 ▼0.29 | 43.32 ▼0.01 |
Dashboard /wp-admin | 2,203 ▲14 | 5.79 ▲0.84 | 97.26 ▼11.46 | 36.47 ▼3.68 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▼0.00 | 34.42 ▼0.56 | 34.78 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 23.28 ▲4.95 | 596.84 ▼35.81 | 47.63 ▼15.37 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▲0.01 | 92.45 ▼11.55 | 39.70 ▼7.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- observo_sysinfo_code
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
The following issues need your attention
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/observo-monitoring/phpsysinfo_904159/language/language.php
- > /wp-content/plugins/observo-monitoring/phpsysinfo_904159/read_config.php
- > /wp-content/plugins/observo-monitoring/phpsysinfo_904159/index.php
- > /wp-content/plugins/observo-monitoring/phpsysinfo_904159/tools/distrotest.php
- > /wp-content/plugins/observo-monitoring/phpsysinfo_904159/tools/checkdistro.php
- > /wp-content/plugins/observo-monitoring/phpsysinfo_904159/tools/cputest.php
- > /wp-content/plugins/observo-monitoring/phpsysinfo_904159/tools/checkpng.php
- > /wp-content/plugins/observo-monitoring/phpsysinfo_904159/xml.php
- 61× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Sensors' not found in wp-content/plugins/observo-monitoring/phpsysinfo_904159/includes/mb/class.ipmitool.inc.php:15
- > PHP Fatal error
Uncaught Error: Class 'Sensors' not found in wp-content/plugins/observo-monitoring/phpsysinfo_904159/includes/mb/class.healthd.inc.php:15
- > PHP Fatal error
Uncaught Error: Class 'UPS' not found in wp-content/plugins/observo-monitoring/phpsysinfo_904159/includes/ups/class.apcupsd.inc.php:27
- > PHP Fatal error
Uncaught Error: Class 'Sensors' not found in wp-content/plugins/observo-monitoring/phpsysinfo_904159/includes/mb/class.ipmiutil.inc.php:15
- > PHP Fatal error
Uncaught Error: Class 'OS' not found in wp-content/plugins/observo-monitoring/phpsysinfo_904159/includes/os/class.Haiku.inc.php:27
- > PHP Fatal error
Uncaught Error: Class 'OS' not found in wp-content/plugins/observo-monitoring/phpsysinfo_904159/includes/os/class.QNX.inc.php:27
- > PHP Fatal error
Uncaught Error: Class 'UPS' not found in wp-content/plugins/observo-monitoring/phpsysinfo_904159/includes/ups/class.snmpups.inc.php:27
- > PHP Fatal error
Uncaught Error: Class 'Hwmon' not found in wp-content/plugins/observo-monitoring/phpsysinfo_904159/includes/mb/class.thinkpad.inc.php:15
- > PHP Fatal error
Uncaught Error: Class 'OS' not found in wp-content/plugins/observo-monitoring/phpsysinfo_904159/includes/os/class.BSDCommon.inc.php:28
- > PHP Fatal error
Uncaught Error: Class 'BSDCommon' not found in wp-content/plugins/observo-monitoring/phpsysinfo_904159/includes/os/class.OpenBSD.inc.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
2 plugin tags: monitoring, server
observo-monitoring/observo-monitoring.php 92% from 13 tests
"Observo Monitoring" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please fix the following items
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/observo-monitoring/phpsysinfo_904159/tools/lint.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 46 | 4,162 | 5,747 | 21,957 |
XML | 123 | 1 | 478 | 17,124 |
PHP | 92 | 1,306 | 7,316 | 15,474 |
CSS | 35 | 542 | 78 | 3,783 |
INI | 7 | 381 | 885 | 1,824 |
XSLT | 1 | 0 | 1 | 1,408 |
HTML | 18 | 27 | 51 | 1,119 |
Markdown | 6 | 205 | 0 | 542 |
XSD | 3 | 37 | 2 | 502 |
Bourne Shell | 2 | 10 | 6 | 31 |
YAML | 1 | 4 | 0 | 30 |
JSON | 1 | 0 | 0 | 19 |
Dockerfile | 1 | 8 | 7 | 13 |
DOS Batch | 1 | 0 | 0 | 10 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 156)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.71 |
Average class complexity | 53.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 644.00 |
Average method complexity | 7.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 156.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 81 | |
▷ Abstract classes | 6 | 7.41% |
▷ Concrete classes | 75 | 92.59% |
▷ Final classes | 0 | 0.00% |
Methods | 676 | |
▷ Static methods | 29 | 4.29% |
▷ Public methods | 370 | 54.73% |
▷ Protected methods | 75 | 11.09% |
▷ Private methods | 231 | 34.17% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 55 | |
▷ Global constants | 45 | 81.82% |
▷ Class constants | 10 | 18.18% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
152 PNG files occupy 0.26MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
phpsysinfo_904159/gfx/images/WinXP.png | 2.45KB | 1.67KB | ▼ 32.05% |
phpsysinfo_904159/gfx/images/EasyOS.png | 1.72KB | 1.64KB | ▼ 4.66% |
phpsysinfo_904159/gfx/images/Salix.png | 0.79KB | 0.56KB | ▼ 28.84% |
phpsysinfo_904159/gfx/images/Darwin.png | 1.11KB | 0.75KB | ▼ 32.22% |
phpsysinfo_904159/gfx/images/Peppermint.png | 2.00KB | 1.76KB | ▼ 11.88% |