Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.23MB] [CPU: ▼7.49ms] Passed 4 tests
An overview of server-side resources used by Simple Multi-Inventory For Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 42.90 ▼8.58 |
Dashboard /wp-admin | 3.54 ▲0.19 | 50.28 ▼17.20 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 54.15 ▲0.17 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 96.16 ▼4.33 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 37.62 ▲2.05 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Multi-Inventory For Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲184 | 13.55 ▼0.72 | 10.28 ▲8.34 | 42.51 ▼4.14 |
Dashboard /wp-admin | 2,206 ▲32 | 5.57 ▼0.11 | 92.36 ▼6.02 | 38.90 ▼3.63 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.04 ▲0.05 | 42.62 ▲3.66 | 38.24 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,538 ▲7 | 23.11 ▼0.06 | 656.70 ▲0.16 | 57.03 ▲8.22 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.19 ▼0.05 | 103.68 ▼9.55 | 42.64 ▼1.74 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-multi-inventory-for-woocommerce/admin/partials/smifw-admin-display.php
- > /wp-content/plugins/simple-multi-inventory-for-woocommerce/public/partials/smifw-public-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-multi-inventory-for-woocommerce/admin/partials/woocommerce-is-not-active.php:3
- > PHP Notice
Undefined variable: locations in wp-content/plugins/simple-multi-inventory-for-woocommerce/admin/partials/admin-location-stock-edit.php on line 1
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: multi locations, woocommerce multi warehouse, multi stock, stock locations, stock management...
simple-multi-inventory-for-woocommerce/smifw.php 92% from 13 tests
This is the main PHP file of "Simple Multi-Inventory For Woocommerce" version 2.0.0, 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:
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-multi-inventory-for-woocommerce.php" instead of "smifw.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected876 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 206 | 577 | 761 |
JavaScript | 2 | 16 | 55 | 111 |
CSS | 2 | 1 | 8 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 20.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 3 | 5.77% |
▷ Public methods | 45 | 86.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 13.46% |
Functions | 8 | |
▷ Named functions | 3 | 37.50% |
▷ Anonymous functions | 5 | 62.50% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin