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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼141.95ms] Passed 4 tests
Analyzing server-side resources used by Alerts via MQQT for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 34.92 ▼7.26 |
Dashboard /wp-admin | 3.11 ▲0.06 | 46.14 ▼2.34 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 55.65 ▲3.98 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 108.12 ▼556.86 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 37.66 ▼1.35 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wooshiftrmqtt_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Alerts via MQQT for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲151 | 15.79 ▲0.55 | 10.90 ▲2.18 | 51.15 ▼3.07 |
Dashboard /wp-admin | 2,987 ▲53 | 5.92 ▼0.05 | 168.68 ▼6.05 | 121.52 ▼1.89 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.72 ▲0.00 | 68.26 ▼11.48 | 97.12 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,696 ▲115 | 15.79 ▼1.81 | 431.38 ▼42.44 | 116.01 ▼0.03 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.06 ▲0.04 | 179.55 ▼25.19 | 123.27 ▼4.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, function 'iaml_deactivate' not found or invalid function name
- Zombie WordPress options were found after uninstall: 1 option
- wooshiftrmqtt_options
Smoke tests 75% 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 50% 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/wc-mqtt-alerts/mqtt-woocommerce-notifier.php:41
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: notify, shiftrio, mqtt, notifier, woocommerce
wc-mqtt-alerts/mqtt-woocommerce-notifier.php 77% from 13 tests
This is the main PHP file of "Alerts via MQQT for WooCommerce" version 0.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.2" instead of "4.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-mqtt-alerts.php" instead of "mqtt-woocommerce-notifier.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin231 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 31 | 231 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected