78% advanced-woo-ajax-search

Code Review | Advanced Woo Ajax Search

WordPress plugin Advanced Woo Ajax Search scored78%from 54 tests.

About plugin

  • Plugin page: advanced-woo-ajax...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3
  • WordPress version: 6.3.1
  • First release: Apr 20, 2022
  • Latest release: Oct 10, 2023
  • Number of updates: 7
  • Update frequency: every 76.9 days
  • Top authors: faridmia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /289 total downloads


Plugin footprint 83% 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.20MB] [CPU: ▲1.17ms] Passed 4 tests

Server-side resources used by Advanced Woo Ajax Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1745.30 ▲6.64
Dashboard /wp-admin3.57 ▲0.2753.90 ▲1.10
Posts /wp-admin/edit.php3.62 ▲0.2751.99 ▲4.37
Add New Post /wp-admin/post-new.php6.08 ▲0.2095.22 ▼2.54
Media Library /wp-admin/upload.php3.41 ▲0.1836.37 ▲1.73

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 9 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Woo Ajax Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,097 ▲33615.39 ▲1.025.69 ▲4.0742.50 ▼3.40
Dashboard /wp-admin2,391 ▲2146.58 ▲0.95113.44 ▲23.9839.52 ▼0.13
Posts /wp-admin/edit.php2,317 ▲2173.72 ▲1.7750.06 ▲11.9731.25 ▼2.89
Add New Post /wp-admin/post-new.php1,736 ▲21022.99 ▼0.05619.77 ▼49.2641.28 ▼10.73
Media Library /wp-admin/upload.php1,453 ▲504.52 ▲0.2880.19 ▼18.3841.21 ▼5.38

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_woolivetitlewidget
    • awas_woo_inf_color
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • awas_woo_inf_basics

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/advanced-woo-ajax-search/public/partials/advanced-awas-woo-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-woo-ajax-search/includes/functions.php:38

User-side errors Passed 1 test

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


Plugin configuration 90% 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
Attributes that require attention: The official readme.txt is a good inspiration

advanced-woo-ajax-search/advanced-woo-ajax-search.php 85% from 13 tests

The entry point to "Advanced Woo Ajax Search" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 155 characters long)

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 detected5,894 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.17
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
▷ Static methods23.28%
▷ Public methods5691.80%
▷ Protected methods00.00%
▷ Private methods58.20%
▷ Named functions685.71%
▷ Anonymous functions114.29%
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin