72% user-meta-display

Code Review | User Meta Display

WordPress plugin User Meta Display scored72%from 54 tests.

About plugin

  • Plugin page: user-meta-display
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2014
  • Latest release: Jun 4, 2014
  • Number of updates: 22
  • Update frequency: every 3.5 days
  • Top authors: tripflex (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

700+ active /10,347 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.20ms] Passed 4 tests

Analyzing server-side resources used by User Meta Display
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1440.86 ▲2.67
Dashboard /wp-admin3.44 ▲0.1449.09 ▼3.04
Posts /wp-admin/edit.php3.56 ▲0.2050.26 ▼1.06
Add New Post /wp-admin/post-new.php6.03 ▲0.1497.32 ▼15.36
Media Library /wp-admin/upload.php3.37 ▲0.1439.77 ▲4.74
User Meta Display /wp-admin/users.php?page=user_meta_display3.4535.22

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Meta Display
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13813.84 ▼0.518.82 ▲7.0944.85 ▲4.88
Dashboard /wp-admin2,199 ▲225.60 ▼0.0090.30 ▼1.0339.03 ▼6.24
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0538.34 ▼3.5634.43 ▼5.66
Add New Post /wp-admin/post-new.php1,529 ▲122.80 ▼0.23588.36 ▼89.2055.35 ▼2.32
Media Library /wp-admin/upload.php1,404 ▲74.25 ▼0.05100.51 ▼1.2643.42 ▼1.39
User Meta Display /wp-admin/users.php?page=user_meta_display1,1953.0950.4843.73

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/users.php?page=user_meta_display
    • > Notice in wp-content/plugins/user-meta-display/includes/field-user_list_dropdown.php+13
    Undefined index: user_id

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/user-meta-display/includes/field-about_field_type.php
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-meta-display/includes/field-user_list_dropdown.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/user-meta-display/includes/settings-user_meta_display.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/user-meta-display/configs/user_meta_display-user-meta.php:15
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/user-meta-display/configs/fieldgroups-user_meta_display.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-meta-display/includes/functions-user_meta_display.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'User_Meta_Display' not found in wp-content/plugins/user-meta-display/includes/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/user-meta-display/includes/field-onoff.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/user-meta-display/configs/user_meta_display-about.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/user-meta-display/includes/field-user_meta_output.php:4

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 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 19 tag instead of maximum 10
You can look at the official readme.txt

user-meta-display/plugincore.php 92% from 13 tests

Analyzing the main PHP file in "User Meta Display" version 1.2.2
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("user-meta-display.php" instead of "plugincore.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,956 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP12180305986
CSS6448748
JavaScript656124
Markdown136083
PO File10015

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity53.50
▷ Minimum class complexity36.00
▷ Maximum class complexity71.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods1035.71%
▷ Public methods2485.71%
▷ Protected methods00.00%
▷ Private methods414.29%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png3.81KB0.11KB▼ 97.05%
assets/images/white.png3.81KB0.11KB▼ 97.05%