84% wp-search-auto-match

Code Review | WP Search Auto Match

WordPress plugin WP Search Auto Match scored84%from 54 tests.

About plugin

  • Plugin page: wp-search-auto-match
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Jan 31, 2014
  • Latest release: Mar 10, 2014
  • Number of updates: 23
  • Update frequency: every 1.6 days
  • Top authors: eflyjason (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,857 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.21ms] Passed 4 tests

Server-side resources used by WP Search Auto Match
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0141.57 ▼6.63
Dashboard /wp-admin3.57 ▼0.0648.27 ▼17.79
Posts /wp-admin/edit.php3.69 ▲0.0150.53 ▼6.27
Add New Post /wp-admin/post-new.php6.16 ▲0.0196.24 ▼14.13
Media Library /wp-admin/upload.php3.50 ▲0.0141.55 ▲2.92

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Search Auto Match
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲12913.47 ▼1.119.90 ▲8.1843.29 ▲1.55
Dashboard /wp-admin2,198 ▲185.69 ▲0.0493.86 ▼3.9539.13 ▼0.07
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0539.51 ▼1.3735.36 ▼2.02
Add New Post /wp-admin/post-new.php1,549 ▲2323.35 ▲5.87671.20 ▼115.8553.12 ▼12.13
Media Library /wp-admin/upload.php1,400 ▲34.27 ▲0.03110.85 ▲1.0347.47 ▼1.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-search-auto-match/wp-search-auto-match.php:32

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 Passed 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: match, search form, search

wp-search-auto-match/wp-search-auto-match.php Passed 13 tests

The principal PHP file in "WP Search Auto Match" v. 1.1 is loaded by WordPress automatically on each request
70 characters long description:
Add Search Keywork Hint like Google Search to your blog's search form.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected209 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript42928145
CSS20036
PHP1122128

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin