78% auto-search-suggestion

Code Review | Auto Search Suggestion

WordPress plugin Auto Search Suggestion scored78%from 54 tests.

About plugin

  • Plugin page: auto-search-sugge...
  • Plugin version: 5.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2015
  • Latest release: Dec 26, 2022
  • Number of updates: 37
  • Update frequency: every 78.7 days
  • Top authors: biztechc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,081 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.96ms] Passed 4 tests

A check of server-side resources used by Auto Search Suggestion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0942.96 ▲1.15
Dashboard /wp-admin3.44 ▲0.0958.19 ▲6.23
Posts /wp-admin/edit.php3.55 ▲0.1547.36 ▼3.44
Add New Post /wp-admin/post-new.php6.02 ▲0.0988.82 ▼16.21
Media Library /wp-admin/upload.php3.36 ▲0.0939.20 ▲2.66
Front Side Settings /wp-admin/admin.php?page=auto-suggest-front3.3034.48
Admin Side Settings /wp-admin/admin.php?page=auto-suggest3.3034.07

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Auto Search Suggestion
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.17 ▼0.321.73 ▼0.0244.17 ▼0.06
Dashboard /wp-admin2,224 ▲565.63 ▼0.0186.90 ▼5.1639.45 ▼3.05
Posts /wp-admin/edit.php2,129 ▲292.01 ▲0.0238.90 ▲1.8536.16 ▲1.94
Add New Post /wp-admin/post-new.php1,550 ▲2423.02 ▼0.30708.46 ▲85.7853.28 ▼16.19
Media Library /wp-admin/upload.php1,429 ▲294.19 ▼0.06104.03 ▼0.4746.16 ▼1.01
Front Side Settings /wp-admin/admin.php?page=auto-suggest-front9552.0021.9527.99
Admin Side Settings /wp-admin/admin.php?page=auto-suggest9182.0022.9027.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 17 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=auto-suggest
    • > Warning in wp-content/plugins/auto-search-suggestion/auto-search-suggestion.php+237
    in_array() expects parameter 2 to be array, bool given

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/auto-search-suggestion/auto-search-suggestion.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png), #6 (screenshot-6.png)
Please take inspiration from this readme.txt

auto-search-suggestion/auto-search-suggestion.php 85% from 13 tests

"Auto Search Suggestion" version 5.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Good job! No executable or dangerous file extensions detected555 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP19778484
CSS2131271

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png6.50KB2.66KB▼ 59.09%
screenshot-6.png67.86KB27.28KB▼ 59.80%
screenshot-2.png28.12KB10.07KB▼ 64.18%
screenshot-5.png44.33KB17.70KB▼ 60.06%
screenshot-3.png62.74KB24.70KB▼ 60.64%