90% gsearch-plus

Code Review | gee Search Plus, improved WordPress search

WordPress plugin gee Search Plus, improved WordPress search scored90%from 54 tests.

About plugin

  • Plugin page: gsearch-plus
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.6.1
  • WordPress version: 6.3.1
  • First release: Mar 12, 2013
  • Latest release: Dec 2, 2016
  • Number of updates: 50
  • Update frequency: every 27.2 days
  • Top authors: luistinygod (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

200+ active /13,100 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
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.30ms] Passed 4 tests

This is a short check of server-side resources used by gee Search Plus, improved WordPress search
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1141.04 ▲0.09
Dashboard /wp-admin3.43 ▲0.1247.21 ▲0.06
Posts /wp-admin/edit.php3.55 ▲0.1843.87 ▼3.15
Add New Post /wp-admin/post-new.php6.01 ▲0.1280.95 ▼22.19
Media Library /wp-admin/upload.php3.35 ▲0.1233.78 ▲0.24
geeSearch Plus /wp-admin/options-general.php?page=gee-search-plus3.3330.75

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
gee_searchplus_options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for gee Search Plus, improved WordPress search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.35 ▲0.181.68 ▲0.0145.27 ▲0.27
Dashboard /wp-admin2,202 ▲285.63 ▲0.0984.54 ▼2.3738.76 ▼3.97
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0134.95 ▼1.4634.24 ▲1.48
Add New Post /wp-admin/post-new.php1,531 ▲523.43 ▲0.21693.59 ▲25.1456.51 ▲1.06
Media Library /wp-admin/upload.php1,404 ▲104.19 ▼0.0294.09 ▼3.9045.56 ▼0.44
geeSearch Plus /wp-admin/options-general.php?page=gee-search-plus1,1812.4252.9132.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: highlight search terms, search, improve search, custom fields, stopwords...

gsearch-plus/gee-search-plus.php 92% from 13 tests

"gee Search Plus, improved WordPress search" version 1.4.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gsearch-plus.php" instead of "gee-search-plus.php")

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 detected3,798 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP173632603,696
PO File1263072
JavaScript211422
CSS1018

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity31.00
▷ Minimum class complexity6.00
▷ Maximum class complexity83.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods47
▷ Static methods48.51%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin