90% guest-order-tracking-for-woocommerce

Code Review | Guest Order Tracking for WooCommerce

WordPress plugin Guest Order Tracking for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: guest-order-track...
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 23, 2017
  • Latest release: Nov 10, 2023
  • Number of updates: 17
  • Update frequency: every 137.1 days
  • Top authors: algoritmika (94.12%)wpcodefactory (11.76%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /4,072 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.18ms] Passed 4 tests

This is a short check of server-side resources used by Guest Order Tracking for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.94 ▼5.21
Dashboard /wp-admin3.31 ▼0.0442.85 ▼20.01
Posts /wp-admin/edit.php3.36 ▲0.0047.09 ▲1.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.99 ▼11.68
Media Library /wp-admin/upload.php3.23 ▲0.0033.46 ▲0.18

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Guest Order Tracking for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.37 ▲0.021.64 ▼0.0039.16 ▼4.49
Dashboard /wp-admin2,195 ▲155.61 ▼0.0590.09 ▼10.4539.26 ▼6.94
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0740.10 ▲0.4734.90 ▲1.52
Add New Post /wp-admin/post-new.php1,526 ▼022.88 ▼0.54656.87 ▲47.3755.25 ▲7.15
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.0697.81 ▼0.9542.89 ▼0.26

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
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 a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: unlogged, guest, woo commerce, order, woocommerce...

guest-order-tracking-for-woocommerce/guest-order-tracking-for-woocommerce.php 92% from 13 tests

The main PHP file in "Guest Order Tracking for WooCommerce" ver. 2.1.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.0.0")

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
Success! There were no dangerous files found in this plugin271 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP562238242
PO File15529

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 code0.41
Average class complexity4.60
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods23
▷ Static methods14.35%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin