83% advanced-woo-search

Code Review | Advanced Woo Search

WordPress plugin Advanced Woo Search scored83%from 54 tests.

About plugin

  • Plugin page: advanced-woo-search
  • Plugin version: 2.93
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 30, 2016
  • Latest release: Nov 27, 2023
  • Number of updates: 285
  • Update frequency: every 10.0 days
  • Top authors: Mihail Barinov (100%)

Code review

54 tests

User reviews

222 reviews

Install metrics

70,000+ active /3,197,245 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.53ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Woo Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.49 ▼7.97
Dashboard /wp-admin3.34 ▼0.0047.56 ▼13.92
Posts /wp-admin/edit.php3.46 ▲0.1046.78 ▲0.46
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.44 ▼0.70
Media Library /wp-admin/upload.php3.27 ▲0.0438.92 ▲5.00

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 98 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Advanced Woo Search: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲6014.14 ▼0.141.65 ▲0.0436.09 ▼8.18
Dashboard /wp-admin2,201 ▲245.64 ▼0.2092.88 ▲3.0139.18 ▼6.80
Posts /wp-admin/edit.php2,107 ▲71.97 ▲0.0139.84 ▲0.9637.12 ▲2.35
Add New Post /wp-admin/post-new.php1,532 ▲622.98 ▼0.23707.15 ▲37.6755.86 ▼4.75
Media Library /wp-admin/upload.php1,409 ▲94.21 ▼0.03102.13 ▼1.4042.15 ▼1.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/advanced-woo-search/includes/modules/elementor-widget/class-elementor-aws-widget.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/advanced-woo-search/includes/modules/bb-aws-search/class-aws-bb-module.php:3
    • > PHP Notice
      Trying to get property 'placeholder' of non-object in wp-content/plugins/advanced-woo-search/includes/modules/bb-aws-search/includes/frontend.php on line 3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/advanced-woo-search/includes/modules/bb-aws-search/includes/frontend.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function aws_get_search_form() in wp-content/plugins/advanced-woo-search/includes/modules/bb-aws-search/includes/frontend.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-woo-search/includes/modules/divi/class-divi-aws-module.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-woo-search/includes/widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: There are too many tags (33 tag instead of maximum 10)
  • Screenshots: Add a description for screenshot #5 in advanced-woo-search/assets to your readme.txt
You can look at the official readme.txt

advanced-woo-search/advanced-woo-search.php 92% from 13 tests

The principal PHP file in "Advanced Woo Search" v. 2.93 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0.0")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected12,504 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
PHP553,3362,6859,697
CSS8205201,198
PO File3285207840
JavaScript627219768
SVG1001

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
It is recommended to fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 105)
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity35.81
▷ Minimum class complexity1.00
▷ Maximum class complexity216.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity105.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes53
▷ Abstract classes00.00%
▷ Concrete classes53100.00%
▷ Final classes11.89%
Methods425
▷ Static methods6816.00%
▷ Public methods36686.12%
▷ Protected methods30.71%
▷ Private methods5613.18%
Functions13
▷ Named functions1184.62%
▷ Anonymous functions215.38%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/btn-layout3.png0.82KB0.52KB▼ 36.23%
assets/img/pro/feature7.png8.27KB8.55KB0.00%
assets/img/pro/feature3.png4.01KB3.94KB▼ 1.58%
assets/img/pro/feature12.png6.97KB7.14KB0.00%
assets/img/logo-small.png1.64KB0.64KB▼ 60.93%