90% search-live

Code Review | Search Live

WordPress plugin Search Live scored90%from 54 tests.

About plugin

  • Plugin page: search-live
  • Plugin version: 1.14.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Oct 8, 2015
  • Latest release: Feb 12, 2022
  • Number of updates: 47
  • Update frequency: every 49.4 days
  • Top authors: itthinx (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

1,000+ active /34,442 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.32MB] [CPU: ▼2.44ms] Passed 4 tests

A check of server-side resources used by Search Live
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2446.87 ▲5.02
Dashboard /wp-admin3.65 ▲0.3452.53 ▼2.94
Posts /wp-admin/edit.php3.76 ▲0.4049.67 ▼1.60
Add New Post /wp-admin/post-new.php6.23 ▲0.3499.71 ▼7.19
Media Library /wp-admin/upload.php3.57 ▲0.3441.14 ▲1.97
Thumbnails /wp-admin/admin.php?page=search-live-thumbnails3.5436.76
Search Live /wp-admin/admin.php?page=search-live3.5434.43
Appearance /wp-admin/admin.php?page=search-live-appearance3.5435.49

Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/search-live/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_search_live_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Search Live
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8213.61 ▼0.671.70 ▲0.0638.39 ▼6.43
Dashboard /wp-admin2,249 ▲465.80 ▲0.93101.27 ▼6.7941.09 ▼1.01
Posts /wp-admin/edit.php2,128 ▲252.05 ▲0.0337.49 ▼2.4034.38 ▼0.43
Add New Post /wp-admin/post-new.php1,573 ▲4718.71 ▲1.20629.84 ▼70.1860.51 ▲3.97
Media Library /wp-admin/upload.php1,425 ▲224.23 ▼0.0198.60 ▼8.8942.47 ▼5.42
Thumbnails /wp-admin/admin.php?page=search-live-thumbnails1,0022.0223.8031.15
Search Live /wp-admin/admin.php?page=search-live9932.1423.3141.63
Appearance /wp-admin/admin.php?page=search-live-appearance9922.0224.3930.58

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
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_search_live_widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: ajax, search, ajax search, instant search, live search

search-live/search-live.php Passed 13 tests

The main file in "Search Live" v. 1.14.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
84 characters long description:
Search Live supplies integrated live search facilities and advanced search features.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,030 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP93016721,747
PO File2244276793
JavaScript428104296
CSS31039194

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity39.50
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity5.67
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods66
▷ Static methods6293.94%
▷ Public methods6090.91%
▷ Protected methods00.00%
▷ Private methods69.09%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants71
▷ Global constants1115.49%
▷ Class constants6084.51%
▷ Public constants60100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/search-live.png2.23KB1.78KB▼ 20.05%
images/search-live-256x256.png9.65KB4.51KB▼ 53.27%
images/help.png2.03KB1.97KB▼ 2.94%
images/placeholder.png1.96KB0.76KB▼ 61.43%