84% tc-custom-taxonomy-filter

Code Review | TC Custom Taxonomy Filter

WordPress plugin TC Custom Taxonomy Filter scored84%from 54 tests.

About plugin

  • Plugin page: tc-custom-taxonom...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.3.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2012
  • Latest release: Jun 14, 2020
  • Number of updates: 21
  • Update frequency: every 134.8 days
  • Top authors: taupecat (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

300+ active /8,066 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
Install script ran successfully

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

Analyzing server-side resources used by TC Custom Taxonomy Filter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.41 ▲0.12
Dashboard /wp-admin3.32 ▲0.0246.70 ▼2.70
Posts /wp-admin/edit.php3.37 ▲0.0149.76 ▲2.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.62 ▲0.39
Media Library /wp-admin/upload.php3.24 ▲0.0137.53 ▲3.15

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

TC Custom Taxonomy Filter: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.191.81 ▲0.0140.52 ▼3.99
Dashboard /wp-admin2,198 ▲215.62 ▼0.0488.04 ▼1.9741.49 ▼1.63
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0238.95 ▲0.0738.21 ▲2.95
Add New Post /wp-admin/post-new.php1,526 ▼023.42 ▲0.31660.09 ▼38.9958.78 ▲4.38
Media Library /wp-admin/upload.php1,400 ▼04.24 ▼0.05100.42 ▼11.5844.43 ▼1.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function taupecat\\is_admin() in wp-content/plugins/tc-custom-taxonomy-filter/class-custom-taxonomy-filter.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed: You can take inspiration from this readme.txt

tc-custom-taxonomy-filter/tc-custom-taxonomy-filter.php Passed 13 tests

The principal PHP file in "TC Custom Taxonomy Filter" v. 2.0.0 is loaded by WordPress automatically on each request
132 characters long description:
Filter your posts (including custom post types) by your custom taxonomies, just like you can with WordPress' native category filter.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin68 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4345668

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There are no PNG files in this plugin