89% last-users-order-column-for-woocommerce

Code Review | Last Users Order Column for WooCommerce

WordPress plugin Last Users Order Column for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: last-users-order-...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: May 15, 2018
  • Latest release: Oct 25, 2023
  • Number of updates: 24
  • Update frequency: every 82.9 days
  • Top authors: wpgenie2 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,096 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.16ms] Passed 4 tests

This is a short check of server-side resources used by Last Users Order Column for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.94 ▲2.99
Dashboard /wp-admin3.35 ▲0.0447.16 ▼0.78
Posts /wp-admin/edit.php3.46 ▲0.1045.69 ▼2.87
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.37 ▼13.34
Media Library /wp-admin/upload.php3.27 ▲0.0433.91 ▲0.35

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Last Users Order Column for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.40 ▲0.041.79 ▲0.1744.41 ▲1.77
Dashboard /wp-admin2,194 ▲145.64 ▼0.0688.62 ▲2.1640.99 ▲1.58
Posts /wp-admin/edit.php2,102 ▲22.03 ▲0.0133.88 ▼2.5435.50 ▼0.10
Add New Post /wp-admin/post-new.php1,528 ▼023.54 ▲0.36670.19 ▲27.5356.74 ▲1.83
Media Library /wp-admin/upload.php1,399 ▼14.26 ▲0.0892.61 ▼5.2740.84 ▼2.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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)
Even though no errors were found, this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: last order, ecommerce last order, woocommerce last order, user last order, woocommerce

last-users-order-column-for-woocommerce/woocommerce-luoc.php 77% from 13 tests

The main PHP script in "Last Users Order Column for WooCommerce" version 1.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.0")
  • 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: The principal plugin file should be the same as the plugin slug ("last-users-order-column-for-woocommerce.php" instead of "woocommerce-luoc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin160 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP793359159
CSS1041

PHP code Passed 2 tests

This is a very shot review 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.17
Average class complexity2.75
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.37
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1578.95%
▷ Protected methods00.00%
▷ Private methods421.05%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin