89% best-wp-ajax-search

Code Review | Best WP Ajax Search

WordPress plugin Best WP Ajax Search scored89%from 54 tests.

About plugin

  • Plugin page: best-wp-ajax-search
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0
  • WordPress version: 6.3.1
  • First release: Mar 8, 2022
  • Latest release: Jun 24, 2022
  • Number of updates: 3
  • Update frequency: every 36.0 days
  • Top authors: aminnz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /904 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼12.77ms] Passed 4 tests

Server-side resources used by Best WP Ajax Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.66 ▼8.66
Dashboard /wp-admin3.32 ▼0.0343.75 ▼15.74
Posts /wp-admin/edit.php3.37 ▲0.0143.68 ▼6.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.80 ▼20.52
Media Library /wp-admin/upload.php3.24 ▲0.0134.15 ▲1.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Best WP Ajax Search
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲21115.22 ▲0.8619.12 ▲17.4038.10 ▼4.49
Dashboard /wp-admin2,203 ▲154.84 ▼1.19100.21 ▼16.1239.38 ▼2.52
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0633.95 ▼1.4531.60 ▼0.78
Add New Post /wp-admin/post-new.php1,542 ▲2218.38 ▼4.62631.90 ▼26.9453.07 ▲5.95
Media Library /wp-admin/upload.php1,388 ▼04.14 ▼0.0794.74 ▼15.3641.36 ▼7.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: ajax search, search plugin, react search plguin, live search

best-wp-ajax-search/index.php 77% from 13 tests

The main PHP file in "Best WP Ajax Search" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("best-wp-ajax-search.php" instead of "index.php")
  • Domain Path: The domain path folder was not found ("/languages/")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin38 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4201036
CSS1001
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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