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.07MB] [CPU: ▼16.14ms] Passed 4 tests
A check of server-side resources used by Simple Woocommerce Admin Stock Management
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.01 | 44.72 ▼1.55 |
Dashboard /wp-admin | 3.39 ▼0.24 | 31.85 ▼33.68 |
Posts /wp-admin/edit.php | 3.69 ▲0.01 | 54.75 ▲1.83 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.01 | 89.30 ▼20.87 |
Media Library /wp-admin/upload.php | 3.42 ▼0.07 | 30.24 ▼8.46 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Woocommerce Admin Stock Management
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.47 ▲0.17 | 1.77 ▲0.06 | 44.97 ▲0.20 |
Dashboard /wp-admin | 2,195 ▲21 | 5.51 ▼0.10 | 82.45 ▼9.96 | 39.85 ▼4.57 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.15 ▲0.13 | 41.03 ▼0.21 | 36.67 ▲1.95 |
Add New Post /wp-admin/post-new.php | 1,545 ▲5 | 23.29 ▲0.07 | 658.71 ▼50.47 | 60.11 ▲9.39 |
Media Library /wp-admin/upload.php | 1,391 ▼9 | 4.19 ▼0.01 | 99.34 ▼8.82 | 42.48 ▼7.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-woocommerce-admin-stock-management/views/restock_modal.php
- 2× 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/simple-woocommerce-admin-stock-management/includes/ajax.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-woocommerce-admin-stock-management/simple-woocommerce-admin-stock-management.php:13
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Requires at least: Version format is invalid
simple-woocommerce-admin-stock-management/simple-woocommerce-admin-stock-management.php Passed 13 tests
Analyzing the main PHP file in "Simple Woocommerce Admin Stock Management" version 1.0
113 characters long description:
A simple woocommerce extension will automatically manage stock levels when orders are edited by the administrator
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
No dangerous file extensions were detected138 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 21 | 9 | 72 |
CSS | 1 | 1 | 1 | 35 |
JavaScript | 1 | 6 | 5 | 31 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin