93% advanced-woo-search

Code Review | Advanced Woo Search

WordPress plugin Advanced Woo Search scored 93% from 54 tests.

About plugin

  • Plugin page: advanced-woo-search
  • Plugin version: 2.51
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.9
  • WordPress version: 5.9.2
  • First release: Jan 30, 2016
  • Latest release: Mar 28, 2022
  • Number of updates: 233
  • Update frequency: every 9.7 days
  • Top authors: Mihail Barinov (100%)

Code review

54 tests

User reviews

188 reviews

Install metrics

70,000+ active / 1,926,615 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼294.65ms] Passed 4 tests

Server-side resources used by Advanced Woo Search
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0161.33 ▲9.63
Dashboard /wp-admin3.41 ▲0.0135.59 ▼2.93
Posts /wp-admin/edit.php3.65 ▲0.0142.20 ▼1.15
Add New Post /wp-admin/post-new.php6.88 ▼0.0893.66 ▼1,175.80
Media Library /wp-admin/upload.php3.30 ▲0.0026.64 ▲1.28

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 77 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Woo Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲3715.67 ▼0.045.82 ▼0.271.94 ▼0.33
Dashboard /wp-admin2,881 ▲236.10 ▼0.09119.14 ▼18.41169.17 ▲8.02
Posts /wp-admin/edit.php2,698 ▲73.25 ▲0.0064.92 ▲0.25147.00 ▼6.76
Add New Post /wp-admin/post-new.php1,667 ▲616.06 ▼0.44411.75 ▲1.68152.88 ▼1.15
Media Library /wp-admin/upload.php1,708 ▲105.49 ▼0.02146.53 ▲6.06201.63 ▲17.25

Uninstaller [IO: ✅] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 5× PHP files trigger server-side errors or warnings 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: 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 aws_get_search_form() in wp-content/plugins/advanced-woo-search/includes/modules/bb-aws-search/includes/frontend.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-woo-search/includes/widget.php:6
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Screenshots: A description for screenshot #5 is missing in advanced-woo-search/assets to your readme.txt
  • Tags: Too many tags (33 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

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

The main PHP file in "Advanced Woo Search" ver. 2.51 adds more information about the plugin and also serves as the entry point for this plugin
It is important 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 Passed 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 detected11,243 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP422,9192,1568,468
CSS5205201,193
PO File3285207840
JavaScript326219741
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity40.88
▷ Minimum class complexity1.00
▷ Maximum class complexity239.00
Average method complexity5.56
▷ Minimum method complexity1.00
▷ Maximum method complexity99.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes40
▷ Abstract classes00.00%
▷ Concrete classes40100.00%
▷ Final classes12.50%
Methods350
▷ Static methods5515.71%
▷ Public methods29383.71%
▷ Protected methods30.86%
▷ Private methods5415.43%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
16 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/pro/feature9.png5.85KB6.01KB0.00%
assets/img/pro/feature7.png8.27KB8.55KB0.00%
assets/img/pro/feature5.png8.48KB8.70KB0.00%
assets/img/pro/feature11.png2.20KB2.15KB▼ 2.35%
assets/img/pro/feature4.png4.13KB4.18KB0.00%