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.90MB] [CPU: ▼4.78ms] Passed 4 tests
A check of server-side resources used by WP Shelly
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.77 | 49.77 ▲7.23 |
Dashboard /wp-admin | 4.25 ▲0.91 | 56.46 ▼9.02 |
Posts /wp-admin/edit.php | 4.33 ▲0.98 | 56.73 ▲2.52 |
Add New Post /wp-admin/post-new.php | 6.85 ▲0.97 | 96.06 ▼19.86 |
Media Library /wp-admin/upload.php | 4.18 ▲0.95 | 51.02 ▲11.32 |
Devices /wp-admin/admin.php?page=sos-shelly-0 | 4.37 | 43.64 |
sos-shelly-1 /wp-admin/admin.php?page=sos-shelly-1 | 4.37 | 46.81 |
Settings /wp-admin/admin.php?page=sos-shelly-2 | 4.35 | 41.74 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 92 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_sos_shy_devices |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
sos-shelly_db-version |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Shelly
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.64 ▲0.02 | 1.94 ▲0.22 | 44.59 ▲3.43 |
Dashboard /wp-admin | 2,223 ▲49 | 5.48 ▼0.05 | 86.81 ▲1.09 | 38.09 ▼6.16 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.96 ▲0.02 | 36.96 ▼1.50 | 34.50 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,567 ▲31 | 18.13 ▲0.01 | 694.38 ▲3.21 | 71.79 ▼16.88 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.23 ▼0.05 | 95.80 ▼14.23 | 45.91 ▼4.57 |
Devices /wp-admin/admin.php?page=sos-shelly-0 | 843 | 2.05 | 29.17 | 25.80 |
sos-shelly-1 /wp-admin/admin.php?page=sos-shelly-1 | 1,023 | 2.00 | 21.85 | 45.67 |
Settings /wp-admin/admin.php?page=sos-shelly-2 | 823 | 2.00 | 29.84 | 26.93 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_sos_shy_devices
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- sos-shelly_db-version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 53× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/wp-shelly/sos/wp/data/db.php
- > /wp-content/plugins/wp-shelly/sos/wp/data/encryption.php
- > /wp-content/plugins/wp-shelly/sos/wp/data/mbfield.php
- > /wp-content/plugins/wp-shelly/sos/wp/asset.php
- > /wp-content/plugins/wp-shelly/db/device.php
- > /wp-content/plugins/wp-shelly/form/base.php
- > /wp-content/plugins/wp-shelly/sos/wp/email.php
- > /wp-content/plugins/wp-shelly/sos/wp/style.php
- > /wp-content/plugins/wp-shelly/sos/wp/elementor/section.php
- > /wp-content/plugins/wp-shelly/sos/wp/data/form.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_SHELLY\\SosPlugin' not found in wp-content/plugins/wp-shelly/admin/config.php:2
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_SHELLY\\SosPlugin' not found in wp-content/plugins/wp-shelly/admin/edit.php:4
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_SHELLY\\SosPlugin' not found in wp-content/plugins/wp-shelly/admin/list.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: shelly cloud, shelly relay, iot device, shelly, shelly cloud api
wp-shelly/wp-shelly.php Passed 13 tests
The principal PHP file in "WP Shelly" v. 2.0.0 is loaded by WordPress automatically on each request
78 characters long description:
Turns on/off your IoT devices via Shelly cloud API. Compatible with Elementor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin6,022 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 1,013 | 786 | 5,692 |
JavaScript | 5 | 11 | 0 | 210 |
CSS | 3 | 8 | 4 | 115 |
HTML | 2 | 0 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 5 | |
Classes | 48 | |
▷ Abstract classes | 1 | 2.08% |
▷ Concrete classes | 47 | 97.92% |
▷ Final classes | 0 | 0.00% |
Methods | 397 | |
▷ Static methods | 58 | 14.61% |
▷ Public methods | 293 | 73.80% |
▷ Protected methods | 55 | 13.85% |
▷ Private methods | 49 | 12.34% |
Functions | 41 | |
▷ Named functions | 17 | 41.46% |
▷ Anonymous functions | 24 | 58.54% |
Constants | 48 | |
▷ Global constants | 1 | 2.08% |
▷ Class constants | 47 | 97.92% |
▷ Public constants | 47 | 100.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
PNG images were not found in this plugin