89% better-ajax-live-searchwp

Code Review | Better Ajax Live SearchWP

WordPress plugin Better Ajax Live SearchWP scored89%from 54 tests.

About plugin

  • Plugin page: better-ajax-live-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2023
  • Latest release: Jan 12, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: anilankola (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /264 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
Installer ran successfully

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

Server-side resources used by Better Ajax Live SearchWP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.04 ▼3.04
Dashboard /wp-admin3.31 ▼0.0352.92 ▼10.24
Posts /wp-admin/edit.php3.36 ▲0.0147.88 ▼2.52
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.72 ▼22.34
Media Library /wp-admin/upload.php3.24 ▲0.0136.53 ▼4.62

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Better Ajax Live SearchWP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲18913.55 ▼1.098.70 ▲6.4243.96 ▼1.02
Dashboard /wp-admin2,230 ▲535.85 ▲0.2594.20 ▲4.0240.26 ▲0.30
Posts /wp-admin/edit.php2,137 ▲372.43 ▲0.4336.94 ▼0.7633.30 ▼4.37
Add New Post /wp-admin/post-new.php1,554 ▲2823.52 ▲6.03699.74 ▲22.3936.84 ▼23.20
Media Library /wp-admin/upload.php1,438 ▲414.52 ▲0.2399.46 ▼21.6344.93 ▼1.50

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

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:
  • Requires php: Version not formatted correctly
The official readme.txt is a good inspiration

better-ajax-live-searchwp/Better-Ajax-Live-SearchWP.php 85% from 13 tests

The main PHP script in "Better Ajax Live SearchWP" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("better-ajax-live-searchwp.php" instead of "Better-Ajax-Live-SearchWP.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected251 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11317227
JavaScript20014
CSS10010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin