87% wizhi-multi-filters

Code Review | Wizhi Multi Filters by Wenprise

WordPress plugin Wizhi Multi Filters by Wenprise scored 87% from 54 tests.

About plugin

  • Plugin page: wizhi-multi-filters
  • Plugin version: 1.8.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.0
  • WordPress version: 5.8.1
  • First release: Jan 30, 2016
  • Latest release: Jun 24, 2019
  • Number of updates: 19
  • Update frequency: every 65.4 days
  • Top authors: iwillhappy1314 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 3,336 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼143.72ms] Passed 4 tests

A check of server-side resources used by Wizhi Multi Filters by Wenprise
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.94 ▲12.63
Dashboard /wp-admin3.07 ▲0.0143.85 ▲0.29
Posts /wp-admin/edit.php3.12 ▲0.0141.21 ▲0.38
Add New Post /wp-admin/post-new.php5.43 ▼0.0188.54 ▼575.29
Media Library /wp-admin/upload.php3.01 ▲0.0134.13 ▼0.25

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

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

Browser metrics Passed 4 tests

Wizhi Multi Filters by Wenprise: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,686 ▲9016.21 ▲0.177.59 ▼0.1648.78 ▼6.72
Dashboard /wp-admin2,975 ▲415.89 ▼0.04132.27 ▼23.26122.56 ▲7.30
Posts /wp-admin/edit.php2,744 ▲52.81 ▲0.1265.37 ▼0.6097.67 ▲3.63
Add New Post /wp-admin/post-new.php1,675 ▲17718.83 ▼0.03357.36 ▼36.55111.78 ▲2.42
Media Library /wp-admin/upload.php1,812 ▲25.01 ▲0.00150.13 ▲1.12116.29 ▼5.83
多条件筛选 /wp-admin/wizhi-multi-filter.php260.900.0511.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wizhi-multi-filters/wizhi-multi-filter.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wizhi-multi-filters/settings.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/wizhi-multi-filter.php
    • > Network (severe)
    wp-admin/wizhi-multi-filter.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Please add descriptions for these screenshots #1, #2 in wizhi-multi-filters/assets to your readme.txt
  • Plugin Name: Please specify the plugin name on the first line ( === wizhi-multi-filters === )
The official readme.txt might help

wizhi-multi-filters/wizhi-multi-filter.php 92% from 13 tests

"Wizhi Multi Filters by Wenprise" version 1.8.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wizhi-multi-filters.php" instead of "wizhi-multi-filter.php")

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 plugin499 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions14100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
There were not PNG files found in your plugin