Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼4.93ms] Passed 4 tests
Analyzing server-side resources used by Better Management Reserved Stock - WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 23.86 ▼16.38 |
Dashboard /wp-admin | 3.32 ▲0.02 | 52.73 ▲3.00 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.55 ▲1.69 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.01 ▼6.01 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.23 ▲0.99 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Better Management Reserved Stock - WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,489 ▼246 | 14.45 ▲0.00 | 0.53 ▼1.46 | 16.26 ▼26.90 |
Dashboard /wp-admin | 2,230 ▲45 | 5.83 ▼0.07 | 94.19 ▼4.90 | 39.77 ▲0.40 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.05 ▲0.08 | 40.28 ▲0.61 | 35.18 ▼1.08 |
Add New Post /wp-admin/post-new.php | 1,547 ▲12 | 23.17 ▲0.36 | 642.50 ▼11.75 | 69.92 ▲10.30 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.19 ▼0.03 | 94.31 ▼10.92 | 43.97 ▲0.97 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% 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)
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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/better-management-reserved-stock-for-woocommerce/admin/partials/bm-reserved-stock-wc-admin-display.php
- > /wp-content/plugins/better-management-reserved-stock-for-woocommerce/public/partials/bm-reserved-stock-wc-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: stock, manage stock, checkout, cart, woocommerce...
better-management-reserved-stock-for-woocommerce/bm-reserved-stock-wc.php 85% from 13 tests
Analyzing the main PHP file in "Better Management Reserved Stock - WooCommerce" version 1.0.0
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("better-management-reserved-stock-for-woocommerce.php" instead of "bm-reserved-stock-wc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin355 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 160 | 563 | 326 |
JavaScript | 2 | 8 | 27 | 29 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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