Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.31MB] [CPU: ▼17.18ms] Passed 4 tests
A check of server-side resources used by ConnectPOS for fashion stores | Point of Sale for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 36.44 ▼7.26 |
Dashboard /wp-admin | 3.70 ▲0.40 | 46.75 ▼3.10 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 48.58 ▲0.46 |
Add New Post /wp-admin/post-new.php | 3.52 ▼2.37 | 35.29 ▼58.82 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 37.46 ▲6.57 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ConnectPOS for fashion stores | Point of Sale for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲56 | 14.54 ▲0.28 | 1.74 ▼0.13 | 36.89 ▼8.08 |
Dashboard /wp-admin | 2,196 ▲19 | 5.52 ▼0.12 | 95.62 ▲2.70 | 74.80 ▲33.71 |
Posts /wp-admin/edit.php | 2,113 ▲10 | 1.96 ▼0.06 | 39.27 ▼3.27 | 34.03 ▼2.05 |
Add New Post /wp-admin/post-new.php | 45 ▼1,482 | 0.41 ▼22.70 | 0.07 ▼616.95 | 9.46 ▼41.20 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▼0.00 | 109.28 ▲8.77 | 51.77 ▲9.59 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'ConnectPOS\\Settings\\Cpos_Settings' not found in wp-content/plugins/connectpos-pos-system-for-woocommerce/admin/partials/connectpos-admin-display.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: pos plugin, pos for woocommerce, woocommerce pos, fashion pos, point of sale
connectpos-pos-system-for-woocommerce/connectpos.php 85% from 13 tests
The main file in "ConnectPOS for fashion stores | Point of Sale for WooCommerce" v. 23.11.29.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("connectpos-pos-system-for-woocommerce.php" instead of "connectpos.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
There were no executable files found in this plugin1,531 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 348 | 621 | 1,347 |
Markdown | 1 | 52 | 0 | 117 |
CSS | 1 | 12 | 0 | 67 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 75 | 91.46% |
▷ Protected methods | 4 | 4.88% |
▷ Private methods | 3 | 3.66% |
Functions | 10 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 10 | 100.00% |
Constants | 32 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 32 | 100.00% |
▷ Public constants | 32 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 1.59MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-6.png | 75.98KB | 30.73KB | ▼ 59.56% |
assets/screenshot-5.png | 152.84KB | 62.40KB | ▼ 59.17% |
admin/icons/apple-icon-20x20.png | 1.24KB | 0.64KB | ▼ 48.15% |
admin/icons/apple-icon-192x192.png | 12.40KB | 5.95KB | ▼ 51.99% |
assets/screenshot-3.png | 71.19KB | 28.23KB | ▼ 60.34% |