83% connectpos-pos-system-for-woocommerce

Code Review | ConnectPOS for fashion stores | Point of Sale for WooCommerce

WordPress plugin ConnectPOS for fashion stores | Point of Sale for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: connectpos-pos-sy...
  • Plugin version: 23.11.29.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 13, 2021
  • Latest release: Nov 29, 2023
  • Number of updates: 91
  • Update frequency: every 9.6 days
  • Top authors: connectretail (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

60+ active /6,272 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3936.44 ▼7.26
Dashboard /wp-admin3.70 ▲0.4046.75 ▼3.10
Posts /wp-admin/edit.php3.75 ▲0.3948.58 ▲0.46
Add New Post /wp-admin/post-new.php3.52 ▼2.3735.29 ▼58.82
Media Library /wp-admin/upload.php3.56 ▲0.3337.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5614.54 ▲0.281.74 ▼0.1336.89 ▼8.08
Dashboard /wp-admin2,196 ▲195.52 ▼0.1295.62 ▲2.7074.80 ▲33.71
Posts /wp-admin/edit.php2,113 ▲101.96 ▼0.0639.27 ▼3.2734.03 ▼2.05
Add New Post /wp-admin/post-new.php45 ▼1,4820.41 ▼22.700.07 ▼616.959.46 ▼41.20
Media Library /wp-admin/upload.php1,404 ▲44.23 ▼0.00109.28 ▲8.7751.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP143486211,347
Markdown1520117
CSS112067

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 code0.30
Average class complexity13.92
▷ Minimum class complexity1.00
▷ Maximum class complexity92.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods82
▷ Static methods00.00%
▷ Public methods7591.46%
▷ Protected methods44.88%
▷ Private methods33.66%
Functions10
▷ Named functions00.00%
▷ Anonymous functions10100.00%
Constants32
▷ Global constants00.00%
▷ Class constants32100.00%
▷ Public constants32100.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
FileSize - originalSize - compressedSavings
assets/screenshot-6.png75.98KB30.73KB▼ 59.56%
assets/screenshot-5.png152.84KB62.40KB▼ 59.17%
admin/icons/apple-icon-20x20.png1.24KB0.64KB▼ 48.15%
admin/icons/apple-icon-192x192.png12.40KB5.95KB▼ 51.99%
assets/screenshot-3.png71.19KB28.23KB▼ 60.34%