89% ajax-product-search-woocommerce

Code Review | Live Search for WooCommerce

WordPress plugin Live Search for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: ajax-product-sear...
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.8
  • WordPress version: 6.3.1
  • First release: Mar 2, 2017
  • Latest release: Nov 25, 2023
  • Number of updates: 29
  • Update frequency: every 84.8 days
  • Top authors: algoritmika (96.55%)wpcodefactory (6.9%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,280 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.69ms] Passed 4 tests

An overview of server-side resources used by Live Search for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.44 ▼4.03
Dashboard /wp-admin3.31 ▲0.0042.56 ▼5.67
Posts /wp-admin/edit.php3.36 ▲0.0046.23 ▲1.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.21 ▼3.52
Media Library /wp-admin/upload.php3.23 ▲0.0031.92 ▼1.54

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Live Search for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.60 ▲0.251.68 ▲0.0137.33 ▼7.61
Dashboard /wp-admin2,195 ▲185.63 ▲0.0995.89 ▼1.1741.90 ▼0.67
Posts /wp-admin/edit.php2,103 ▲62.13 ▲0.1639.52 ▲2.1534.26 ▲3.17
Add New Post /wp-admin/post-new.php1,526 ▼523.66 ▲0.56677.24 ▲63.3349.45 ▼0.72
Media Library /wp-admin/upload.php1,400 ▼34.14 ▼0.0694.40 ▼3.5842.04 ▲0.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

ajax-product-search-woocommerce/ajax-product-search-woocommerce.php 92% from 13 tests

This is the main PHP file of "Live Search for WooCommerce" version 2.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "3.0.0")

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
Good job! No executable or dangerous file extensions detected1,288 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PO File14752138

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity5.69
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
▷ Static methods11.67%
▷ Public methods5795.00%
▷ Protected methods11.67%
▷ Private methods23.33%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
3 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/autocomplete.png8.85KB7.98KB▼ 9.85%
assets/images/widget.png18.97KB6.70KB▼ 64.70%
assets/images/multiple-selection.png10.15KB9.30KB▼ 8.40%