84% tag-list-widget

Code Review | Taxonomy List Widget

WordPress plugin Taxonomy List Widget scored84%from 54 tests.

About plugin

  • Plugin page: tag-list-widget
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.0
  • WordPress version: 6.3.1
  • First release: Jan 27, 2010
  • Latest release: Jun 28, 2022
  • Number of updates: 43
  • Update frequency: every 105.8 days
  • Top authors: ethitter (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

3,000+ active /53,271 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.24ms] Passed 4 tests

A check of server-side resources used by Taxonomy List Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.67 ▲2.79
Dashboard /wp-admin3.32 ▲0.0249.15 ▼10.38
Posts /wp-admin/edit.php3.37 ▲0.0248.97 ▲1.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.78 ▼13.76
Media Library /wp-admin/upload.php3.24 ▲0.0136.42 ▼2.67

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Taxonomy List Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.17 ▼1.451.93 ▲0.1746.70 ▲0.52
Dashboard /wp-admin2,218 ▲125.83 ▲0.9397.31 ▼9.3041.43 ▼1.57
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0336.67 ▼1.7031.35 ▼9.42
Add New Post /wp-admin/post-new.php1,550 ▲2422.95 ▲5.31622.49 ▼51.8355.66 ▼4.05
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.1694.54 ▼27.5240.50 ▼8.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_taxonomy_list_widget
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-list-widget/taxonomy-list-widget.php:57

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: sidebar, widgets, tag, taxonomy, widget...

tag-list-widget/taxonomy-list-widget.php 85% from 13 tests

Analyzing the main PHP file in "Taxonomy List Widget" version 1.3.2
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 294 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("tag-list-widget.php" instead of "taxonomy-list-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin441 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1128176441

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity44.00
▷ Minimum class complexity16.00
▷ Maximum class complexity72.00
Average method complexity7.14
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected