83% ni-show-product-name-in-orders-tab-of-my-account-page-for-woocommerce

Code Review | Ni Show Product Name In Orders Tab Of My Account Page For WooCommerce

WordPress plugin Ni Show Product Name In Orders Tab Of My Account Page For WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: ni-show-product-n...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2021
  • Latest release: May 12, 2023
  • Number of updates: 8
  • Update frequency: every 83.4 days
  • Top authors: anzia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /375 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
Install script ran successfully

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

An overview of server-side resources used by Ni Show Product Name In Orders Tab Of My Account Page For WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.03 ▼0.45
Dashboard /wp-admin3.32 ▼0.0249.75 ▼11.38
Posts /wp-admin/edit.php3.37 ▲0.0247.10 ▼3.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.64 ▼24.39
Media Library /wp-admin/upload.php3.25 ▲0.0234.67 ▲0.73

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Ni Show Product Name In Orders Tab Of My Account Page For WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.53 ▲0.121.69 ▼0.0943.84 ▲0.75
Dashboard /wp-admin2,198 ▲245.62 ▲0.0591.46 ▲6.6241.31 ▲2.47
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0240.00 ▲4.2135.67 ▲4.38
Add New Post /wp-admin/post-new.php1,596 ▲6722.51 ▼0.27623.19 ▼57.8328.86 ▼29.89
Media Library /wp-admin/upload.php1,394 ▼34.19 ▼0.0396.68 ▼11.1644.11 ▼5.29

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ni-show-product-name-in-orders-tab-of-my-account-page-for-woocommerce/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Order product sold column (Product | Quantity)) image missing
The official readme.txt might help

ni-show-product-name-in-orders-tab-of-my-account-page-for-woocommerce/ni-show-product-name-in-orders-tab-of-my-account-page-for-woocommerce.php 85% from 13 tests

The main file in "Ni Show Product Name In Orders Tab Of My Account Page For WooCommerce" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

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
Success! There were no dangerous files found in this plugin76 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4201976

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png28.44KB11.61KB▼ 59.16%