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: ▲0.02MB] [CPU: ▼10.77ms] Passed 4 tests
An overview of server-side resources used by wePOS - Point Of Sale (POS) for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.34 ▼0.63 |
Dashboard /wp-admin | 3.33 ▼0.01 | 49.00 ▼15.96 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.51 ▼1.61 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.37 ▼24.89 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.24 ▲0.75 |
Server storage [IO: ▲8.86MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
we_pos_installed |
widget_recent-comments |
db_upgraded |
we_pos_version |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for wePOS - Point Of Sale (POS) for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.38 ▲0.03 | 1.84 ▲0.24 | 45.51 ▲0.13 |
Dashboard /wp-admin | 2,216 ▲47 | 5.67 ▼0.06 | 85.83 ▼20.08 | 43.65 ▲1.47 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 1.98 ▲0.00 | 32.88 ▼8.28 | 33.82 ▼6.46 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.08 ▼0.25 | 700.28 ▲66.99 | 57.30 ▲3.45 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.12 ▼0.12 | 111.39 ▲2.09 | 49.66 ▲2.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- we_pos_installed
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- we_pos_version
- theysaidso_admin_options
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_Taxes_V2_Controller' not found in wp-content/plugins/wepos/includes/REST/TaxController.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wepos/languages/wepos.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wepos/templates/wepos.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wepos/includes/Gateways/Cash.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_Products_Controller' not found in wp-content/plugins/wepos/includes/REST/ProductController.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wepos/includes/Admin/Updates/upgrade-1.0.4.php:24
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wepos/includes/REST/SettingController.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_Orders_Controller' not found in wp-content/plugins/wepos/includes/REST/PaymentController.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_Customers_Controller' not found in wp-content/plugins/wepos/includes/REST/CustomerController.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: free pos, woocommerce point of sale, woocommerce pos, point of sale, pos plugin
wepos/wepos.php 92% from 13 tests
"wePOS - Point Of Sale (POS) for WooCommerce" version 1.2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.4" instead of "5.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin7,445 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 959 | 2,096 | 3,995 |
JavaScript | 16 | 118 | 2,040 | 1,844 |
LESS | 1 | 150 | 2 | 1,031 |
Markdown | 1 | 70 | 0 | 196 |
SVG | 1 | 1 | 3 | 195 |
CSS | 12 | 23 | 51 | 107 |
JSON | 2 | 0 | 0 | 77 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 16.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 1 | 3.70% |
Methods | 257 | |
▷ Static methods | 20 | 7.78% |
▷ Public methods | 217 | 84.44% |
▷ Protected methods | 7 | 2.72% |
▷ Private methods | 33 | 12.84% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.08MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/no-product.png | 20.99KB | 6.45KB | ▼ 69.29% |
assets/images/empty-cart.png | 18.19KB | 5.69KB | ▼ 68.72% |
assets/images/sale-completed.png | 44.37KB | 11.46KB | ▼ 74.18% |