84% taxonomy-term-widget

Code Review | Taxonomy Term Widget

WordPress plugin Taxonomy Term Widget scored84%from 54 tests.

About plugin

  • Plugin page: taxonomy-term-widget
  • Plugin version: 2.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 23, 2014
  • Latest release: Feb 4, 2022
  • Number of updates: 17
  • Update frequency: every 169.2 days
  • Top authors: codersantosh (76.47%)addonspress (29.41%)

Code review

54 tests

User reviews

4 reviews

Install metrics

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

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

Analyzing server-side resources used by Taxonomy Term Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.82 ▲0.07
Dashboard /wp-admin3.32 ▲0.0240.30 ▼8.41
Posts /wp-admin/edit.php3.37 ▲0.0145.04 ▼1.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0176.88 ▼14.56
Media Library /wp-admin/upload.php3.24 ▲0.0132.88 ▼1.88

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_taxonomy_term_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Taxonomy Term Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲4614.23 ▼0.162.11 ▲0.6244.41 ▲3.57
Dashboard /wp-admin2,195 ▲155.63 ▼0.0693.72 ▲6.3642.25 ▲0.62
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0838.77 ▲4.6839.05 ▲3.33
Add New Post /wp-admin/post-new.php1,529 ▲323.25 ▼0.14619.62 ▼55.3056.77 ▲3.45
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0095.84 ▼3.4740.50 ▼4.29

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_taxonomy_term_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/taxonomy-term-widget/taxonomy-term-widget.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: custom taxonomy widget, wordpress taxonomy term widget, taxonomy, widget, terms widget...

taxonomy-term-widget/taxonomy-term-widget.php Passed 13 tests

The principal PHP file in "Taxonomy Term Widget" v. 2.3.3 is loaded by WordPress automatically on each request
88 characters long description:
Add an advanced widget to your WordPress blog,like an extension of the Categories widget

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
Success! There were no dangerous files found in this plugin280 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11272280

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity9.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin