90% lh-user-taxonomies

Code Review | LH User Taxonomies

WordPress plugin LH User Taxonomies scored90%from 54 tests.

About plugin

  • Plugin page: lh-user-taxonomies
  • Plugin version: 1.61
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Mar 21, 2021
  • Number of updates: 24
  • Update frequency: every 92.1 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

600+ active /8,296 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by LH User Taxonomies
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1237.89 ▼4.84
Dashboard /wp-admin3.42 ▲0.1145.33 ▼5.23
Posts /wp-admin/edit.php3.54 ▲0.1849.63 ▼1.56
Add New Post /wp-admin/post-new.php6.00 ▲0.1196.19 ▼2.06
Media Library /wp-admin/upload.php3.34 ▲0.1137.57 ▲6.33

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for LH User Taxonomies
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.17 ▼1.121.82 ▲0.1238.64 ▼1.36
Dashboard /wp-admin2,209 ▲214.87 ▼1.01108.07 ▲8.5839.83 ▼2.88
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0239.20 ▼3.6535.15 ▼0.21
Add New Post /wp-admin/post-new.php1,514 ▼1917.61 ▼5.57605.25 ▼63.5042.49 ▼10.25
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.0199.53 ▼3.3545.73 ▲2.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: users, register_taxonomy, taxonomy, user, custom taxonomy...

lh-user-taxonomies/lh-user-taxonomies.php 92% from 13 tests

The main PHP script in "LH User Taxonomies" version 1.61 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Success! There were no dangerous files found in this plugin413 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2239150413

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity89.00
▷ Minimum class complexity89.00
▷ Maximum class complexity89.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods310.34%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin