89% custom-customer-notes-for-woocommerce

Code Review | Custom Customer Notes

WordPress plugin Custom Customer Notes scored89%from 54 tests.

About plugin

  • Plugin page: custom-customer-n...
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.3
  • WordPress version: 6.3.1
  • First release: May 15, 2023
  • Latest release: Sep 4, 2023
  • Number of updates: 5
  • Update frequency: every 23.0 days
  • Top authors: trustiosolutions (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /172 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.12MB] [CPU: ▼12.18ms] Passed 4 tests

This is a short check of server-side resources used by Custom Customer Notes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.64 ▼2.10
Dashboard /wp-admin3.44 ▲0.0946.90 ▼21.52
Posts /wp-admin/edit.php3.55 ▲0.1953.21 ▼1.45
Add New Post /wp-admin/post-new.php6.02 ▲0.1387.68 ▼15.75
Media Library /wp-admin/upload.php3.36 ▲0.1334.77 ▼9.36

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Customer Notes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.58 ▲0.031.91 ▼0.1443.76 ▼0.53
Dashboard /wp-admin2,198 ▲215.62 ▼0.0593.40 ▼6.5040.01 ▼2.99
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0139.98 ▲4.5635.32 ▼0.97
Add New Post /wp-admin/post-new.php1,526 ▼1023.16 ▼0.17681.50 ▼6.2760.25 ▲0.97
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0396.73 ▼14.5944.81 ▼1.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • Trustio_Custom_Customer_Notes_version
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 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 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
No output text or server-side errors detected 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
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: wordpress, plugin, woocommerce, customer notes

custom-customer-notes-for-woocommerce/custom-customer-notes.php 77% from 13 tests

The main PHP file in "Custom Customer Notes" ver. 1.2.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("6.0" instead of "6.0.0")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("custom-customer-notes-for-woocommerce.php" instead of "custom-customer-notes.php")

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
No dangerous file extensions were detected4,379 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON3003,711
PHP6178419578
JavaScript3111483
CSS1217

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity38.67
▷ Minimum class complexity24.00
▷ Maximum class complexity58.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods3090.91%
▷ Protected methods00.00%
▷ Private methods39.09%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin