84% user-profile-meta

Code Review | User Profile Meta Manager

WordPress plugin User Profile Meta Manager scored84%from 54 tests.

About plugin

  • Plugin page: user-profile-meta
  • Plugin version: 1.02
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 2, 2014
  • Latest release: Mar 24, 2016
  • Number of updates: 15
  • Update frequency: every 52.1 days
  • Top authors: Aykani (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /5,538 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: ▼5.18ms] Passed 4 tests

This is a short check of server-side resources used by User Profile Meta Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.15 ▼1.77
Dashboard /wp-admin3.33 ▲0.0243.50 ▼11.86
Posts /wp-admin/edit.php3.38 ▲0.0243.44 ▲0.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.47 ▼7.58
Media Library /wp-admin/upload.php3.25 ▲0.0237.11 ▲6.82

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Profile Meta Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.75 ▲0.391.81 ▼0.1739.02 ▼6.42
Dashboard /wp-admin2,195 ▲185.64 ▼0.0389.66 ▼8.5737.42 ▼3.04
Posts /wp-admin/edit.php2,097 ▼01.98 ▼0.0540.57 ▲3.3636.58 ▼0.50
Add New Post /wp-admin/post-new.php1,528 ▲223.18 ▲0.26665.88 ▲51.8852.97 ▲1.05
Media Library /wp-admin/upload.php1,394 ▼94.19 ▲0.0295.79 ▼4.4442.85 ▲0.88

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/user-profile-meta/user-profile-meta.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (This is the user profile meta manager.)
Please take inspiration from this readme.txt

user-profile-meta/user-profile-meta.php Passed 13 tests

The primary PHP file in "User Profile Meta Manager" version 1.02 is used by WordPress to initiate all plugin functionality
71 characters long description:
Allows administrators to quick manage custom user profile meta entries.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin164 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12114164

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/edit.png0.58KB0.49KB▼ 16.58%
images/delete.png0.52KB0.40KB▼ 22.83%