100% restore-purchased-items-column

Code Review | WC Restore the Purchased Items Column in Orders Page

WordPress plugin WC Restore the Purchased Items Column in Orders Page scored 100% from 54 tests.

About plugin

  • Plugin page: restore-purchased...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.4.2
  • WordPress version: 5.9.2
  • First release: Apr 20, 2017
  • Latest release: Jun 25, 2020
  • Number of updates: 8
  • Update frequency: every 145.3 days
  • Top authors: Rynald0s (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

600+ active / 3,847 total downloads

Benchmarks

Plugin footprint Passed 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: ▼291.83ms] Passed 4 tests

Server-side resources used by WC Restore the Purchased Items Column in Orders Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0251.17 ▼0.00
Dashboard /wp-admin3.42 ▲0.0233.01 ▲1.13
Posts /wp-admin/edit.php3.66 ▲0.0237.12 ▲0.51
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.82 ▼1,167.62
Media Library /wp-admin/upload.php3.31 ▲0.0125.01 ▼0.21

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WC Restore the Purchased Items Column in Orders Page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.79 ▲0.155.73 ▼0.732.34 ▼0.22
Dashboard /wp-admin2,892 ▲416.14 ▼0.10117.56 ▼33.80155.08 ▼15.85
Posts /wp-admin/edit.php2,694 ▼03.23 ▼0.0164.20 ▼0.67139.15 ▼0.93
Add New Post /wp-admin/post-new.php1,752 ▼820.87 ▼1.86449.48 ▲14.07157.20 ▲2.84
Media Library /wp-admin/upload.php1,698 ▼05.47 ▼0.03136.70 ▼2.50186.89 ▲0.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Looking good! No server-side errors or output 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
No browser errors were detected

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:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

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

This is the main PHP file of "WC Restore the Purchased Items Column in Orders Page" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
69 characters long description:
This plugin restores the "Purchased Items" column in the orders page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin51 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1171551

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin