78% tag-groups

Code Review | Tag Groups is the Advanced Way to Display Your Taxonomy Terms

WordPress plugin Tag Groups is the Advanced Way to Display Your Taxonomy Terms scored78%from 54 tests.

About plugin

  • Plugin page: tag-groups
  • Plugin version: 2.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 19, 2012
  • Latest release: Aug 8, 2023
  • Number of updates: 378
  • Update frequency: every 10.8 days
  • Top authors: camthor (91.27%)stevejburge (7.94%)ojopaul (1.32%)

Code review

54 tests

User reviews

47 reviews

Install metrics

4,000+ active /257,599 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.26MB] [CPU: ▲10.06ms] Passed 4 tests

This is a short check of server-side resources used by Tag Groups is the Advanced Way to Display Your Taxonomy Terms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1741.97 ▲1.00
Dashboard /wp-admin3.62 ▲0.3184.46 ▲32.54
Posts /wp-admin/edit.php3.68 ▲0.3396.22 ▲43.12
Add New Post /wp-admin/post-new.php6.19 ▲0.3191.01 ▼11.77
Media Library /wp-admin/upload.php3.46 ▲0.2347.03 ▲18.46
Front End /wp-admin/admin.php?page=tag-groups-settings-front-end3.5440.47
Setup Wizard /wp-admin/admin.php?page=tag-groups-settings-setup-wizard3.4837.64
Home /wp-admin/admin.php?page=tag-groups-settings3.7140.31
Tag Group Admin /wp-admin/edit.php?page=tag-groups_post3.6133.90
Tools /wp-admin/admin.php?page=tag-groups-settings-tools3.4936.47
Back End /wp-admin/admin.php?page=tag-groups-settings-back-end3.4836.99
Taxonomies /wp-admin/admin.php?page=tag-groups-settings-taxonomies3.5032.80
Upgrade to Pro /wp-admin/admin.php?page=tag-groups-settings-menu-upgrade-link3.4534.96
First Steps /wp-admin/admin.php?page=tag-groups-settings-first-steps3.4837.87

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 298 new files
Database: no new tables, 16 new options
New WordPress options
db_upgraded
tag_group_base_version
widget_recent-posts
tag_group_run_term_migration_offset
term_group_positions
tag_group_taxonomy
tag_group_base_first_activation_time
term_group_labels
tag_group_used_transient_names
can_compress_scripts
...

Browser metrics Passed 4 tests

A check of browser resources used by Tag Groups is the Advanced Way to Display Your Taxonomy Terms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲22713.70 ▼0.706.60 ▲4.7934.26 ▼9.81
Dashboard /wp-admin2,260 ▲725.87 ▼0.0299.06 ▼1.3240.47 ▼0.37
Posts /wp-admin/edit.php2,171 ▲822.05 ▲0.0436.08 ▼4.1435.22 ▼0.21
Add New Post /wp-admin/post-new.php6,415 ▲4,88228.64 ▲5.26948.48 ▲329.3540.82 ▼11.13
Media Library /wp-admin/upload.php1,442 ▲544.28 ▲0.07112.72 ▲0.6650.55 ▲5.69
Front End /wp-admin/admin.php?page=tag-groups-settings-front-end1,5462.0341.5945.27
Setup Wizard /wp-admin/admin.php?page=tag-groups-settings-setup-wizard9531.8928.1831.74
Home /wp-admin/admin.php?page=tag-groups-settings1,2852.1536.7246.62
Tag Group Admin /wp-admin/edit.php?page=tag-groups_post1,0302.2851.8635.01
Tools /wp-admin/admin.php?page=tag-groups-settings-tools1,2841.9930.3331.75
Back End /wp-admin/admin.php?page=tag-groups-settings-back-end1,2731.9830.6333.73
Taxonomies /wp-admin/admin.php?page=tag-groups-settings-taxonomies1,3202.1630.5332.96
Upgrade to Pro /wp-admin/admin.php?page=tag-groups-settings-menu-upgrade-link2,62511.03401.25108.43
First Steps /wp-admin/admin.php?page=tag-groups-settings-first-steps9382.1034.4539.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 16 options
    • tag_group_base_first_activation_time
    • widget_recent-posts
    • tag_group_taxonomy
    • term_group_positions
    • can_compress_scripts
    • term_groups
    • term_group_labels
    • tag_group_used_transient_names
    • theysaidso_admin_options
    • tag_group_theme
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 15× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/tag-groups/views/shortcodes/js_accordion_snippet.view.php
    • > /wp-content/plugins/tag-groups/views/partials/admin_footer_tooltip.view.php
    • > /wp-content/plugins/tag-groups/views/shortcodes/js_tabs_snippet.view.php
    • > /wp-content/plugins/tag-groups/views/admin/setup_wizard_footer.view.php
    • > /wp-content/plugins/tag-groups/views/admin/settings_footer.view.php
    • > /wp-content/plugins/tag-groups/vendor/publishpress/wordpress-version-notices/templates/top-notice/notice.php
    • > /wp-content/plugins/tag-groups/views/admin/settings_header.view.php
    • > /wp-content/plugins/tag-groups/views/partials/settings_alerts.view.php
    • > /wp-content/plugins/tag-groups/views/partials/tag_page_inline_style.view.php
    • > /wp-content/plugins/tag-groups/views/partials/admin_notice.view.php
  • 95× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tag-groups/views/admin/onboarding.view.php:1
    • > PHP Notice
      Undefined variable: delay in wp-content/plugins/tag-groups/views/shortcodes/js_accordion_snippet.view.php on line 9
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/tag-groups/views/shortcodes/js_tabs_snippet.view.php on line 9
    • > PHP Notice
      Undefined variable: notice in wp-content/plugins/tag-groups/views/partials/admin_notice.view.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/tag-groups/views/admin/settings_back_end_gutenberg.view.php:3
    • > PHP Notice
      Undefined variable: notice in wp-content/plugins/tag-groups/views/partials/admin_notice.view.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tag-groups/views/admin/tag_groups_admin.view.php:3
    • > PHP Notice
      Undefined variable: task in wp-content/plugins/tag-groups/views/admin/settings_troubleshooting_process_task_no_language.view.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/tag-groups/views/partials/admin_footer_rating.view.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tag-groups/views/admin/setup_wizard_start.view.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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 your attention:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
The official readme.txt is a good inspiration

tag-groups/tag-groups.php Passed 13 tests

"Tag Groups is the Advanced Way to Display Your Taxonomy Terms" version 2.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
132 characters long description:
Organize your tags in groups or by alphabet. Show tag clouds with many options in posts, pages or widgets (tabs, accordion or list).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin27,318 lines of code in 188 files:
LanguageFilesBlank linesComment linesLines of code
PHP1313,9595,80113,766
JavaScript204585526,945
PO File31,0111,2093,092
CSS292933732,724
Sass31143553
JSON200238

PHP code Passed 2 tests

A brief analysis 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.47
Average class complexity27.20
▷ Minimum class complexity1.00
▷ Maximum class complexity194.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces13
Interfaces6
Traits0
Classes63
▷ Abstract classes00.00%
▷ Concrete classes63100.00%
▷ Final classes23.17%
Methods478
▷ Static methods16334.10%
▷ Public methods44292.47%
▷ Protected methods00.00%
▷ Private methods367.53%
Functions51
▷ Named functions713.73%
▷ Anonymous functions4486.27%
Constants46
▷ Global constants1941.30%
▷ Class constants2758.70%
▷ Public constants27100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
90 PNG files occupy 0.64MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/ui-darkness/images/ui-bg_glass_40_ffc73d_1x400.png0.31KB0.16KB▼ 49.37%
assets/css/ui-lightness/images/ui-icons_ef8c08_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/delta/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
assets/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.32KB0.18KB▼ 42.38%
assets/css/delta/images/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%