89% custom-taxonomy-filter

Code Review | CBX Custom Taxonomy Filter

WordPress plugin CBX Custom Taxonomy Filter scored 89% from 54 tests.

About plugin

  • Plugin page: custom-taxonomy-f...
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 5.8.1
  • First release: Jul 13, 2014
  • Latest release: Aug 31, 2021
  • Number of updates: 18
  • Update frequency: every 144.9 days
  • Top authors: manchumahara (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

900+ active / 7,608 total downloads

Benchmarks

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
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼141.29ms] Passed 4 tests

Analyzing server-side resources used by CBX Custom Taxonomy Filter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.01 ▲0.2847.11 ▲26.33
Dashboard /wp-admin3.25 ▲0.1951.15 ▲1.64
Posts /wp-admin/edit.php3.36 ▲0.2548.80 ▲3.13
Add New Post /wp-admin/post-new.php5.61 ▲0.1798.18 ▼565.33
Media Library /wp-admin/upload.php3.20 ▲0.1937.17 ▼4.60
CBX Custom Tax Filter /wp-admin/options-general.php?page=customtaxfilterinadmin3.2040.36

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 91 new files
Database: no new tables, 2 new options
New WordPress options
cbxcustomtaxfilterinadmin_tax_settings
cbxcustomtaxfilterinadmin_tools

Browser metrics Passed 4 tests

This is an overview of browser requirements for CBX Custom Taxonomy Filter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8915.77 ▲0.218.11 ▼3.3751.85 ▼4.39
Dashboard /wp-admin2,975 ▲445.94 ▼0.16143.45 ▼33.12122.79 ▲4.20
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0170.84 ▲1.9393.15 ▼4.80
Add New Post /wp-admin/post-new.php1,503 ▼7818.78 ▲1.32389.80 ▼31.47112.90 ▼11.87
Media Library /wp-admin/upload.php1,812 ▲55.01 ▼0.00164.49 ▼9.34125.03 ▼17.46
CBX Custom Tax Filter /wp-admin/options-general.php?page=customtaxfilterinadmin1,9274.3984.16132.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • cbxcustomtaxfilterinadmin_tax_settings
    • cbxcustomtaxfilterinadmin_tools

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: admin filter, custom taxonomy

custom-taxonomy-filter/customtaxfilterinadmin.php 85% from 13 tests

The main file in "CBX Custom Taxonomy Filter" v. 1.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-taxonomy-filter.php" instead of "customtaxfilterinadmin.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
Success! There were no dangerous files found in this plugin12,224 lines of code in 83 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript652,5237229,608
Sass2186111,082
PHP92804171,056
CSS4562431
SVG30247

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.35
Average class complexity21.83
▷ Minimum class complexity1.00
▷ Maximum class complexity104.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods51
▷ Static methods611.76%
▷ Public methods4996.08%
▷ Protected methods00.00%
▷ Private methods23.92%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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/images/icon_move.png0.22KB0.22KB▼ 0.89%