Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▲0.27ms] Passed 4 tests
Analyzing server-side resources used by WM Bulk Stock Update for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.76 ▲4.47 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.84 ▼0.79 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 47.50 ▲1.82 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.54 ▼1.52 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.81 ▲1.56 |
Server storage [IO: ▲0.23MB] [DB: ▲0.63MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
WM Bulk Stock Update for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,782 ▲47 | 13.69 ▼0.61 | 1.73 ▲0.05 | 53.11 ▲10.53 |
Dashboard /wp-admin | 2,209 ▲21 | 4.80 ▼1.10 | 103.33 ▲5.42 | 41.18 ▼2.68 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▲0.01 | 39.37 ▲0.15 | 35.01 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.32 ▼4.81 | 664.98 ▲23.83 | 53.08 ▲1.52 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.24 ▼0.05 | 92.02 ▼5.28 | 40.29 ▼1.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.63MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: bulk stock update, bulk stock mannage, one page update stock, update product stock, update prouct quantity...
bulk-stock-update-for-woocommerce/wm-bulk-stock-update-for-woocommerce-init.php 92% from 13 tests
The principal PHP file in "WM Bulk Stock Update for WooCommerce" v. 1.1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bulk-stock-update-for-woocommerce.php" instead of "wm-bulk-stock-update-for-woocommerce-init.php")
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 detected1,209 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 262 | 33 | 834 |
CSS | 1 | 52 | 9 | 203 |
JavaScript | 1 | 36 | 15 | 97 |
PO File | 1 | 28 | 76 | 75 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 258.00 |
▷ Minimum class complexity | 258.00 |
▷ Maximum class complexity | 258.00 |
Average method complexity | 10.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 81.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/screenshot-2.png | 40.06KB | 17.75KB | ▼ 55.69% |
screenshots/screenshot-3.png | 59.50KB | 26.72KB | ▼ 55.10% |
screenshots/screenshot-1.png | 71.31KB | 27.11KB | ▼ 61.99% |