88% ultimate-wp-query-search-filter

Code Review | Ultimate WP Query Search Filter

WordPress plugin Ultimate WP Query Search Filter scored 88% from 54 tests.

About plugin

  • Plugin page: ultimate-wp-query...
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 5.8.1
  • First release: Jan 1, 2014
  • Latest release: May 22, 2015
  • Number of updates: 34
  • Update frequency: every 14.9 days
  • Top authors: WP_Dummy (100%)

Code review

54 tests

User reviews

49 reviews

Install metrics

5,000+ active / 78,617 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.33MB] [CPU: ▼140.71ms] Passed 4 tests

Server-side resources used by Ultimate WP Query Search Filter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.14 ▲0.3131.48 ▼4.02
Dashboard /wp-admin3.44 ▲0.3846.67 ▲5.60
Posts /wp-admin/edit.php3.49 ▲0.3847.46 ▲9.27
Add New Post /wp-admin/post-new.php5.73 ▲0.3090.84 ▼569.46
Media Library /wp-admin/upload.php3.32 ▲0.3235.80 ▲5.04
Add Form /wp-admin/admin.php?page=uwpqsfform3.3627.85
Ulitmate WPQSF /wp-admin/admin.php?page=ultimatewpqsf3.2928.96

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate WP Query Search Filter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.88 ▲0.378.02 ▼0.2344.93 ▼3.44
Dashboard /wp-admin3,007 ▲765.92 ▼0.06145.64 ▲7.63113.84 ▲9.15
Posts /wp-admin/edit.php2,773 ▲372.71 ▲0.0265.47 ▼7.0289.88 ▼7.19
Add New Post /wp-admin/post-new.php1,894 ▲22219.20 ▲0.12365.67 ▼14.82106.59 ▲2.56
Media Library /wp-admin/upload.php1,859 ▲525.00 ▼0.03146.95 ▼5.98121.73 ▼1.31
Add Form /wp-admin/admin.php?page=uwpqsfform2,1172.6257.8895.10
Ulitmate WPQSF /wp-admin/admin.php?page=ultimatewpqsf1,2012.0954.9677.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ultimate-wp-query-search-filter/admin/forms.php
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/ultimate-wp-query-search-filter/ultimate-wpqsf.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-wp-query-search-filter/classes/uwpqsf-process-class.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/ultimate-wp-query-search-filter/admin/fields/themeoption.php:2
    • > PHP Warning
      Use of undefined constant UWPQSFBASE - assumed 'UWPQSFBASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-wp-query-search-filter/admin/list-from-class.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'uwpqsfclass' not found in wp-content/plugins/ultimate-wp-query-search-filter/admin/ajax-add-cmf.php:4
    • > PHP Fatal error
      require_once(): Failed opening required 'UWPQSFBASE/admin/class-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/ultimate-wp-query-search-filter/admin/list-from-class.php on line 3
    • > PHP Notice
      Undefined index: gettaxodata in wp-content/plugins/ultimate-wp-query-search-filter/admin/ajax-add-taxo.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/ultimate-wp-query-search-filter/admin/ajax-add-taxo.php:6
    • > PHP Notice
      Undefined index: type in wp-content/plugins/ultimate-wp-query-search-filter/admin/ajax-add-cmf.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ultimate-wp-query-search-filter/admin/fields/misc.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 require attention:
  • Screenshots: Add images for these screenshots: #1 (Ultimate WP Query Search Filter setting page 1), #2 (Ultimate WP Query Search Filter setting page 3), #4 (Ultimate WP Query Search Filter setting page 4), #5 (Ultimate WP Query Search Filter search form in the content and sidebar)
You can look at the official readme.txt

ultimate-wp-query-search-filter/ultimate-wpqsf.php 92% from 13 tests

The principal PHP file in "Ultimate WP Query Search Filter" v. 1.0.10 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ultimate-wp-query-search-filter.php" instead of "ultimate-wpqsf.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,378 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP174633872,108
JavaScript25611206
CSS241164

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity52.67
▷ Minimum class complexity9.00
▷ Maximum class complexity100.00
Average method complexity5.03
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods77
▷ Static methods00.00%
▷ Public methods77100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.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
8 PNG files occupy 0.30MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png56.45KB19.90KB▼ 64.75%
screenshot-1.png35.42KB12.34KB▼ 65.16%
screenshot-3.png77.91KB26.59KB▼ 65.87%
admin/scripts/images/arrow-down.png1.23KB1.14KB▼ 6.92%
themes/default.png51.97KB17.91KB▼ 65.54%