Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.52MB] [CPU: ▼2.55ms] Passed 4 tests
Analyzing server-side resources used by Products Stock Manager with Excel for WooCommerce Inventory
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.55 | 38.73 ▲0.44 |
Dashboard /wp-admin | 3.87 ▲0.56 | 48.96 ▲3.05 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 50.37 ▼0.23 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 82.22 ▼13.45 |
Media Library /wp-admin/upload.php | 3.73 ▲0.49 | 38.30 ▲7.31 |
Stock Manager /wp-admin/admin.php?page=stock-manager-woocommerce | 3.69 | 34.09 |
Server storage [IO: ▲5.74MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 400 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Products Stock Manager with Excel for WooCommerce Inventory
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲113 | 13.21 ▼1.42 | 4.00 ▲2.42 | 39.82 ▲2.70 |
Dashboard /wp-admin | 2,265 ▲74 | 4.97 ▲0.11 | 109.56 ▲5.22 | 78.50 ▲34.51 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 1.97 ▼0.07 | 38.24 ▲2.02 | 35.82 ▲5.54 |
Add New Post /wp-admin/post-new.php | 1,582 ▲60 | 18.47 ▼4.70 | 635.16 ▼40.87 | 69.73 ▲14.24 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.23 ▲0.06 | 95.01 ▲1.93 | 73.68 ▲31.47 |
Stock Manager /wp-admin/admin.php?page=stock-manager-woocommerce | 910 | 2.06 | 25.62 | 40.18 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/products-stock-manager-with-excel/Classes/markbaker/complex/examples/testFunctions.php
- > /wp-content/plugins/products-stock-manager-with-excel/Classes/markbaker/matrix/examples/test.php
- > /wp-content/plugins/products-stock-manager-with-excel/Classes/markbaker/complex/examples/complexTest.php
- > /wp-content/plugins/products-stock-manager-with-excel/Classes/markbaker/matrix/buildPhar.php
- > /wp-content/plugins/products-stock-manager-with-excel/Classes/markbaker/complex/examples/testOperations.php
- 97× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\WriterPart' not found in wp-content/plugins/products-stock-manager-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Meta.php:8
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\BaseParserClass' not found in wp-content/plugins/products-stock-manager-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/SheetViewOptions.php:7
- > PHP Fatal error
Uncaught Error: Class 'Matrix\\Operators\\Operator' not found in wp-content/plugins/products-stock-manager-with-excel/Classes/markbaker/matrix/classes/src/Operators/Subtraction.php:8
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader' not found in wp-content/plugins/products-stock-manager-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php:41
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\BaseWriter' not found in wp-content/plugins/products-stock-manager-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Html.php:28
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\BestFit' not found in wp-content/plugins/products-stock-manager-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/LinearBestFit.php:5
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Style\\Supervisor' not found in wp-content/plugins/products-stock-manager-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Style.php:8
- > PHP Fatal error
Uncaught Error: Interface 'PhpOffice\\PhpSpreadsheet\\IComparable' not found in wp-content/plugins/products-stock-manager-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/BaseDrawing.php:9
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader' not found in wp-content/plugins/products-stock-manager-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods.php:21
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\WriterPart' not found in wp-content/plugins/products-stock-manager-with-excel/Classes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Style.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: update stock, woocommerce, excel, inventory, stock manager...
products-stock-manager-with-excel/products-stock-manager-excel.php 77% from 13 tests
The primary PHP file in "Products Stock Manager with Excel for WooCommerce Inventory" version 1.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.2")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("products-stock-manager-with-excel.php" instead of "products-stock-manager-excel.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin64,505 lines of code in 342 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 314 | 13,282 | 31,448 | 60,445 |
Markdown | 9 | 423 | 0 | 2,002 |
SVG | 1 | 0 | 0 | 685 |
JSON | 6 | 0 | 0 | 684 |
CSS | 2 | 59 | 15 | 321 |
JavaScript | 4 | 49 | 15 | 216 |
YAML | 3 | 14 | 1 | 82 |
Bourne Again Shell | 1 | 6 | 3 | 24 |
PO File | 1 | 3 | 5 | 23 |
XML | 1 | 0 | 0 | 23 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,011)
- Method cyclomatic complexity should be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 42.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,011.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 45 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 232 | |
▷ Abstract classes | 16 | 6.90% |
▷ Concrete classes | 216 | 93.10% |
▷ Final classes | 0 | 0.00% |
Methods | 3,023 | |
▷ Static methods | 690 | 22.83% |
▷ Public methods | 2,330 | 77.08% |
▷ Protected methods | 85 | 2.81% |
▷ Private methods | 608 | 20.11% |
Functions | 76 | |
▷ Named functions | 62 | 81.58% |
▷ Anonymous functions | 14 | 18.42% |
Constants | 779 | |
▷ Global constants | 2 | 0.26% |
▷ Class constants | 777 | 99.74% |
▷ Public constants | 777 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/extendwp.png | 5.75KB | 3.37KB | ▼ 41.46% |
images/default.png | 14.13KB | 5.96KB | ▼ 57.80% |
images/stock-manager-woocommerce-pro.png | 27.63KB | 11.89KB | ▼ 56.97% |