100% aw-woocommerce-pos

Code Review | AW WooCommerce POS Shipping

WordPress plugin AW WooCommerce POS Shipping scored 100% from 54 tests.

About plugin

  • Plugin page: aw-woocommerce-pos
  • Plugin version: 4.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 5.8.1
  • First release: Mar 8, 2016
  • Latest release: Jul 15, 2016
  • Number of updates: 6
  • Update frequency: every 60.7 days
  • Top authors: AgenWebsite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,899 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼142.13ms] Passed 4 tests

Analyzing server-side resources used by AW WooCommerce POS Shipping
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0337.52 ▼2.76
Dashboard /wp-admin3.10 ▲0.0446.51 ▲6.72
Posts /wp-admin/edit.php3.18 ▲0.0745.97 ▼1.38
Add New Post /wp-admin/post-new.php5.45 ▲0.0193.61 ▼564.06
Media Library /wp-admin/upload.php3.04 ▲0.0332.22 ▼0.32

Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

AW WooCommerce POS Shipping: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13115.98 ▲0.3710.51 ▲1.5049.14 ▲0.48
Dashboard /wp-admin2,967 ▲335.91 ▲0.00134.50 ▼18.16115.74 ▲6.23
Posts /wp-admin/edit.php2,739 ▼02.73 ▲0.0166.60 ▲2.5685.22 ▼10.40
Add New Post /wp-admin/post-new.php1,504 ▼36818.54 ▼0.68367.14 ▼18.36113.64 ▲3.10
Media Library /wp-admin/upload.php1,807 ▼05.03 ▼0.01144.99 ▼4.69119.63 ▼1.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
Please take inspiration from this readme.txt

aw-woocommerce-pos/aw-woocommerce-pos.php Passed 13 tests

"AW WooCommerce POS Shipping" version 4.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
125 characters long description:
Plugin untuk WooCommerce dengan penambahan metode shipping POS. Penambahan POS Tracking yang terintegrasi dengan WooCommerce.

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 plugin2,055 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP83749411,819
Sass1300134
Markdown221086
JavaScript25915
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity46.33
▷ Minimum class complexity4.00
▷ Maximum class complexity163.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods130
▷ Static methods64.62%
▷ Public methods7154.62%
▷ Protected methods4333.08%
▷ Private methods1612.31%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants58
▷ Global constants23.45%
▷ Class constants5696.55%
▷ Public constants56100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/upgrade-728x90.png63.73KB24.31KB▼ 61.86%
assets/images/logo.png5.43KB3.12KB▼ 42.54%
assets/images/good.png0.52KB0.52KB0.00%
assets/images/bad.png0.64KB0.72KB0.00%
assets/images/help.png0.30KB0.32KB0.00%