78% doofinder-for-woocommerce

Code Review | Doofinder WP & WooCommerce Search

WordPress plugin Doofinder WP & WooCommerce Search scored78%from 54 tests.

About plugin

  • Plugin page: doofinder-for-woo...
  • Plugin version: 2.1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.1
  • WordPress version: 6.3.1
  • First release: May 27, 2014
  • Latest release: Dec 1, 2023
  • Number of updates: 158
  • Update frequency: every 22.2 days
  • Top authors: doofinder (100%)

Code review

54 tests

User reviews

122 reviews

Install metrics

2,000+ active /100,136 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
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼11.82ms] Passed 4 tests

A check of server-side resources used by Doofinder WP & WooCommerce Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.08 ▲0.6247.94 ▼0.90
Dashboard /wp-admin4.02 ▲0.7246.10 ▼8.18
Posts /wp-admin/edit.php4.13 ▲0.7752.39 ▲8.45
Add New Post /wp-admin/post-new.php4.15 ▼1.7453.37 ▼46.66
Media Library /wp-admin/upload.php4.03 ▲0.8044.86 ▲12.76
/wp-admin/index.php?page=df-setup3.9344.30

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 63 new files
Database: 1 new table, 19 new options
New tables
wp_doofinder_update_on_save
New WordPress options
doofinder_for_wp_custom_attributes
doofinder_setup_wizard_active
doofinder_for_wp_notices
doofinder_setup_wizard_token
doofinder_for_wp_show_once_notices
widget_theysaidso_widget
doofinder_setup_wizard_status
widget_recent-posts
can_compress_scripts
doofinder_for_wp_token
...

Browser metrics Passed 4 tests

An overview of browser requirements for Doofinder WP & WooCommerce Search
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲19814.28 ▼0.071.76 ▲0.1345.17 ▲1.49
Dashboard /wp-admin2,324 ▲1534.91 ▼0.7390.12 ▼13.1285.39 ▲39.71
Posts /wp-admin/edit.php2,245 ▲1422.39 ▲0.4438.61 ▼0.9935.80 ▼1.24
Add New Post /wp-admin/post-new.php6,552 ▲5,02627.84 ▲4.83944.28 ▲285.0740.63 ▼17.58
Media Library /wp-admin/upload.php1,547 ▲1474.39 ▲0.2397.77 ▼1.6968.51 ▲24.93
/wp-admin/index.php?page=df-setup2801.2912.2032.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 19 options in the database
    • widget_recent-comments
    • doofinder_for_wp_notices
    • doofinder_for_wp_plugin_version
    • widget_theysaidso_widget
    • db_upgraded
    • doofinder_update_on_save_last_exec
    • widget_recent-posts
    • can_compress_scripts
    • doofinder_for_wp_dooplugins_host
    • doofinder_for_wp_token
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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 items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/doofinder-for-woocommerce/views/landing.php
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Doofinder\\WP\\Multilanguage\\Language_Plugin' not found in wp-content/plugins/doofinder-for-woocommerce/includes/multilanguage/class-no-language-plugin.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/doofinder-for-woocommerce/views/wizard-step-all-in-one.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Doofinder\\WP\\Settings' not found in wp-content/plugins/doofinder-for-woocommerce/views/wizard-step-1.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/doofinder-for-woocommerce/includes/settings/attributes.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Doofinder\\WP\\wp_scripts() in wp-content/plugins/doofinder-for-woocommerce/views/wizard.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Doofinder\\WP\\_e() in wp-content/plugins/doofinder-for-woocommerce/views/wizard-step-2.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Doofinder\\WP\\_e() in wp-content/plugins/doofinder-for-woocommerce/views/wizard-step-3.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Doofinder\\WP\\Setup_Wizard' not found in wp-content/plugins/doofinder-for-woocommerce/views/wizard-step.php:5
    • > PHP Notice
      Undefined variable: no_steps in wp-content/plugins/doofinder-for-woocommerce/views/wizard-step-3.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'Doofinder\\WP\\Multilanguage\\Language_Plugin' not found in wp-content/plugins/doofinder-for-woocommerce/includes/multilanguage/class-polylang.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: The official readme.txt might help

doofinder-for-woocommerce/doofinder-for-woocommerce.php Passed 13 tests

The main file in "Doofinder WP & WooCommerce Search" v. 2.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
70 characters long description:
Integrate Doofinder Search in your WordPress site or WooCommerce shop.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin6,694 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
PHP531,5143,2475,909
CSS315310388
JavaScript33624360
SVG10037

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.91
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces6
Interfaces1
Traits4
Classes40
▷ Abstract classes12.50%
▷ Concrete classes3997.50%
▷ Final classes00.00%
Methods442
▷ Static methods24254.75%
▷ Public methods28564.48%
▷ Protected methods00.00%
▷ Private methods15735.52%
Functions54
▷ Named functions00.00%
▷ Anonymous functions54100.00%
Constants24
▷ Global constants00.00%
▷ Class constants24100.00%
▷ Public constants24100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/green_checkmark.png1.69KB1.49KB▼ 11.80%