68% site-search-one

Code Review | Site Search ONE

WordPress plugin Site Search ONE scored68%from 54 tests.

About plugin

  • Plugin page: site-search-one
  • Plugin version: 2.0.0.3489
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 6, 2023
  • Latest release: Nov 9, 2023
  • Number of updates: 13
  • Update frequency: every 21.7 days
  • Top authors: electronart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /242 total downloads

Benchmarks

Plugin footprint 65% 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.83MB] [CPU: ▲11.21ms] Passed 4 tests

An overview of server-side resources used by Site Search ONE
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.27 ▲0.8044.65 ▲4.24
Dashboard /wp-admin4.14 ▲0.8361.48 ▲11.58
Posts /wp-admin/edit.php4.21 ▲0.8562.33 ▲14.83
Add New Post /wp-admin/post-new.php6.78 ▲0.89107.97 ▲16.70
Media Library /wp-admin/upload.php4.07 ▲0.8345.94 ▲14.19

Server storage [IO: ▲9.17MB] [DB: ▲0.02MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2,058 new files
Database: 8 new tables, 8 new options
New tables
wp_ss1_site_vars
wp_ss1_tokens
wp_ss1_sync_queue
wp_ss1_globals
wp_ss1_sc1_indexes
wp_ss1_ix_pages
wp_ss1_search_pages
wp_ss1_uploaded_posts
New WordPress options
widget_ss1_searchbar_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
site-search-one-install-location
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Site Search ONE
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9314.37 ▲0.021.55 ▼0.1437.09 ▼9.24
Dashboard /wp-admin2,261 ▲845.73 ▲0.11102.36 ▲8.2641.23 ▼0.05
Posts /wp-admin/edit.php2,163 ▲632.11 ▲0.1441.72 ▲5.2636.10 ▲2.55
Add New Post /wp-admin/post-new.php1,715 ▲18722.12 ▼0.62656.43 ▼29.2869.49 ▲13.72
Media Library /wp-admin/upload.php1,466 ▲694.28 ▲0.11114.59 ▲12.0443.22 ▼0.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie tables were found after uninstall: 8 tables
    • wp_ss1_search_pages
    • wp_ss1_uploaded_posts
    • wp_ss1_site_vars
    • wp_ss1_globals
    • wp_ss1_sc1_indexes
    • wp_ss1_sync_queue
    • wp_ss1_ix_pages
    • wp_ss1_tokens
  • Zombie WordPress options detected upon uninstall: 8 options
    • db_upgraded
    • widget_recent-posts
    • site-search-one-install-location
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_ss1_searchbar_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/site-search-one/admin/partials/site-search-one-admin-display.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > WP_Error Object( [errors] => Array ( [failed_listindex] => Array ( [0] => Failed to retrieve listing of indexes on SC1. ) ) [error_data] => Array ( ) [additional_data
      protected] => Array ( )), referer: http://wp.com/wp-admin/
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/site-search-one/admin/class-site-search-one-searchbar-widget.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/site-search-one/public/hitviewer-styler.php:14
    • > SS1-ERROR Failed Cache Spec Task
      , referer: http://wp.com/wp-admin/
    • > Array( [task_id] => 29 [action] => 3 [post_id] => 0 [index_uuid] => 0), referer
      http://wp.com/wp-admin/
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/site-search-one/templates/js/file-download.js.php:19
    • > {30}SS1-INFO Next task
      , referer: http://wp.com/wp-admin/

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 97% 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 to be fixed:
  • Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png)
The official readme.txt is a good inspiration

site-search-one/site-search-one.php Passed 13 tests

The entry point to "Site Search ONE" version 2.0.0.3489 is a PHP file that has certain tags in its header comment area
41 characters long description:
WordPress Site Search Powered by dtSearch

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected40,270 lines of code in 2,023 files:
LanguageFilesBlank linesComment linesLines of code
SVG1,9590016,631
PHP361,1023,99814,098
Sass1404,018
CSS142522503,107
JSON1001,998
JavaScript1247152418

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity34.76
▷ Minimum class complexity1.00
▷ Maximum class complexity235.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods247
▷ Static methods3815.38%
▷ Public methods16868.02%
▷ Protected methods00.00%
▷ Private methods7931.98%
Functions62
▷ Named functions5690.32%
▷ Anonymous functions69.68%
Constants8
▷ Global constants337.50%
▷ Class constants562.50%
▷ Public constants5100.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