78% keyspider-search

Code Review | Keyspider Site Search Plugin for Wordpress

WordPress plugin Keyspider Site Search Plugin for Wordpress scored78%from 54 tests.

About plugin

  • Plugin page: keyspider-search
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.0.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2021
  • Latest release: Aug 26, 2022
  • Number of updates: 6
  • Update frequency: every 51.7 days
  • Top authors: keyspider (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /331 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.35ms] Passed 4 tests

Analyzing server-side resources used by Keyspider Site Search Plugin for Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.83 ▼0.35
Dashboard /wp-admin3.32 ▲0.0248.32 ▼1.59
Posts /wp-admin/edit.php3.37 ▲0.0250.00 ▼1.02
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.75 ▼18.45
Media Library /wp-admin/upload.php3.25 ▲0.0235.67 ▲2.53

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Keyspider Site Search Plugin for Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14913.67 ▼0.685.90 ▲3.9143.31 ▼5.20
Dashboard /wp-admin2,225 ▲375.84 ▼0.07101.45 ▼3.9872.00 ▲27.45
Posts /wp-admin/edit.php2,108 ▲192.00 ▼0.0139.19 ▼6.2937.51 ▲2.10
Add New Post /wp-admin/post-new.php1,685 ▲14022.55 ▲4.45653.18 ▲35.4750.43 ▼0.86
Media Library /wp-admin/upload.php1,407 ▲224.24 ▲0.04107.60 ▲7.3546.53 ▲2.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/keyspider-search/admin/partials/keyspider-search-admin-display.php
    • > /wp-content/plugins/keyspider-search/public/partials/keyspider-search-public-display.php
    • > /wp-content/plugins/keyspider-search/admin/templates/common/header.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/keyspider-search/public/partials/keyspider-search-page.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/keyspider-search/admin/templates/authorize.php:18

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

keyspider-search/keyspider-search.php 92% from 13 tests

The primary PHP file in "Keyspider Site Search Plugin for Wordpress" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected441 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP17246687408
CSS25821
JavaScript255012

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.44
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods3173.81%
▷ Protected methods00.00%
▷ Private methods1126.19%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/keyspider_logo_menu-32.png1.22KB1.72KB0.00%
admin/css/keyspider_logo_menu-32.png1.22KB1.72KB0.00%
assets/keyspider_logo_menu.png0.75KB0.74KB▼ 1.04%
assets/keyspider_logo.png3.71KB2.34KB▼ 36.82%