90% purchased-items-column-woocommerce

Code Review | Purchased Items Column for WooCommerce Orders

WordPress plugin Purchased Items Column for WooCommerce Orders scored90%from 54 tests.

About plugin

  • Plugin page: purchased-items-c...
  • Plugin version: 1.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.4
  • WordPress version: 6.3.1
  • First release: Jun 11, 2017
  • Latest release: Nov 6, 2023
  • Number of updates: 25
  • Update frequency: every 93.6 days
  • Top authors: pipdig (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

900+ active /13,180 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.56ms] Passed 4 tests

A check of server-side resources used by Purchased Items Column for WooCommerce Orders
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.22 ▼9.32
Dashboard /wp-admin3.32 ▼0.0353.89 ▼6.99
Posts /wp-admin/edit.php3.37 ▲0.0149.02 ▲3.85
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.95 ▼3.01
Media Library /wp-admin/upload.php3.24 ▲0.0136.53 ▲1.08

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Purchased Items Column for WooCommerce Orders
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.41 ▲0.011.63 ▼0.0538.63 ▼4.66
Dashboard /wp-admin2,195 ▲185.60 ▼0.0691.52 ▼8.2838.90 ▼4.38
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0538.90 ▲0.8937.20 ▲2.98
Add New Post /wp-admin/post-new.php1,526 ▼023.33 ▲0.32697.98 ▲50.9058.74 ▼2.35
Media Library /wp-admin/upload.php1,397 ▼34.18 ▼0.0398.24 ▼1.5542.14 ▼1.05

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

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
3 plugin tags: orders, woocommerce, ajax

purchased-items-column-woocommerce/purchased-items-column-woocommerce.php Passed 13 tests

"Purchased Items Column for WooCommerce Orders" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
Display a "Purchased Items" column on the WooCommerce orders page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected85 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2501485

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.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
No PNG images were found in this plugin