Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/woocommerce-pos/vendor/vlucas/phpdotenv/src/Store/File/Reader.php+73
file_get_contents(wp-content/plugins/woocommerce-pos/.env): failed to open stream: No such file or directory
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.14ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce POS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.93 ▼31.55 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.06 ▼40.10 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.46 ▼42.38 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.09 ▼105.82 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.97 ▼32.26 |
Server storage [IO: ▲2.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 397 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
WooCommerce POS: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.08 ▼0.21 | 2.33 ▲0.73 | 59.26 ▲11.13 |
Dashboard /wp-admin | 2,192 ▲18 | 5.62 ▼0.05 | 91.57 ▲1.69 | 41.95 ▲4.91 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.95 ▼0.01 | 33.48 ▼0.14 | 31.53 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.16 ▼0.04 | 657.24 ▲16.52 | 58.36 ▲5.31 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.08 | 93.64 ▼6.62 | 42.58 ▼2.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/woocommerce-pos/vendor/vlucas/phpdotenv/src/Store/File/Reader.php+73
file_get_contents(wp-content/plugins/woocommerce-pos/.env): failed to open stream: No such file or directory
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woocommerce-pos/includes/Admin/templates/upgrade.php
- 171× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\DebugBar\\Panel' not found in wp-content/plugins/woocommerce-pos/vendor/yahnis-elsts/plugin-update-checker/Puc/v5p2/DebugBar/PluginPanel.php:8
- > PHP Fatal error
Uncaught Error: Class 'Brick\\Math\\Internal\\Calculator' not found in wp-content/plugins/woocommerce-pos/vendor/brick/math/src/Internal/Calculator/NativeCalculator.php:16
- > PHP Fatal error
Uncaught Error: Class 'WCPOS\\WooCommercePOS\\API\\Abstracts\\Controller' not found in wp-content/plugins/woocommerce-pos/includes/API/Settings.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Builder\\UuidBuilderInterface' not found in wp-content/plugins/woocommerce-pos/vendor/ramsey/uuid/src/Nonstandard/UuidBuilder.php:30
- > PHP Fatal error
Uncaught Error: Class 'PhpOption\\Option' not found in wp-content/plugins/woocommerce-pos/vendor/phpoption/phpoption/src/PhpOption/None.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Validator\\ValidatorInterface' not found in wp-content/plugins/woocommerce-pos/vendor/ramsey/uuid/src/Rfc4122/Validator.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Rfc4122\\FieldsInterface' not found in wp-content/plugins/woocommerce-pos/vendor/ramsey/uuid/src/Nonstandard/Fields.php:45
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\WriterInterface' not found in wp-content/plugins/woocommerce-pos/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiWriter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Store\\StoreInterface' not found in wp-content/plugins/woocommerce-pos/vendor/vlucas/phpdotenv/src/Store/StringStore.php:7
- > PHP Fatal error
Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\Metadata' not found in wp-content/plugins/woocommerce-pos/vendor/yahnis-elsts/plugin-update-checker/Puc/v5p2/Plugin/PluginInfo.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
- Requires at least: Version format is invalid
woocommerce-pos/woocommerce-pos.php 85% from 13 tests
This is the main PHP file of "WooCommerce POS" version 1.3.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected29,925 lines of code in 378 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 355 | 6,571 | 17,397 | 28,188 |
JSON | 3 | 8 | 0 | 961 |
Markdown | 6 | 238 | 0 | 518 |
SVG | 6 | 0 | 0 | 118 |
CSS | 2 | 14 | 1 | 56 |
JavaScript | 3 | 8 | 9 | 40 |
XML | 2 | 4 | 4 | 26 |
make | 1 | 8 | 0 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 64 | |
Interfaces | 40 | |
Traits | 13 | |
Classes | 266 | |
▷ Abstract classes | 16 | 6.02% |
▷ Concrete classes | 250 | 93.98% |
▷ Final classes | 65 | 26.00% |
Methods | 1,984 | |
▷ Static methods | 260 | 13.10% |
▷ Public methods | 1,630 | 82.16% |
▷ Protected methods | 169 | 8.52% |
▷ Private methods | 185 | 9.32% |
Functions | 224 | |
▷ Named functions | 123 | 54.91% |
▷ Anonymous functions | 101 | 45.09% |
Constants | 203 | |
▷ Global constants | 16 | 7.88% |
▷ Class constants | 187 | 92.12% |
▷ Public constants | 152 | 81.28% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon-square.png | 18.28KB | 18.41KB | 0.00% |