Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.45ms] Passed 4 tests
Server-side resources used by WooCommerce Attribute Stock - Shared Stock & Quantity Multipliers (Lite Version)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.32 ▲0.29 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.23 ▼7.83 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.38 ▼0.68 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 82.88 ▼21.58 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.24 ▲0.83 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 143 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wcas_match_rows |
wp_wcas_match_sets |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
mewz_wcas_version |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WooCommerce Attribute Stock - Shared Stock & Quantity Multipliers (Lite Version): 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,789 ▲28 | 14.35 ▼0.21 | 1.87 ▲0.30 | 39.51 ▼0.99 |
Dashboard /wp-admin | 2,192 ▲11 | 5.56 ▼0.17 | 85.03 ▼14.55 | 41.27 ▼4.95 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.08 | 39.18 ▼0.94 | 36.95 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,534 ▲3 | 18.19 ▼5.06 | 615.58 ▼56.18 | 61.36 ▲6.55 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.13 ▼0.07 | 97.41 ▼4.88 | 44.39 ▼1.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_wcas_match_rows
- wp_wcas_match_sets
- Zombie WordPress options detected upon uninstall: 7 options
- mewz_wcas_version
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 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 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
Please fix the following items
- 60× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mewz\\Framework\\Base\\Action' not found in wp-content/plugins/attribute-stock-for-woocommerce/src/Actions/Admin/Stock/StockSave.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mewz\\Framework\\Base\\Action' not found in wp-content/plugins/attribute-stock-for-woocommerce/src/Actions/Admin/Products/ProductOptions.php:7
- > PHP Fatal error
Uncaught Error: Class 'Mewz\\Framework\\Base\\Action' not found in wp-content/plugins/attribute-stock-for-woocommerce/src/Actions/Admin/Attributes/AttributeList.php:10
- > PHP Fatal error
Uncaught Error: Class 'Mewz\\Framework\\Base\\Action' not found in wp-content/plugins/attribute-stock-for-woocommerce/src/Actions/Admin/Settings/InventorySettings.php:6
- > PHP Fatal error
Uncaught Error: Class 'Mewz\\Framework\\Base\\Action' not found in wp-content/plugins/attribute-stock-for-woocommerce/src/Actions/Admin/Stock/StockList.php:12
- > PHP Fatal error
Uncaught Error: Class 'Mewz\\Framework\\Base\\Action' not found in wp-content/plugins/attribute-stock-for-woocommerce/src/Actions/Admin/Stock/StockActions.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mewz\\Framework\\Base\\Action' not found in wp-content/plugins/attribute-stock-for-woocommerce/src/Compatibility/Actions/OpenPOS.php:6
- > PHP Fatal error
Uncaught Error: Class 'Mewz\\Framework\\Base\\Action' not found in wp-content/plugins/attribute-stock-for-woocommerce/src/Actions/Admin/Plugin/PluginHelp.php:6
- > PHP Fatal error
Uncaught Error: Class 'Mewz\\Framework\\Base\\Action' not found in wp-content/plugins/attribute-stock-for-woocommerce/src/Compatibility/Actions/AdvancedOrderExport.php:7
- > PHP Warning
require_once(WC_ABSPATHincludes/admin/reports/class-wc-report-stock.php): failed to open stream: No such file or directory in wp-content/plugins/attribute-stock-for-woocommerce/src/Components/AttributeStockReport.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: woocommerce stock, shared stock, attribute stock, woocommerce, variable stock
attribute-stock-for-woocommerce/attribute-stock-for-woocommerce.php 92% from 13 tests
Analyzing the main PHP file in "WooCommerce Attribute Stock - Shared Stock & Quantity Multipliers (Lite Version)" version 1.10.0
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin22,509 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 2,972 | 2,460 | 11,028 |
JavaScript | 8 | 548 | 2,357 | 9,524 |
CSS | 8 | 4 | 2 | 1,344 |
PO File | 2 | 195 | 255 | 532 |
JSON | 3 | 0 | 0 | 76 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 22.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 203.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 86 | |
▷ Abstract classes | 4 | 4.65% |
▷ Concrete classes | 82 | 95.35% |
▷ Final classes | 0 | 0.00% |
Methods | 788 | |
▷ Static methods | 183 | 23.22% |
▷ Public methods | 719 | 91.24% |
▷ Protected methods | 66 | 8.38% |
▷ Private methods | 3 | 0.38% |
Functions | 19 | |
▷ Named functions | 14 | 73.68% |
▷ Anonymous functions | 5 | 26.32% |
Constants | 30 | |
▷ Global constants | 1 | 3.33% |
▷ Class constants | 29 | 96.67% |
▷ Public constants | 29 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin