88% user-meta-management

Code Review | User Meta Management

WordPress plugin User Meta Management scored 88% from 54 tests.

About plugin

  • Plugin page: user-meta-management
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 5.9.2
  • First release: Aug 28, 2017
  • Latest release: Nov 14, 2017
  • Number of updates: 8
  • Update frequency: every 12.6 days
  • Top authors: wposmosys (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 1,126 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼305.82ms] Passed 4 tests

A check of server-side resources used by User Meta Management
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1155.00 ▲4.61
Dashboard /wp-admin3.49 ▲0.0833.70 ▼1.72
Posts /wp-admin/edit.php3.72 ▲0.0835.88 ▼1.05
Add New Post /wp-admin/post-new.php6.96 ▼0.0197.36 ▼1,214.32
Media Library /wp-admin/upload.php3.37 ▲0.0725.03 ▼6.18
User Meta Management /wp-admin/users.php?page=user-meta-management3.4423.71

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

User Meta Management: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲5815.78 ▼0.206.10 ▼0.602.75 ▲0.41
Dashboard /wp-admin2,897 ▲366.23 ▲0.02115.58 ▼15.69155.25 ▼2.58
Posts /wp-admin/edit.php2,693 ▼13.23 ▼0.0063.21 ▲0.15136.77 ▲0.60
Add New Post /wp-admin/post-new.php1,755 ▲9420.90 ▲4.35410.42 ▲13.31157.06 ▲7.67
Media Library /wp-admin/upload.php1,700 ▲25.48 ▼0.01127.84 ▼6.00196.10 ▲3.69
User Meta Management /wp-admin/users.php?page=user-meta-management1,7734.43111.77116.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/user-meta-management/template/meta-form.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/user-meta-management/config.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/user-meta-management/config.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/user-meta-management/config.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/user-meta-management/config.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: wp_usermeta, users, usermeta, meta, management...

user-meta-management/UserMetaManagement.php 92% from 13 tests

The main PHP script in "User Meta Management" version 0.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("user-meta-management.php" instead of "UserMetaManagement.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,612 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
JavaScript36023957
CSS46119628
PHP543119324
Markdown122032

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/close.png18.23KB8.05KB▼ 55.85%