72% user-tags

Code Review | User Taxonomy & Directory

WordPress plugin User Taxonomy & Directory scored72%from 54 tests.

About plugin

  • Plugin page: user-tags
  • Plugin version: 2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 2, 2014
  • Latest release: Sep 26, 2023
  • Number of updates: 75
  • Update frequency: every 47.0 days
  • Top authors: UmeshSingla (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

100+ active /52,200 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
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼7.59ms] Passed 4 tests

Server-side resources used by User Taxonomy & Directory
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /31.04 ▲0.015,626,616.06 ▲8,211.92
Dashboard /wp-admin3.51 ▲0.1255.33 ▼8.94
Posts /wp-admin/edit.php3.62 ▲0.2252.35 ▲0.24
Add New Post /wp-admin/post-new.php6.11 ▲0.1889.45 ▼26.77
Media Library /wp-admin/upload.php3.43 ▲0.1645.80 ▲5.13
Taxonomies /wp-admin/users.php?page=user-taxonomies3.4036.43

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

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

Browser metrics Passed 4 tests

User Taxonomy & Directory: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7714.15 ▼0.401.95 ▲0.3944.81 ▲4.96
Dashboard /wp-admin2,199 ▲255.61 ▲0.0498.10 ▲13.5444.12 ▼0.84
Posts /wp-admin/edit.php2,107 ▲72.00 ▼0.0135.81 ▼4.8237.18 ▼0.05
Add New Post /wp-admin/post-new.php1,694 ▲16821.97 ▼1.18643.49 ▼38.7246.36 ▼14.47
Media Library /wp-admin/upload.php1,398 ▼24.21 ▼0.05107.77 ▼11.1945.53 ▼2.91
Taxonomies /wp-admin/users.php?page=user-taxonomies9322.0126.1829.84

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
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • ut_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=user-taxonomies
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=user-taxonomies
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/user-tags/user-directory/template-parts/directory-content.php
  • 20× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/user-tags/admin/taxonomies/class-user-tags-taxonomy-list.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-tags/user-directory/class-user-tags-user-directory.php:19
    • > PHP Notice
      Undefined variable: users_per_page in wp-content/plugins/user-tags/user-directory/template-parts/directory-after.php on line 6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/user-tags/admin/taxonomies/class-user-tags-taxonomy-list.php on line 11
    • > PHP Fatal error
      require_once(): Failed opening required 'UT_DIRuser-directory/inc/helpers.php' (include_path='.:/usr/share/php') in wp-content/plugins/user-tags/user-directory/block/build/user-directory.php on line 7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/user-tags/admin/taxonomies/class-user-tags-taxonomy-list.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-tags/admin/user-profile/class-user-tags-profile.php:17
    • > PHP Warning
      Use of undefined constant UT_DIR - assumed 'UT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/user-tags/user-directory/block/build/user-directory.php on line 7
    • > PHP Notice
      Undefined variable: filters in wp-content/plugins/user-tags/user-directory/template-parts/directory-filters.php on line 42
    • > PHP Notice
      Undefined variable: entries in wp-content/plugins/user-tags/user-directory/template-parts/directory-content.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: user taxonomy, user directory, directory, staff directory, user tags...

user-tags/user-tags.php 92% from 13 tests

The main file in "User Taxonomy & Directory" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains

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
No dangerous file extensions were detected1,995 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP152685091,330
JavaScript47493418
CSS42724168
JSON10048
Markdown117031

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity22.00
▷ Minimum class complexity5.00
▷ Maximum class complexity54.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods52
▷ Static methods35.77%
▷ Public methods4994.23%
▷ Protected methods00.00%
▷ Private methods35.77%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected