62% search-everything

Code Review | Search Everything

WordPress plugin Search Everything scored62%from 54 tests.

About plugin

  • Plugin page: search-everything
  • Plugin version: 8.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7.3
  • WordPress version: 6.3.1
  • First release: Oct 26, 2006
  • Latest release: Apr 1, 2017
  • Number of updates: 228
  • Update frequency: every 16.7 days
  • Top authors: dancameron (78.51%)ddksr (9.21%)sparkica (8.33%)sovrn (3.51%)zemanta (1.75%)

Code review

54 tests

User reviews

86 reviews

Install metrics

30,000+ active /1,270,667 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.20MB] [CPU: ▼43.74ms] Passed 4 tests

Analyzing server-side resources used by Search Everything
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.76 ▼0.7015.30 ▼24.99
Dashboard /wp-admin2.81 ▼0.4916.45 ▼35.74
Posts /wp-admin/edit.php2.82 ▼0.5418.02 ▼25.92
Add New Post /wp-admin/post-new.php2.81 ▼3.0716.61 ▼88.31
Media Library /wp-admin/upload.php2.82 ▼0.4118.38 ▼15.84
Search Everything /wp-admin/options-general.php?page=extend_search2.8217.55

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 68 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
se_meta
can_compress_scripts
se_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Search Everything
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10114.48 ▲0.051.78 ▼0.0542.52 ▼1.44
Dashboard /wp-admin2,236 ▲485.81 ▲0.73103.07 ▼11.7444.08 ▼0.27
Posts /wp-admin/edit.php2,105 ▲162.04 ▼0.0040.55 ▼1.4534.34 ▼0.53
Add New Post /wp-admin/post-new.php6,470 ▲4,93720.39 ▼2.75934.06 ▲309.1263.12 ▲8.87
Media Library /wp-admin/upload.php1,395 ▲44.21 ▼0.0094.68 ▼7.2044.58 ▲1.00
Search Everything /wp-admin/options-general.php?page=extend_search1,4052.0927.4843.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/search-everything/config.php+29
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=extend_search
    • > Notice in wp-content/plugins/search-everything/config.php+29
    Trying to access array offset on value of type bool

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 items
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/search-everything/views/options_page_errors.php
    • > /wp-content/plugins/search-everything/views/options_page_notice.php
    • > /wp-content/plugins/search-everything/views/admin_head.php
    • > /wp-content/plugins/search-everything/views/global_notice.php
    • > /wp-content/plugins/search-everything/views/global_head.php
  • 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: close_url in wp-content/plugins/search-everything/views/options_page_notice.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/search-everything/views/options_page.php:2
    • > PHP Notice
      Undefined variable: notice in wp-content/plugins/search-everything/views/global_notice.php on line 3
    • > PHP Warning
      Use of undefined constant SE_VERSION - assumed 'SE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/search-everything/views/global_head.php on line 2
    • > PHP Warning
      Use of undefined constant SE_PREFS_STATE_NOT_ENGLISH - assumed 'SE_PREFS_STATE_NOT_ENGLISH' (this will throw an Error in a future version of PHP) in wp-content/plugins/search-everything/config.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/search-everything/views/global_notice.php on line 4
    • > PHP Notice
      Undefined variable: close_url in wp-content/plugins/search-everything/views/global_notice.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/search-everything/search-everything.php:16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/search-everything/views/admin_head.php on line 2
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/search-everything/views/options_page_errors.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Screenshot of the options panel), #2 (Screenshot of the writing helper Research Everything), #3 (Screenshot of a post with search results from the Research Everything writing helper)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === search-everything === )
Please take inspiration from this readme.txt

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

The main file in "Search Everything" v. 8.1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 325 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
Good job! No executable or dangerous file extensions detected4,251 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PO File219101,3042,131
PHP10269931,560
JavaScript1302241
HTML1570203
CSS3130116

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity104.00
▷ Minimum class complexity57.00
▷ Maximum class complexity151.00
Average method complexity6.28
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.30MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
static/img/search.png0.33KB0.36KB0.00%
static/img/zem-logo.png2.28KB1.27KB▼ 44.26%
screenshot-1.png99.84KB29.63KB▼ 70.32%
screenshot-3.png109.21KB40.46KB▼ 62.96%
screenshot-2.png95.77KB32.14KB▼ 66.44%