100% um-relational-fields

Code Review | UM Relational Fields

WordPress plugin UM Relational Fields scored 100% from 54 tests.

About plugin

  • Plugin page: um-relational-fields
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.1
  • WordPress version: 5.8.1
  • First release: Dec 30, 2015
  • Latest release: Sep 11, 2017
  • Number of updates: 24
  • Update frequency: every 25.9 days
  • Top authors: plusplugins (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

70+ active / 6,023 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by UM Relational Fields
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0637.11 ▼0.60
Dashboard /wp-admin3.11 ▲0.0647.71 ▲4.48
Posts /wp-admin/edit.php3.17 ▲0.0649.38 ▼1.08
Add New Post /wp-admin/post-new.php5.47 ▲0.0495.61 ▼580.21
Media Library /wp-admin/upload.php3.06 ▲0.0635.21 ▼2.03

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for UM Relational Fields
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,690 ▲11815.89 ▲0.228.46 ▼3.7947.62 ▼5.79
Dashboard /wp-admin2,982 ▲455.90 ▼0.27153.56 ▼18.85103.83 ▼2.17
Posts /wp-admin/edit.php2,751 ▲122.70 ▼0.0268.30 ▼1.2392.08 ▲3.75
Add New Post /wp-admin/post-new.php1,691 ▲19118.66 ▼0.11396.80 ▼27.77110.56 ▼4.73
Media Library /wp-admin/upload.php1,819 ▲715.03 ▲0.02159.27 ▼21.49115.76 ▼10.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: relation, link members, profile linking, relational fields, ultimate member...

um-relational-fields/plugin.php 92% from 13 tests

Analyzing the main PHP file in "UM Relational Fields" version 1.0
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("um-relational-fields.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin316 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110218316

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants1
▷ Global constants1100.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