Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.35MB] [CPU: ▼1.03ms] Passed 4 tests
Server-side resources used by WooCommerce Point Of Sale (POS)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 46.98 ▲3.84 |
Dashboard /wp-admin | 3.70 ▲0.39 | 47.52 ▲2.89 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 46.39 ▲2.13 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 93.65 ▼10.34 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 36.14 ▲1.22 |
Server storage [IO: ▲11.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 325 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WooCommerce Point Of Sale (POS): an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 14.17 ▼0.55 | 1.88 ▲0.14 | 37.98 ▼6.90 |
Dashboard /wp-admin | 2,201 ▲30 | 5.64 ▲0.06 | 81.23 ▼4.33 | 37.79 ▼2.10 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.04 | 32.92 ▼8.23 | 34.70 ▼2.93 |
Add New Post /wp-admin/post-new.php | 1,540 ▲5 | 18.65 ▲0.38 | 605.66 ▼15.95 | 64.12 ▼12.37 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.21 ▼0.04 | 96.12 ▼1.36 | 44.15 ▲3.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'ICWCPOS_FUNCTION' not found in wp-content/plugins/woo-point-of-salepos/includes/icwcpos_front_product_price.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/woo-point-of-salepos/template/template.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg), #3 (screenshot-3.jpg), #4 (screenshot-4.jpg), #5 (screenshot-5.jpg)
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
woo-point-of-salepos/woocommerce-point-of-sale-pos.php 69% from 13 tests
"WooCommerce Point Of Sale (POS)" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "3.5.x")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-point-of-salepos.php" instead of "woocommerce-point-of-sale-pos.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 190 characters long)
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected103,672 lines of code in 206 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 78 | 10,331 | 21,264 | 89,689 |
HTML | 40 | 245 | 26 | 4,575 |
PHP | 17 | 888 | 491 | 3,362 |
SVG | 56 | 37 | 0 | 3,002 |
Markdown | 3 | 440 | 0 | 1,361 |
CSS | 5 | 205 | 93 | 975 |
JSON | 7 | 0 | 0 | 708 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 29.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 131 | 98.50% |
▷ Protected methods | 1 | 0.75% |
▷ Private methods | 1 | 0.75% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
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
72 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/amcharts/patterns/white/pattern8.png | 0.16KB | 0.10KB | ▼ 36.25% |
assets/amcharts/images/exportWhite.png | 0.21KB | 0.13KB | ▼ 38.03% |
assets/amcharts/patterns/black/pattern14.png | 0.16KB | 0.10KB | ▼ 36.25% |
assets/amcharts/patterns/white/pattern14.png | 0.16KB | 0.10KB | ▼ 36.65% |
assets/amcharts/patterns/white/pattern20.png | 0.15KB | 0.10KB | ▼ 34.18% |