89% filter-everything

Code Review | Filter Everything — Product Filter & WordPress Filter

WordPress plugin Filter Everything — Product Filter & WordPress Filter scored89%from 54 tests.

About plugin

  • Plugin page: filter-everything
  • Plugin version: 1.7.15
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jun 22, 2021
  • Latest release: Aug 2, 2023
  • Number of updates: 67
  • Update frequency: every 12.3 days
  • Top authors: Stepasyuk (100%)

Code review

54 tests

User reviews

91 reviews

Install metrics

20,000+ active /259,796 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲2.91MB] [CPU: ▲21.33ms] Passed 4 tests

A check of server-side resources used by Filter Everything — Product Filter & WordPress Filter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /6.32 ▲2.8562.82 ▲24.76
Dashboard /wp-admin6.24 ▲2.9362.79 ▲14.52
Posts /wp-admin/edit.php6.30 ▲2.9468.70 ▲22.46
Add New Post /wp-admin/post-new.php8.84 ▲2.95112.00 ▲26.62
Media Library /wp-admin/upload.php6.16 ▲2.9359.72 ▲23.57
Filter Sets /wp-admin/edit.php?post_type=filter-set6.1954.92
Settings /wp-admin/edit.php?post_type=filter-set&page=filters-settings6.1447.38
Add New /wp-admin/post-new.php?post_type=filter-set6.2971.48

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 113 new files
Database: no new tables, 12 new options
New WordPress options
wpc_filter_settings
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
wpc_first_install
theysaidso_admin_options
wpc_filter_experimental
widget_recent-comments
db_upgraded
widget_wpc_chips_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for Filter Everything — Product Filter & WordPress Filter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16213.82 ▼0.801.98 ▲0.4141.86 ▲1.79
Dashboard /wp-admin2,288 ▲1145.15 ▼0.4189.70 ▼0.5538.27 ▼4.81
Posts /wp-admin/edit.php2,205 ▲1052.54 ▲0.5843.69 ▲8.6035.01 ▼3.19
Add New Post /wp-admin/post-new.php1,579 ▲4823.42 ▲0.51609.92 ▼74.2733.99 ▼19.14
Media Library /wp-admin/upload.php1,496 ▲934.69 ▲0.5395.62 ▼4.4642.16 ▼3.23
Filter Sets /wp-admin/edit.php?post_type=filter-set1,2662.5235.7527.92
Settings /wp-admin/edit.php?post_type=filter-set&page=filters-settings1,2702.5346.3630.70
Add New /wp-admin/post-new.php?post_type=filter-set2,4823.2557.3043.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_recent-comments
    • widget_wpc_filters_widget
    • widget_recent-posts
    • wpc_first_install
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_wpc_sorting_widget
    • can_compress_scripts
    • db_upgraded
    • widget_wpc_chips_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 issues were found

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 need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

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

This is the main PHP file of "Filter Everything — Product Filter & WordPress Filter" version 1.7.15, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)

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
Good job! No executable or dangerous file extensions detected38,653 lines of code in 104 files:
LanguageFilesBlank linesComment linesLines of code
PHP733,4311,32114,278
JavaScript183,1561,03812,576
PO File52,7852,2338,092
CSS859363,707

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity39.71
▷ Minimum class complexity1.00
▷ Maximum class complexity271.00
Average method complexity4.79
▷ Minimum method complexity1.00
▷ Maximum method complexity100.00
Code structure
Namespaces1
Interfaces2
Traits0
Classes49
▷ Abstract classes12.04%
▷ Concrete classes4897.96%
▷ Final classes00.00%
Methods537
▷ Static methods173.17%
▷ Public methods44482.68%
▷ Protected methods40.74%
▷ Private methods8916.57%
Functions151
▷ Named functions14696.69%
▷ Anonymous functions53.31%
Constants30
▷ Global constants2583.33%
▷ Class constants516.67%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/no-image.png2.16KB2.12KB▼ 1.59%