83% note-finder-for-woocommerce

Code Review | Note Finder for WooCommerce

WordPress plugin Note Finder for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: note-finder-for-w...
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: May 15, 2020
  • Latest release: May 16, 2022
  • Number of updates: 45
  • Update frequency: every 16.3 days
  • Top authors: ospiotr (84.44%)disablebloat (17.78%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,859 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Note Finder for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.44 ▼6.83
Dashboard /wp-admin3.32 ▼0.0247.14 ▼12.75
Posts /wp-admin/edit.php3.37 ▲0.0248.77 ▲0.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.89 ▼12.04
Media Library /wp-admin/upload.php3.25 ▲0.0238.45 ▲3.03
Notes /wp-admin/admin.php?page=wc-note-finder3.2538.09

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Note Finder for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.14 ▼1.222.07 ▲0.1342.79 ▲1.05
Dashboard /wp-admin2,209 ▲214.85 ▼1.03108.30 ▼8.5644.57 ▼0.62
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0138.70 ▲3.5436.98 ▲2.41
Add New Post /wp-admin/post-new.php1,412 ▼12117.89 ▼5.57591.90 ▼89.0050.23 ▼5.53
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.08113.69 ▲14.8653.07 ▲6.73
Notes /wp-admin/admin.php?page=wc-note-finder8892.0229.7531.43

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/note-finder-for-woocommerce/note-finder-html.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: woocommerce, search for notes, order notes search, find woocommerce notes

note-finder-for-woocommerce/note-finder-for-woocommerce.php 77% from 13 tests

The main file in "Note Finder for WooCommerce" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "5.6")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.5")
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin189 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31619189

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
No PNG files were detected