84% quicksearch-site-search

Code Review | WP Plugin QuickSearch

WordPress plugin WP Plugin QuickSearch scored84%from 54 tests.

About plugin

  • Plugin page: quicksearch-site-...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.4.2
  • WordPress version: 6.3.1
  • First release: Apr 19, 2016
  • Latest release: Apr 19, 2016
  • Number of updates: 7
  • Update frequency: every 56.4 days
  • Top authors: morimasato (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /515 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by WP Plugin QuickSearch
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.68 ▼2.96
Dashboard /wp-admin3.33 ▼0.0244.91 ▼26.69
Posts /wp-admin/edit.php3.38 ▲0.0248.59 ▲5.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.24 ▼2.36
Media Library /wp-admin/upload.php3.25 ▲0.0231.79 ▼4.93
Quick Search for Wordpress /wp-admin/options-general.php?page=quicksearch-site-search/wp-plugin-quicksearch.php3.2231.11

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Plugin QuickSearch
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.21 ▼1.194.66 ▲2.4243.83 ▼6.43
Dashboard /wp-admin2,207 ▲285.80 ▲0.95106.34 ▼11.2042.11 ▼4.22
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0140.86 ▲5.0335.04 ▲2.55
Add New Post /wp-admin/post-new.php1,517 ▼217.52 ▼5.80663.37 ▼26.4253.01 ▼7.39
Media Library /wp-admin/upload.php1,392 ▲74.24 ▲0.0495.81 ▼8.3040.92 ▼5.35
Quick Search for Wordpress /wp-admin/options-general.php?page=quicksearch-site-search/wp-plugin-quicksearch.php7802.0627.5528.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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 errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quicksearch-site-search/wp-plugin-quicksearch.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
1 plugin tags: search

quicksearch-site-search/wp-plugin-quicksearch.php 92% from 13 tests

The main PHP file in "WP Plugin QuickSearch" ver. 1.01 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("quicksearch-site-search.php" instead of "wp-plugin-quicksearch.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected109 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1727109

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Constants2
▷ Global constants2100.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