84% tag-dropdown-widget

Code Review | Taxonomy Dropdown Widget

WordPress plugin Taxonomy Dropdown Widget scored84%from 54 tests.

About plugin

  • Plugin page: tag-dropdown-widget
  • Plugin version: 2.3.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.0
  • WordPress version: 6.3.1
  • First release: Nov 17, 2009
  • Latest release: Jul 1, 2022
  • Number of updates: 75
  • Update frequency: every 61.5 days
  • Top authors: ethitter (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

3,000+ active /54,874 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.09MB] [CPU: ▼3.27ms] Passed 4 tests

An overview of server-side resources used by Taxonomy Dropdown Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.11 ▲3.42
Dashboard /wp-admin3.40 ▲0.0647.51 ▼12.25
Posts /wp-admin/edit.php3.52 ▲0.1648.94 ▼1.75
Add New Post /wp-admin/post-new.php5.99 ▲0.1091.95 ▼1.85
Media Library /wp-admin/upload.php3.33 ▲0.1036.25 ▲2.76

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_taxonomy_dropdown_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Taxonomy Dropdown Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.74 ▲0.461.70 ▲0.0237.73 ▼0.48
Dashboard /wp-admin2,195 ▲155.65 ▼0.0283.45 ▼3.4238.50 ▲0.27
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0640.34 ▲0.5935.98 ▼1.70
Add New Post /wp-admin/post-new.php1,534 ▲618.20 ▼4.84616.79 ▲19.7862.70 ▲12.36
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.00105.46 ▲12.2143.79 ▲4.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_taxonomy_dropdown_widget
    • can_compress_scripts

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)
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-dropdown-widget/tag-dropdown-widget.php:83

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: widget, taxonomy, sidebar, drop down, tags...

tag-dropdown-widget/tag-dropdown-widget.php 92% from 13 tests

The main PHP file in "Taxonomy Dropdown Widget" ver. 2.3.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 311 characters long)

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 detected393 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1127236393

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity34.00
▷ Minimum class complexity8.00
▷ Maximum class complexity60.00
Average method complexity5.12
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1381.25%
▷ Protected methods16.25%
▷ Private methods212.50%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected