90% order-item-notes-for-woocommerce

Code Review | Order Item Notes For WooCommerce

WordPress plugin Order Item Notes For WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: order-item-notes-...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1.1-6.3
  • WordPress version: 6.3.1
  • First release: Dec 6, 2022
  • Latest release: Oct 4, 2023
  • Number of updates: 34
  • Update frequency: every 9.0 days
  • Top authors: petermorlion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /450 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.66ms] Passed 4 tests

A check of server-side resources used by Order Item Notes For WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.60 ▲0.98
Dashboard /wp-admin3.33 ▲0.0348.35 ▼11.27
Posts /wp-admin/edit.php3.38 ▲0.0252.61 ▼1.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.95 ▼11.91
Media Library /wp-admin/upload.php3.25 ▲0.0235.23 ▼1.52

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

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

Browser metrics Passed 4 tests

Order Item Notes For WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.54 ▼0.2140.48 ▼0.78
Dashboard /wp-admin2,195 ▲215.63 ▼0.0485.44 ▼15.1041.53 ▼3.68
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0239.16 ▼5.7634.43 ▼2.86
Add New Post /wp-admin/post-new.php1,535 ▲118.32 ▼4.98617.19 ▼44.1466.13 ▲6.62
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.01105.16 ▼2.6445.15 ▼4.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: notes, woocommerce

order-item-notes-for-woocommerce/order-item-notes-for-woocommerce.php Passed 13 tests

The principal PHP file in "Order Item Notes For WooCommerce" v. 1.1.1 is loaded by WordPress automatically on each request
84 characters long description:
A WooCommerce plugin to add notes or comments to individual order items of an order.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin650 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown11210553
PHP1182377
PO File12120

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png1.09KB0.46KB▼ 57.63%
assets/icon-256x256.png1.73KB0.70KB▼ 59.53%
assets/screenshot-1.png17.48KB16.51KB▼ 5.55%