Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.78ms] Passed 4 tests
Server-side resources used by DIOT SCADA with MQTT
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.01 ▼2.64 |
Dashboard /wp-admin | 3.36 ▲0.01 | 52.04 ▼9.13 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.19 ▼5.62 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.16 ▼13.73 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.48 ▲0.18 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for DIOT SCADA with MQTT
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲135 | 13.61 ▼0.69 | 13.01 ▲11.34 | 42.42 ▼1.81 |
Dashboard /wp-admin | 2,213 ▲36 | 5.52 ▼0.10 | 87.91 ▼2.41 | 78.20 ▲37.68 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.14 ▲0.09 | 35.29 ▼2.65 | 33.90 ▼3.19 |
Add New Post /wp-admin/post-new.php | 1,553 ▲24 | 23.18 ▲5.63 | 735.26 ▲110.49 | 50.26 ▼4.81 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.19 ▼0.04 | 95.42 ▼12.41 | 85.14 ▲36.73 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ecava-diot-scada/menu/settings.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: scada, iot, control, automation, mqtt...
ecava-diot-scada/ecava_diot_scada.php 92% from 13 tests
The primary PHP file in "DIOT SCADA with MQTT" version 1.0.5.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ecava-diot-scada.php" instead of "ecava_diot_scada.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected4,748 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 927 | 1,034 | 4,321 |
PHP | 5 | 70 | 70 | 271 |
SVG | 1 | 1 | 1 | 156 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 1 | 33.33% |
▷ Public methods | 1 | 33.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 66.67% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.28MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 19.50KB | 8.05KB | ▼ 58.70% |
assets/icon-256x256.png | 12.99KB | 5.88KB | ▼ 54.71% |
assets/banner-1544x500.png | 167.25KB | 61.29KB | ▼ 63.35% |
assets/banner-772x250.png | 76.80KB | 28.52KB | ▼ 62.86% |
assets/icon-128x128.png | 6.32KB | 3.14KB | ▼ 50.28% |