84% list-custom-taxonomy-widget

Code Review | List Custom Taxonomy Widget

WordPress plugin List Custom Taxonomy Widget scored84%from 54 tests.

About plugin

  • Plugin page: list-custom-taxon...
  • Plugin version: 4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3
  • WordPress version: 6.3.1
  • First release: Aug 17, 2012
  • Latest release: Sep 18, 2023
  • Number of updates: 38
  • Update frequency: every 106.6 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

10,000+ active /98,965 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.37ms] Passed 4 tests

Server-side resources used by List Custom Taxonomy Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.70 ▼1.16
Dashboard /wp-admin3.36 ▲0.0551.56 ▲0.37
Posts /wp-admin/edit.php3.41 ▲0.0553.85 ▲1.46
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.20 ▼17.03
Media Library /wp-admin/upload.php3.28 ▲0.0533.43 ▼3.65

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_lc_taxonomy

Browser metrics Passed 4 tests

A check of browser resources used by List Custom Taxonomy Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.39 ▼0.231.73 ▼0.0443.71 ▲3.02
Dashboard /wp-admin2,195 ▲245.59 ▲0.0790.22 ▼1.3641.70 ▼3.74
Posts /wp-admin/edit.php2,097 ▼01.99 ▲0.0136.73 ▼3.0535.57 ▼1.10
Add New Post /wp-admin/post-new.php1,526 ▼023.64 ▲0.65686.81 ▲43.4754.99 ▲5.38
Media Library /wp-admin/upload.php1,403 ▲94.21 ▲0.06105.95 ▼12.9943.46 ▼10.18

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_lc_taxonomy
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/list-custom-taxonomy-widget/list-custom-taxonomy-widget.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

list-custom-taxonomy-widget/list-custom-taxonomy-widget.php Passed 13 tests

"List Custom Taxonomy Widget" version 4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
81 characters long description:
Widget that displays category listings for custom post types (custom taxonomies).

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
There were no executable files found in this plugin257 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12051257

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity18.00
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity7.80
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin