84% wp-search-suggest

Code Review | WP Search Suggest

WordPress plugin WP Search Suggest scored84%from 54 tests.

About plugin

  • Plugin page: wp-search-suggest
  • Plugin version: 8...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.4
  • WordPress version: 6.3.1
  • First release: Apr 29, 2011
  • Latest release: Nov 13, 2023
  • Number of updates: 33
  • Update frequency: every 138.9 days
  • Top authors: obenland (63.64%)kobenland (39.39%)

Code review

54 tests

User reviews

11 reviews

Install metrics

700+ active /28,249 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.01MB] [CPU: ▼34.13ms] Passed 4 tests

An overview of server-side resources used by WP Search Suggest
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0334.10 ▼3.57
Dashboard /wp-admin3.33 ▼0.0244.70 ▼35.62
Posts /wp-admin/edit.php3.38 ▲0.0248.55 ▼97.44
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.45 ▲8.61
Media Library /wp-admin/upload.php3.25 ▲0.0232.78 ▲0.10

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

WP Search Suggest: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲16013.76 ▼0.5910.54 ▲8.8445.50 ▲4.55
Dashboard /wp-admin2,192 ▲155.59 ▼0.0891.93 ▼113.3845.73 ▼40.73
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0140.20 ▼53.1235.53 ▼41.51
Add New Post /wp-admin/post-new.php1,534 ▲823.20 ▼0.42608.60 ▼61.6945.44 ▼3.54
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0399.62 ▼3.3141.00 ▼1.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 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/wp-search-suggest/wp-search-suggest.php:47

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: ajax, search, jquery

wp-search-suggest/wp-search-suggest.php 92% from 13 tests

Analyzing the main PHP file in "WP Search Suggest" version 8...
You should first fix the following items:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "8...")

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
No dangerous file extensions were detected208 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File2154080
PHP1193872
JavaScript21032
CSS22024

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin