78% improved-search

Code Review | Improved Quick Search

WordPress plugin Improved Quick Search scored78%from 54 tests.

About plugin

  • Plugin page: improved-search
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 6.3.1
  • First release: Nov 15, 2020
  • Latest release: Jan 1, 2021
  • Number of updates: 10
  • Update frequency: every 96.3 days
  • Top authors: jeremypreed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /491 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▲3.17ms] Passed 4 tests

A check of server-side resources used by Improved Quick Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1444.04 ▲4.60
Dashboard /wp-admin3.44 ▲0.1352.51 ▲1.44
Posts /wp-admin/edit.php3.55 ▲0.1949.74 ▲3.12
Add New Post /wp-admin/post-new.php6.02 ▲0.1395.25 ▲8.90
Media Library /wp-admin/upload.php3.36 ▲0.1338.35 ▲3.50

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options
mbis-version
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_improved_search_widget

Browser metrics Passed 4 tests

A check of browser resources used by Improved Quick Search
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲18514.01 ▼0.429.82 ▲7.2099.20 ▲56.28
Dashboard /wp-admin2,222 ▲344.82 ▼1.04106.01 ▲1.9838.54 ▼3.37
Posts /wp-admin/edit.php2,108 ▲192.00 ▼0.0345.39 ▲5.4736.97 ▲1.90
Add New Post /wp-admin/post-new.php1,537 ▲423.07 ▼0.09605.45 ▼60.6553.86 ▼17.89
Media Library /wp-admin/upload.php1,401 ▲134.29 ▲0.07117.48 ▲11.1646.18 ▲1.28

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
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • mbis-version
    • can_compress_scripts
    • widget_improved_search_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
  • 8× PHP files output text when accessed directly:
    • > /wp-content/plugins/improved-search/includes/class-template-builder.php
    • > /wp-content/plugins/improved-search/includes/class-search.php
    • > /wp-content/plugins/improved-search/includes/class-base.php
    • > /wp-content/plugins/improved-search/includes/class-settings-menu.php
    • > /wp-content/plugins/improved-search/includes/template-search.php
    • > /wp-content/plugins/improved-search/improved-search.php
    • > /wp-content/plugins/improved-search/includes/class-widget.php
    • > /wp-content/plugins/improved-search/includes/class-shortcode.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to a member function create_section() on null in wp-content/plugins/improved-search/includes/template-settings-menu.php:16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/improved-search/includes/template-search.php on line 2
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/improved-search/includes/template-search.php on line 2
    • > PHP Notice
      Trying to get property 'Builder' of non-object in wp-content/plugins/improved-search/includes/template-settings-menu.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: search, ajax

improved-search/improved-search.php 85% from 13 tests

The primary PHP file in "Improved Quick Search" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)

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
Everything looks great! No dangerous files found in this plugin1,196 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP913627612
CSS58626377
JavaScript2137207

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.56
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods3294.12%
▷ Protected methods00.00%
▷ Private methods25.88%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin