84% view-user-metadata

Code Review | View User Metadata

WordPress plugin View User Metadata scored84%from 54 tests.

About plugin

  • Plugin page: view-user-metadata
  • Plugin version: 1.11
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.4
  • WordPress version: 6.3.1
  • First release: Mar 24, 2023
  • Latest release: Nov 15, 2023
  • Number of updates: 19
  • Update frequency: every 12.4 days
  • Top authors: SS88_UK (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /372 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.02MB] [CPU: ▼2.28ms] Passed 4 tests

Server-side resources used by View User Metadata
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.17 ▼8.46
Dashboard /wp-admin3.33 ▲0.0244.69 ▲1.57
Posts /wp-admin/edit.php3.38 ▲0.0245.69 ▼3.05
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.47 ▲0.81
Media Library /wp-admin/upload.php3.25 ▲0.0233.58 ▲2.71

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for View User Metadata
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.27 ▼0.131.79 ▼0.1141.13 ▼2.82
Dashboard /wp-admin2,195 ▲155.61 ▼0.0994.34 ▼7.3843.25 ▼1.62
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0439.80 ▼1.6638.64 ▼1.76
Add New Post /wp-admin/post-new.php1,526 ▼023.00 ▲0.18598.73 ▼18.5559.23 ▼0.71
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.01102.21 ▼6.8446.03 ▼0.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% 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 50% 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/view-user-metadata/view-user-meta.php:141

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: user metadata, user meta, user meta data, get_user_meta, metdata...

view-user-metadata/view-user-meta.php 92% from 13 tests

Analyzing the main PHP file in "View User Metadata" version 1.11
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("view-user-metadata.php" instead of "view-user-meta.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin221 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP151882
CSS116074
JavaScript148065

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

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