84% wp-quick-search

Code Review | WP Quick Search

WordPress plugin WP Quick Search scored84%from 54 tests.

About plugin

  • Plugin page: wp-quick-search
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Oct 21, 2015
  • Latest release: Oct 21, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: haruncpi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,590 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by WP Quick Search
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.34 ▼3.64
Dashboard /wp-admin3.32 ▲0.0246.31 ▼4.64
Posts /wp-admin/edit.php3.37 ▲0.0146.85 ▼0.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.97 ▼19.76
Media Library /wp-admin/upload.php3.24 ▲0.0137.42 ▲2.51

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

WP Quick Search: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲16114.31 ▼0.2716.17 ▲14.2539.54 ▼6.29
Dashboard /wp-admin2,209 ▲244.86 ▼0.1996.49 ▼14.1136.35 ▼12.55
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0245.37 ▲9.9734.13 ▼1.91
Add New Post /wp-admin/post-new.php1,544 ▲2518.39 ▼4.88582.62 ▼6.6058.73 ▼0.26
Media Library /wp-admin/upload.php1,388 ▼34.14 ▼0.0693.95 ▼3.3044.64 ▲0.84

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-quick-search/inc/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-quick-search/wqs-api-search.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-quick-search/inc/shortcode.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
6 plugin tags: easy search, wp quick search, simple searh, quick search, wp search...

wp-quick-search/wp-quick-search.php Passed 13 tests

"WP Quick Search" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
139 characters long description:
WP Quick Search is lightweight angular js base searching plugins. You can use this plugins for you site for live and extremely fast search.

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
Everything looks great! No dangerous files found in this plugin258 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP3181294
JavaScript4725889
CSS112175

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
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
No PNG images were found in this plugin