10% combined-search

Code Review | Combined Search

WordPress plugin Combined Search scored10%from 54 tests.

About plugin

  • Plugin page: combined-search
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 14, 2018
  • Latest release: Feb 14, 2018
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: temeritystudios (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,122 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/combined-search/includes/class-combined-search.php+77
    Non-static method Combined_Search_Options::get_instance() should not be called statically

Server metrics [RAM: ▼1.97MB] [CPU: ▼52.40ms] Passed 4 tests

This is a short check of server-side resources used by Combined Search
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.50 ▼35.53
Dashboard /wp-admin2.05 ▼1.309.47 ▼49.13
Posts /wp-admin/edit.php2.05 ▼1.315.39 ▼40.28
Add New Post /wp-admin/post-new.php2.05 ▼3.844.69 ▼84.67
Media Library /wp-admin/upload.php2.05 ▼1.185.20 ▼27.94
Combined Search /wp-admin/options-general.php?page=combined_search2.057.15

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Combined Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.35 ▲0.001.79 ▼0.0740.16 ▲2.88
Dashboard /wp-admin2,199 ▲245.64 ▼0.0193.06 ▼8.5236.19 ▼3.68
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0233.85 ▼0.3336.09 ▼3.94
Add New Post /wp-admin/post-new.php1,538 ▲1018.04 ▼5.03586.62 ▼16.9869.49 ▲11.69
Media Library /wp-admin/upload.php1,404 ▲14.29 ▲0.0992.06 ▼15.8842.47 ▼4.79
Combined Search /wp-admin/options-general.php?page=combined_search1,0472.0022.1328.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/combined-search/includes/class-combined-search.php+77
    Non-static method Combined_Search_Options::get_instance() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=combined_search
    • > Deprecated in wp-content/plugins/combined-search/includes/class-combined-search-search-query.php+36
    Non-static method Combined_Search_Options::get_instance() should not be called statically

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/combined-search/admin/partials/options-errors.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/combined-search/admin/partials/options-display.php:3
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/combined-search/admin/partials/options-errors.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

combined-search/combined-search.php Passed 13 tests

"Combined Search" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
137 characters long description:
Forked from the popular Search Everywhere plugin, Combined Search allows you to search all available content types on your WordPress site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected6,353 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity23.17
▷ Minimum class complexity1.00
▷ Maximum class complexity104.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3666.67%
▷ Protected methods1222.22%
▷ Private methods611.11%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin