74% mb-relationships

Code Review | MB Relationships

WordPress plugin MB Relationships scored74%from 54 tests.

About plugin

  • Plugin page: mb-relationships
  • Plugin version: 1.11.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2018
  • Latest release: Nov 16, 2023
  • Number of updates: 59
  • Update frequency: every 35.9 days
  • Top authors: rilwis (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /38,298 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.40ms] Passed 4 tests

This is a short check of server-side resources used by MB Relationships
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.64 ▲0.66
Dashboard /wp-admin3.33 ▲0.0245.14 ▼3.27
Posts /wp-admin/edit.php3.38 ▲0.0144.44 ▼0.89
Add New Post /wp-admin/post-new.php5.91 ▲0.0187.70 ▼10.71
Media Library /wp-admin/upload.php3.25 ▲0.0133.72 ▼2.71

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: 1 new table, 7 new options
New tables
wp_mb_relationships
New WordPress options
mbr_table_created
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for MB Relationships
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.33 ▼0.441.74 ▼0.0644.41 ▲0.14
Dashboard /wp-admin2,198 ▲215.50 ▼0.0692.03 ▼14.8140.53 ▼5.19
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0140.82 ▼0.2237.01 ▲0.75
Add New Post /wp-admin/post-new.php1,526 ▼023.12 ▼0.46596.19 ▼96.3954.51 ▼3.79
Media Library /wp-admin/upload.php1,403 ▲34.18 ▲0.0399.18 ▼12.6743.34 ▼5.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_mb_relationships
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • mbr_table_created
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'MBR_Object_Interface' not found in wp-content/plugins/mb-relationships/inc/object/post.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'MBR_Object_Interface' not found in wp-content/plugins/mb-relationships/inc/object/user.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'MBR_Object_Interface' not found in wp-content/plugins/mb-relationships/inc/object/term.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: post relationships, relationships, connection, connections, relationship...

mb-relationships/mb-relationships.php 92% from 13 tests

The main PHP script in "MB Relationships" version 1.11.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")

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
There were no executable files found in this plugin1,596 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP233591,1861,596

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods149
▷ Static methods1610.74%
▷ Public methods11879.19%
▷ Protected methods96.04%
▷ Private methods2214.77%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin