73% smart-search-for-woocommerce

Code Review | Smart Search & Product Filter for WooCommerce - Searchanise

WordPress plugin Smart Search & Product Filter for WooCommerce - Searchanise scored73%from 54 tests.

About plugin

  • Plugin page: smart-search-for-...
  • Plugin version: 1.0.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2019
  • Latest release: Oct 4, 2023
  • Number of updates: 104
  • Update frequency: every 17.0 days
  • Top authors: searchanise (100%)

Code review

54 tests

User reviews

38 reviews

Install metrics

1,000+ active /14,417 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Smart Search & Product Filter for WooCommerce - Searchanise
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.82 ▼5.54
Dashboard /wp-admin3.31 ▲0.0150.26 ▼1.72
Posts /wp-admin/edit.php3.36 ▲0.0143.78 ▼2.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.81 ▼3.19
Media Library /wp-admin/upload.php3.23 ▲0.0135.88 ▲3.90

Server storage [IO: ▲0.63MB] [DB: ▲0.05MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 170 new files
Database: 2 new tables, 22 new options
New tables
wp_wc_se_settings
wp_wc_se_queue
New WordPress options
se_resync_interval
se_use_direct_image_links
se_enabled_searchanise_search
widget_recent-posts
se_search_result_page
theysaidso_admin_options
se_search_input_selector
se_sync_mode
se_ajax_async_enabled
db_upgraded
...

Browser metrics Passed 4 tests

A check of browser resources used by Smart Search & Product Filter for WooCommerce - Searchanise
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.74 ▲0.491.80 ▼0.4543.86 ▲4.40
Dashboard /wp-admin2,209 ▲185.92 ▲0.02100.05 ▼3.8544.15 ▲2.01
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0034.98 ▼0.6034.07 ▲2.06
Add New Post /wp-admin/post-new.php1,533 ▲1922.90 ▲5.45569.90 ▼100.7757.67 ▲2.46
Media Library /wp-admin/upload.php1,385 ▼04.20 ▲0.0398.07 ▼5.0141.35 ▼2.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie tables detected upon uninstall: 2 tables
    • wp_wc_se_settings
    • wp_wc_se_queue
  • Zombie WordPress options were found after uninstall: 22 options
    • widget_recent-posts
    • se_use_direct_image_links
    • se_need_reindexation
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • se_use_wp_jquery
    • se_import_block_posts
    • can_compress_scripts
    • se_color_attribute
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 101× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/smart-search-for-woocommerce/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/smart-search-for-woocommerce/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/smart-search-for-woocommerce/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/smart-search-for-woocommerce/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/smart-search-for-woocommerce/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/smart-search-for-woocommerce/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/smart-search-for-woocommerce/vendor/composer/installers/src/Composer/Installers/Plugin.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/smart-search-for-woocommerce/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/smart-search-for-woocommerce/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/smart-search-for-woocommerce/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Use smart search with suggestions & spellcheck to guide shoppers.), #2 (Tweak our flexible filters for search results.), #3 (Ensure visitors see relevant results with our synonyms & redirects.), #4 (Increase order value with effective upsell & cross-sell features.), #5 (Leverage analytics to avoid giving no results to your customers.)
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

smart-search-for-woocommerce/woocommerce-searchanise.php 85% from 13 tests

The primary PHP file in "Smart Search & Product Filter for WooCommerce - Searchanise" version 1.0.14 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("smart-search-for-woocommerce.php" instead of "woocommerce-searchanise.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.0.0")

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
Success! There were no dangerous files found in this plugin12,939 lines of code in 163 files:
LanguageFilesBlank linesComment linesLines of code
PHP1482,5625,37511,736
JavaScript49332415
JSON300331
CSS3609323
YAML3313123
SVG20011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity12.24
▷ Minimum class complexity1.00
▷ Maximum class complexity287.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes135
▷ Abstract classes21.48%
▷ Concrete classes13398.52%
▷ Final classes00.00%
Methods694
▷ Static methods7610.95%
▷ Public methods55680.12%
▷ Protected methods446.34%
▷ Private methods9413.54%
Functions38
▷ Named functions410.53%
▷ Anonymous functions3489.47%
Constants184
▷ Global constants21.09%
▷ Class constants18298.91%
▷ Public constants182100.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