Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.49MB] [CPU: ▲8.99ms] Passed 4 tests
Server-side resources used by WPOS - A Lite version of OpenPOS - A Point Of Sales For Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.97 ▲1.50 | 54.17 ▲15.04 |
Dashboard /wp-admin | 4.81 ▲1.51 | 56.51 ▼1.72 |
Posts /wp-admin/edit.php | 4.86 ▲1.51 | 62.09 ▲10.55 |
Add New Post /wp-admin/post-new.php | 7.33 ▲1.45 | 115.75 ▲12.09 |
Media Library /wp-admin/upload.php | 4.74 ▲1.51 | 53.48 ▲15.54 |
Server storage [IO: ▲3.92MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 454 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WPOS - A Lite version of OpenPOS - A Point Of Sales For Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 13.53 ▼0.74 | 1.93 ▲0.26 | 42.08 ▼1.88 |
Dashboard /wp-admin | 2,221 ▲18 | 5.86 ▲0.97 | 104.73 ▼5.66 | 39.97 ▼5.88 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▼0.03 | 39.69 ▲2.94 | 34.98 ▼1.61 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.56 ▲0.14 | 662.07 ▼0.66 | 53.21 ▼15.47 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.24 ▼0.00 | 97.33 ▼10.50 | 43.46 ▼5.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/wpos-lite-version/vendor/markbaker/complex/examples/complexTest.php
- > /wp-content/plugins/wpos-lite-version/vendor/markbaker/complex/examples/testFunctions.php
- > /wp-content/plugins/wpos-lite-version/vendor/markbaker/complex/examples/testOperations.php
- 117× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheException' not found in wp-content/plugins/wpos-lite-version/vendor/psr/simple-cache/src/InvalidArgumentException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/wpos-lite-version/vendor/symfony/translation/Dumper/QtFileDumper.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wpos-lite-version/vendor/symfony/translation/Tests/Dumper/PhpFileDumperTest.php:18
- > PHP Notice
Undefined variable: exchanges in wp-content/plugins/wpos-lite-version/templates/admin/woocommerce/order_exchanges.php on line 1
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Formatter\\MessageFormatterInterface' not found in wp-content/plugins/wpos-lite-version/vendor/symfony/translation/Formatter/MessageFormatter.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/wpos-lite-version/vendor/symfony/translation/Loader/PoFileLoader.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wpos-lite-version/vendor/symfony/translation/Tests/Writer/TranslationWriterTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Exceptions\\BarcodeException' not found in wp-content/plugins/wpos-lite-version/vendor/picqer/php-barcode-generator/src/Exceptions/InvalidCheckDigitException.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wpos-lite-version/vendor/symfony/translation/Tests/TranslatorCacheTest.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Loader\\LoaderInterface' not found in wp-content/plugins/wpos-lite-version/vendor/symfony/translation/Loader/IcuResFileLoader.php:24
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: e-commerce, woocommerce pos, woocommerce, point of sale, woocommerce point of sale...
wpos-lite-version/index.php 77% from 13 tests
The entry point to "WPOS - A Lite version of OpenPOS - A Point Of Sales For Woocommerce" version 2.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("wpos-lite-version.php" instead of "index.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "2.6")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected58,136 lines of code in 389 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 293 | 5,363 | 10,666 | 29,647 |
CSS | 15 | 1,310 | 57 | 10,055 |
JavaScript | 16 | 1,237 | 1,282 | 5,948 |
XSD | 4 | 99 | 76 | 4,991 |
PO File | 11 | 1,325 | 1,618 | 2,915 |
SVG | 4 | 0 | 3 | 2,732 |
JSON | 11 | 1 | 0 | 922 |
Markdown | 10 | 155 | 0 | 526 |
XML | 17 | 3 | 0 | 342 |
HTML | 1 | 0 | 0 | 32 |
YAML | 5 | 4 | 0 | 15 |
Qt Linguist | 1 | 0 | 0 | 10 |
INI | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 203)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 642.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 203.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 17 | |
Traits | 0 | |
Classes | 147 | |
▷ Abstract classes | 8 | 5.44% |
▷ Concrete classes | 139 | 94.56% |
▷ Final classes | 1 | 0.72% |
Methods | 1,409 | |
▷ Static methods | 175 | 12.42% |
▷ Public methods | 1,207 | 85.66% |
▷ Protected methods | 129 | 9.16% |
▷ Private methods | 73 | 5.18% |
Functions | 108 | |
▷ Named functions | 86 | 79.63% |
▷ Anonymous functions | 22 | 20.37% |
Constants | 89 | |
▷ Global constants | 5 | 5.62% |
▷ Class constants | 84 | 94.38% |
▷ Public constants | 84 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sort_desc.png | 1.10KB | 0.25KB | ▼ 77.73% |
assets/images/woocommerce.png | 4.83KB | 2.67KB | ▼ 44.64% |
assets/images/print.png | 0.27KB | 0.24KB | ▼ 10.51% |
assets/images/reset.png | 2.08KB | 1.78KB | ▼ 14.71% |
assets/images/sort_both.png | 1.11KB | 0.29KB | ▼ 74.12% |