84% awesome-instant-search

Code Review | Awesome Instant Search

WordPress plugin Awesome Instant Search scored84%from 54 tests.

About plugin

  • Plugin page: awesome-instant-s...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.0
  • WordPress version: 6.3.1
  • First release: Sep 14, 2013
  • Latest release: Jan 12, 2014
  • Number of updates: 14
  • Update frequency: every 8.7 days
  • Top authors: jameelbokhari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,547 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Awesome Instant Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0841.30 ▲2.52
Dashboard /wp-admin3.40 ▲0.0944.81 ▼3.20
Posts /wp-admin/edit.php3.45 ▲0.0948.86 ▲2.30
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.47 ▼1.73
Media Library /wp-admin/upload.php3.32 ▲0.0936.23 ▲0.74
Awesome Instant Search /wp-admin/options-general.php?page=awesome-instant-search-options3.2930.42

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 24 new options
New WordPress options
AAS_autocomplete
AAS_fadeOutSpeed
AAS_input
AAS_theme
AAS_screenmin
AAS_pluginDir
AAS_intervalLength
AAS_content
AAS_debug
AAS_alsohide
...

Browser metrics Passed 4 tests

An overview of browser requirements for Awesome Instant Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.65 ▼0.731.56 ▼0.1744.44 ▲2.05
Dashboard /wp-admin2,220 ▲324.86 ▼0.04107.94 ▼7.0940.92 ▼3.94
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0139.82 ▲5.0533.66 ▼2.66
Add New Post /wp-admin/post-new.php1,527 ▼723.22 ▼0.20599.82 ▼86.8551.69 ▼7.42
Media Library /wp-admin/upload.php1,396 ▲114.25 ▲0.0695.84 ▼17.6342.39 ▼4.48
Awesome Instant Search /wp-admin/options-general.php?page=awesome-instant-search-options9322.0423.6529.94

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 24 options in the database
    • can_compress_scripts
    • AAS_after
    • AAS_alsohide
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • AAS_pluginDir
    • AAS_theme
    • AAS_autocomplete
    • AAS_content
    • AAS_debug
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/awesome-instant-search/inc/awesome-ajax-search-options.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/awesome-instant-search/awesome-ajax-search.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: ajax search, instant search, autocomplete, google instant search, search...

awesome-instant-search/awesome-ajax-search.php 92% from 13 tests

The primary PHP file in "Awesome Instant Search" version 1.1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-instant-search.php" instead of "awesome-ajax-search.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected983 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP25287533
JavaScript21727237
PO File14652161
CSS31152

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity72.00
▷ Minimum class complexity72.00
▷ Maximum class complexity72.00
Average method complexity5.73
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1066.67%
▷ Protected methods00.00%
▷ Private methods533.33%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin