Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.30MB] [CPU: ▼7.29ms] Passed 4 tests
This is a short check of server-side resources used by Stock Manager for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 49.84 ▲6.25 |
Dashboard /wp-admin | 3.58 ▲0.24 | 53.66 ▼15.75 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 55.21 ▲3.24 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 89.54 ▼21.09 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 39.91 ▲4.45 |
Server storage [IO: ▲1.86MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 72 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_stock_log |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Stock Manager for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.36 ▲0.07 | 2.04 ▲0.24 | 42.72 ▼3.08 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▼0.09 | 84.84 ▼9.22 | 38.68 ▼10.35 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▲0.03 | 39.50 ▲1.61 | 34.23 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,526 ▼7 | 23.27 ▲0.22 | 631.31 ▼26.22 | 60.65 ▲5.68 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.17 ▼0.21 | 99.97 ▼1.65 | 45.22 ▼0.53 |
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
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_stock_log
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce stock management, woocommerce stock management free, woocommerce inventory management, woocommerce stock manager, woocommerce product stock manager
woocommerce-stock-manager/woocommerce-stock-manager.php 92% from 13 tests
Analyzing the main PHP file in "Stock Manager for WooCommerce" version 3.0.0
Please make the necessary changes and fix the following:
- Requires PHP: Required version number should use periods and dots only (ex. "7.0" instead of "5.6+")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin19,621 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 15,205 |
JavaScript | 32 | 270 | 41 | 1,943 |
PHP | 18 | 343 | 537 | 1,845 |
CSS | 3 | 47 | 36 | 561 |
Sass | 4 | 11 | 0 | 67 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 14 | 28.00% |
▷ Public methods | 42 | 84.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 16.00% |
Functions | 15 | |
▷ Named functions | 10 | 66.67% |
▷ Anonymous functions | 5 | 33.33% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
1 compressed PNG file occupies 0.05MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
sa-includes/images/bfcm-2022.png | 54.96KB | 57.55KB | 0.00% |