84% beautiful-taxonomy-filters

Code Review | Beautiful taxonomy filters

WordPress plugin Beautiful taxonomy filters scored84%from 54 tests.

About plugin

  • Plugin page: beautiful-taxonom...
  • Plugin version: 2.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.0-5.5
  • WordPress version: 6.3.1
  • First release: Nov 5, 2014
  • Latest release: Aug 26, 2020
  • Number of updates: 81
  • Update frequency: every 26.3 days
  • Top authors: Jonathandejong (100%)

Code review

54 tests

User reviews

66 reviews

Install metrics

4,000+ active /137,510 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.39MB] [CPU: ▼3.82ms] Passed 4 tests

Analyzing server-side resources used by Beautiful taxonomy filters
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4348.33 ▲7.91
Dashboard /wp-admin3.73 ▲0.4345.61 ▲0.33
Posts /wp-admin/edit.php3.78 ▲0.4247.89 ▼1.17
Add New Post /wp-admin/post-new.php6.25 ▲0.3682.34 ▼16.99
Media Library /wp-admin/upload.php3.59 ▲0.3637.07 ▲2.54
Taxonomy Filters /wp-admin/options-general.php?page=taxonomy-filters3.6039.22

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 141 new files
Database: no new tables, 9 new options
New WordPress options
widget_beautiful-taxonomy-filters-info-widget
can_compress_scripts
widget_theysaidso_widget
beautiful_taxonomy_filters_version
theysaidso_admin_options
widget_beautiful-taxonomy-filters-widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Beautiful taxonomy filters
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲13614.11 ▼0.2712.70 ▲10.7844.00 ▲4.86
Dashboard /wp-admin2,204 ▲275.82 ▲0.9399.33 ▼2.0136.62 ▼15.49
Posts /wp-admin/edit.php2,093 ▲12.16 ▲0.1236.33 ▼6.0932.19 ▼5.55
Add New Post /wp-admin/post-new.php1,536 ▲323.27 ▲0.09675.74 ▲40.8856.92 ▲8.23
Media Library /wp-admin/upload.php1,395 ▲74.26 ▲0.0694.47 ▼5.8942.58 ▼3.12
Taxonomy Filters /wp-admin/options-general.php?page=taxonomy-filters9172.0522.3332.71

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
Please fix the following items
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_beautiful-taxonomy-filters-widget
    • widget_recent-comments
    • beautiful_taxonomy_filters_version
    • widget_beautiful-taxonomy-filters-info-widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 23× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/beautiful-taxonomy-filters/widgets/beautiful-taxonomy-filters-widget.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/beautiful-taxonomy-filters/widgets/beautiful-taxonomy-filters-info-widget.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/beautiful-taxonomy-filters/admin/partials/advanced/hide-empty-settings-display.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_taxonomies() in wp-content/plugins/beautiful-taxonomy-filters/admin/partials/basic/taxonomies-settings-display.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/beautiful-taxonomy-filters/admin/partials/advanced/clear-all-settings-display.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/beautiful-taxonomy-filters/admin/partials/basic/styles-settings-display.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/beautiful-taxonomy-filters/admin/partials/advanced/disable-select2-settings-display.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/beautiful-taxonomy-filters/admin/partials/basic/post_type-settings-display.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/beautiful-taxonomy-filters/admin/partials/help/help.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/beautiful-taxonomy-filters/admin/partials/advanced/conditional-dropdowns-settings-display.php:14

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (20 tag instead of maximum 10)
Please take inspiration from this readme.txt

beautiful-taxonomy-filters/beautiful-taxonomy-filters.php Passed 13 tests

Analyzing the main PHP file in "Beautiful taxonomy filters" version 2.4.3
107 characters long description:
Supercharges your custom post type archives by letting visitors filter the posts by their terms/categories.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin5,585 lines of code in 118 files:
LanguageFilesBlank linesComment linesLines of code
PO File137229402,316
PHP385291,2871,824
CSS105567840
JavaScript57226177605

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity19.67
▷ Minimum class complexity1.00
▷ Maximum class complexity78.00
Average method complexity4.07
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods73
▷ Static methods68.22%
▷ Public methods6690.41%
▷ Protected methods00.00%
▷ Private methods79.59%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
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
3 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo-b.png23.48KB15.82KB▼ 32.65%
public/css/select2x2.png15.40KB0.80KB▼ 94.83%
public/css/select2.png15.22KB1.03KB▼ 93.24%