90% ni-woocommerce-admin-order-columns

Code Review | Ni WooCommerce Admin Order Columns

WordPress plugin Ni WooCommerce Admin Order Columns scored90%from 54 tests.

About plugin

  • Plugin page: ni-woocommerce-ad...
  • Plugin version: 1.6.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: May 2, 2017
  • Latest release: Nov 23, 2023
  • Number of updates: 38
  • Update frequency: every 63.1 days
  • Top authors: anzia (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

600+ active /8,385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Ni WooCommerce Admin Order Columns
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.17 ▼15.16
Dashboard /wp-admin3.33 ▼0.0245.33 ▼19.91
Posts /wp-admin/edit.php3.38 ▲0.0249.72 ▼0.27
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.60 ▼2.57
Media Library /wp-admin/upload.php3.25 ▲0.0232.35 ▼2.84

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Ni WooCommerce Admin Order Columns
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲4314.23 ▼0.491.80 ▼0.2039.27 ▼3.42
Dashboard /wp-admin2,195 ▲185.62 ▼0.0491.21 ▼8.2942.43 ▼0.81
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0239.72 ▲1.1333.07 ▲1.74
Add New Post /wp-admin/post-new.php1,535 ▲918.76 ▼4.36591.88 ▼44.6159.23 ▲6.69
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0195.51 ▼3.0844.14 ▲2.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Order admin list show the all product each order.)
Please take inspiration from this readme.txt

ni-woocommerce-admin-order-columns/ni-woocommerce-admin-order-columns.php Passed 13 tests

Analyzing the main PHP file in "Ni WooCommerce Admin Order Columns" version 1.6.0
85 characters long description:
Ni WooCommerce Admin Order Columns add the order product columns in admin order list.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected86 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2242077
HTML1109

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity8.00
▷ Minimum class complexity2.00
▷ Maximum class complexity14.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png75.03KB29.88KB▼ 60.18%