83% site-search-360

Code Review | = Site Search 360

WordPress plugin = Site Search 360 scored83%from 54 tests.

About plugin

  • Plugin page: site-search-360
  • Plugin version: 2.1.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 1, 2016
  • Latest release: Mar 20, 2023
  • Number of updates: 202
  • Update frequency: every 13.0 days
  • Top authors: dsky (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active /25,281 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.04MB] [CPU: ▼2.65ms] Passed 4 tests

Analyzing server-side resources used by = Site Search 360
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.21 ▼0.17
Dashboard /wp-admin3.34 ▲0.0451.65 ▼3.25
Posts /wp-admin/edit.php3.40 ▲0.0457.14 ▲11.22
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.42 ▼11.72
Media Library /wp-admin/upload.php3.27 ▲0.0443.76 ▲4.56

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 9 new options
New WordPress options
ss360_plugin_version
widget_theysaidso_widget
widget_recent-posts
db_upgraded
ss360_installation_id
can_compress_scripts
widget_sitesearch360_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by = Site Search 360
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.30 ▼0.311.78 ▼0.0342.50 ▼6.42
Dashboard /wp-admin2,213 ▲365.61 ▲0.0090.90 ▼10.1473.13 ▲28.58
Posts /wp-admin/edit.php2,115 ▲152.02 ▼0.0136.63 ▼0.3333.74 ▼1.40
Add New Post /wp-admin/post-new.php1,553 ▲2722.82 ▲5.31758.92 ▲71.5756.80 ▼0.26
Media Library /wp-admin/upload.php1,409 ▲124.18 ▼0.02112.30 ▼0.5182.94 ▲35.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_sitesearch360_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SiteSearch360Plugin' not found in wp-content/plugins/site-search-360/sitesearch360-configuration-index-control.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/site-search-360/class-sitesearch360-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/site-search-360/views/sitesearch360-control-panel.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/site-search-360/views/sitesearch360-login-page.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'SiteSearch360Plugin' not found in wp-content/plugins/site-search-360/views/sitesearch360-woocommerce.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SiteSearch360Client' not found in wp-content/plugins/site-search-360/views/sitesearch360-searchtest.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SiteSearch360Plugin' not found in wp-content/plugins/site-search-360/views/sitesearch360-dashboard.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/site-search-360/views/sitesearch360-rating-cta.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/site-search-360/class-sitesearch360-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/site-search-360/sitesearch360-admin-page.php:175

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

site-search-360/sitesearch360.php 77% from 13 tests

The primary PHP file in "= Site Search 360" version 2.1.6 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("site-search-360.php" instead of "sitesearch360.php")
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Description: Please keep the plugin description shorter than 140 characters (currently 232 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected8,201 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
PHP243151863,522
SVG20072,748
CSS62441947
Sass11870920
JSON20037
JavaScript713927

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity78.00
▷ Minimum class complexity24.00
▷ Maximum class complexity157.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods86
▷ Static methods00.00%
▷ Public methods7789.53%
▷ Protected methods00.00%
▷ Private methods910.47%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 1.93MB with 1.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/intro/02_02.png393.27KB104.31KB▼ 73.48%
images/intro/04_02.png506.01KB125.38KB▼ 75.22%
images/intro/01_01.png439.83KB147.50KB▼ 66.46%
images/intro/04_01.png20.68KB9.95KB▼ 51.88%
images/intro/03_01.png407.37KB101.81KB▼ 75.01%