83% vk-filter-search

Code Review | VK Filter Search

WordPress plugin VK Filter Search scored83%from 54 tests.

About plugin

  • Plugin page: vk-filter-search
  • Plugin version: 2.3.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3
  • WordPress version: 6.3.1
  • First release: Oct 20, 2020
  • Latest release: Oct 25, 2023
  • Number of updates: 119
  • Update frequency: every 9.3 days
  • Top authors: vektor-inc (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

5,000+ active /72,647 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.29MB] [CPU: ▼4.62ms] Passed 4 tests

Server-side resources used by VK Filter Search
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3141.38 ▲1.38
Dashboard /wp-admin3.59 ▲0.2448.38 ▼8.02
Posts /wp-admin/edit.php3.70 ▲0.3448.54 ▼2.19
Add New Post /wp-admin/post-new.php6.28 ▲0.3988.00 ▼8.30
Media Library /wp-admin/upload.php3.51 ▲0.2834.32 ▲0.03
Add New /wp-admin/post-new.php?post_type=filter-search6.2885.29
VK Filter Search /wp-admin/edit.php?post_type=filter-search3.5538.05

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

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

Browser metrics Passed 4 tests

VK Filter Search: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.35 ▼0.301.73 ▲0.0253.27 ▲12.53
Dashboard /wp-admin2,226 ▲495.56 ▼0.0183.86 ▼3.2837.30 ▼1.61
Posts /wp-admin/edit.php2,128 ▲312.01 ▼0.0039.64 ▲0.6236.04 ▼3.66
Add New Post /wp-admin/post-new.php6,233 ▲4,69618.96 ▲0.78866.04 ▲251.4859.51 ▲0.32
Media Library /wp-admin/upload.php1,431 ▲314.24 ▲0.03103.35 ▲6.2045.51 ▲2.26
Add New /wp-admin/post-new.php?post_type=filter-search6,16919.08850.0233.86
VK Filter Search /wp-admin/edit.php?post_type=filter-search1,1031.9929.5030.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/vk-filter-search/inc/dropdown-categories/class-vk-walker-catrgory-dropdown.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-filter-search/inc/filter-search/package/class-vk-filter-search.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vk-filter-search/inc/filter-search/package/class-vk-filter-search-shortcode.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vk-filter-search/inc/filter-search/config.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-filter-search/inc/filter-search/package/src/call-filter-search/index.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vk-filter-search/inc/filter-search/package/class-vk-filter-search-block.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vk-filter-search/inc/patches/patches/6.0/patch.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vk-filter-search/inc/patches/6.0/patch.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Screenshots: These screenshots have no corresponding images in /assets: #2 (List View), #3 (Display this form on your search result page), #4 (Search Results page)
Please take inspiration from this readme.txt

vk-filter-search/vk-filter-search.php 92% from 13 tests

"VK Filter Search" version 2.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("6.0" instead of "5.7")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin3,930 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript29152991,890
PHP162765191,548
Sass55928354
JSON600120
SVG70016
CSS2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity37.75
▷ Minimum class complexity8.00
▷ Maximum class complexity121.00
Average method complexity4.87
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods38
▷ Static methods3489.47%
▷ Public methods38100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions1881.82%
▷ Anonymous functions418.18%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.59MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png79.25KB27.89KB▼ 64.80%
screenshot-3.png67.79KB23.56KB▼ 65.24%
screenshot-4.png40.72KB14.39KB▼ 64.67%
screenshot-2.png51.78KB17.82KB▼ 65.59%
.wordpress-org/banner-772x250.png42.03KB20.17KB▼ 52.01%