10% query-multiple-taxonomies

Code Review | Query Multiple Taxonomies

WordPress plugin Query Multiple Taxonomies scored10%from 54 tests.

About plugin

  • Plugin page: query-multiple-ta...
  • Plugin version: 1.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5
  • WordPress version: 6.3.1
  • First release: Nov 12, 2009
  • Latest release: Jun 6, 2013
  • Number of updates: 195
  • Update frequency: every 6.7 days
  • Top authors: scribu (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /50,089 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/query-multiple-taxonomies/widget.php+11
    Declaration of Taxonomy_Drill_Down_Widget::init($file) should be compatible with scbWidget::init($class, $file = '', $base = '')

Server metrics [RAM: ▼1.84MB] [CPU: ▼48.94ms] Passed 4 tests

This is a short check of server-side resources used by Query Multiple Taxonomies
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.22 ▼30.68
Dashboard /wp-admin2.16 ▼1.147.54 ▼38.77
Posts /wp-admin/edit.php2.17 ▼1.197.50 ▼37.62
Add New Post /wp-admin/post-new.php2.17 ▼3.727.13 ▼88.68
Media Library /wp-admin/upload.php2.17 ▼1.067.13 ▼27.34

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
widget_taxonomy-drill-down
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Query Multiple Taxonomies
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.23 ▼1.214.52 ▲2.8542.90 ▲0.40
Dashboard /wp-admin2,206 ▲214.83 ▼0.05107.19 ▼3.4542.39 ▼0.53
Posts /wp-admin/edit.php2,089 ▲182.00 ▼0.0339.88 ▲4.6135.24 ▲4.76
Add New Post /wp-admin/post-new.php1,514 ▼017.59 ▲0.13655.89 ▼47.5851.31 ▼18.58
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0097.92 ▼1.5943.36 ▼0.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/query-multiple-taxonomies/widget.php+11
    Declaration of Taxonomy_Drill_Down_Widget::init($file) should be compatible with scbWidget::init($class, $file = '', $base = '')
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'scbHooks' not found in wp-content/plugins/query-multiple-taxonomies/core.php:58
    • > PHP Fatal error
      Uncaught Error: Class 'scbWidget' not found in wp-content/plugins/query-multiple-taxonomies/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/query-multiple-taxonomies/walkers.php:67
    • > PHP Fatal error
      Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/query-multiple-taxonomies/scb/BoxesPage.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/query-multiple-taxonomies/scb/load.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/query-multiple-taxonomies/scb/Widget.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: widget, taxonomy, drill-down, query, navigation

query-multiple-taxonomies/query-multiple-taxonomies.php Passed 13 tests

"Query Multiple Taxonomies" version 1.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
63 characters long description:
Filter posts through multiple custom taxonomies using a widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,730 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP168207072,411
PO File35897167
HTML76085
Markdown131067

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity11.62
▷ Minimum class complexity1.00
▷ Maximum class complexity110.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes33
▷ Abstract classes618.18%
▷ Concrete classes2781.82%
▷ Final classes00.00%
Methods226
▷ Static methods5825.66%
▷ Public methods16171.24%
▷ Protected methods5122.57%
▷ Private methods146.19%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin