90% simple-dropdown-filter-by-category-for-woocommerce

Code Review | Simple Dropdown Filter by Category for Woocommerce

WordPress plugin Simple Dropdown Filter by Category for Woocommerce scored90%from 54 tests.

About plugin

  • Plugin page: simple-dropdown-f...
  • Plugin version:
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2023
  • Latest release: Sep 22, 2023
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: inboundhorizons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /33 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.82ms] Passed 4 tests

Analyzing server-side resources used by Simple Dropdown Filter by Category for Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.33 ▼2.26
Dashboard /wp-admin3.37 ▲0.0749.33 ▼0.98
Posts /wp-admin/edit.php3.42 ▲0.0745.44 ▼1.90
Add New Post /wp-admin/post-new.php5.95 ▲0.0784.04 ▼6.14
Media Library /wp-admin/upload.php3.29 ▲0.0735.92 ▲2.00

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Simple Dropdown Filter by Category for Woocommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.431.62 ▼0.4640.11 ▼8.29
Dashboard /wp-admin2,203 ▲155.94 ▲0.0799.05 ▼6.2343.37 ▲4.89
Posts /wp-admin/edit.php2,089 ▲31.97 ▼0.0438.67 ▲3.0334.74 ▼0.85
Add New Post /wp-admin/post-new.php1,533 ▼123.27 ▲0.12683.18 ▲19.1653.58 ▼3.36
Media Library /wp-admin/upload.php1,385 ▼64.19 ▲0.0696.89 ▼0.6540.90 ▼3.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: woocommerce, dropdown, filter, category

simple-dropdown-filter-by-category-for-woocommerce/category-filter-for-woocommerce.php 92% from 13 tests

The entry point to "Simple Dropdown Filter by Category for Woocommerce" version is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-dropdown-filter-by-category-for-woocommerce.php" instead of "category-filter-for-woocommerce.php")

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
There were no executable files found in this plugin530 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity4.86
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods112.50%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
▷ Named functions00.00%
▷ Anonymous functions3100.00%
▷ Global constants00.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
PNG images were not found in this plugin