99% woocommerce-order-notes-window

Code Review | WooCommerce Order Notes Window

WordPress plugin WooCommerce Order Notes Window scored 99% from 54 tests.

About plugin

  • Plugin page: woocommerce-order...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-3.8.1
  • WordPress version: 5.8.1
  • First release: Jul 7, 2013
  • Latest release: Sep 26, 2015
  • Number of updates: 25
  • Update frequency: every 32.4 days
  • Top authors: Rene Puchinger (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active / 6,003 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼136.89ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Order Notes Window
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0531.64 ▼1.42
Dashboard /wp-admin3.11 ▲0.0540.94 ▼2.13
Posts /wp-admin/edit.php3.16 ▲0.0542.73 ▲1.22
Add New Post /wp-admin/post-new.php5.47 ▲0.0488.93 ▼545.23
Media Library /wp-admin/upload.php3.05 ▲0.0534.40 ▲3.01

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Order Notes Window
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10815.83 ▲0.279.92 ▲0.7547.03 ▲2.73
Dashboard /wp-admin2,970 ▲365.83 ▼0.33135.92 ▼3.04117.82 ▲4.80
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0160.16 ▼2.6593.34 ▲3.32
Add New Post /wp-admin/post-new.php1,615 ▲11521.93 ▲3.41276.84 ▼93.53106.62 ▼16.70
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.00145.68 ▲1.89120.85 ▲4.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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 require attention:
  • Screenshots: Add images for these screenshots: #1 (Adjusting default note type.), #2 (The Order Notes Window in action)
The official readme.txt is a good inspiration

woocommerce-order-notes-window/woocommerce-order-notes-window.php 92% from 13 tests

The entry point to "WooCommerce Order Notes Window" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected247 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP110350238
CSS1219

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1285.71%
▷ Protected methods214.29%
▷ 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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png14.40KB6.65KB▼ 53.81%
screenshot-2.png32.90KB15.07KB▼ 54.19%