10% mindbody-access-management

Code Review | MZ MBO Access

WordPress plugin MZ MBO Access scored10%from 54 tests.

About plugin

  • Plugin page: mindbody-access-m...
  • Plugin version: 2.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2020
  • Latest release: Jun 5, 2021
  • Number of updates: 52
  • Update frequency: every 6.7 days
  • Top authors: mikeill (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /901 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/mindbody-access-management/src/Core/Activator.php+33
    Uncaught Error: Class 'MZoo\MzMindbody\Common\TokenManagement' not found in wp-content/plugins/mindbody-access-management/src/Core/Activator.php:33
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): MZoo\MzMboAccess\Core\Activator::activate()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.18ms] Passed 4 tests

Server-side resources used by MZ MBO Access
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.57 ▼9.94
Dashboard /wp-admin3.31 ▲0.0044.52 ▼7.86
Posts /wp-admin/edit.php3.36 ▲0.0047.21 ▼2.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.16 ▼12.69
Media Library /wp-admin/upload.php3.23 ▲0.0036.04 ▲3.28

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 879 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for MZ MBO Access
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.062.02 ▲0.1542.30 ▼2.21
Dashboard /wp-admin2,206 ▲184.88 ▼0.25109.52 ▼8.3238.28 ▼8.53
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0339.38 ▲3.4435.75 ▲2.48
Add New Post /wp-admin/post-new.php1,534 ▲123.50 ▲0.31595.97 ▼56.1750.31 ▼7.81
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0393.55 ▼0.2641.16 ▼2.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mindbody-access-management/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
    • > /wp-content/plugins/mindbody-access-management/src/Mozart/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 375× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Scripts_Field' not found in wp-content/plugins/mindbody-access-management/vendor/htmlburger/carbon-fields/core/Field/Footer_Scripts_Field.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mindbody-access-management/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/mindbody-access-management/src/Mozart/htmlburger/carbon-fields/core/Field/Broken_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/mindbody-access-management/vendor/htmlburger/carbon-fields/core/Service/REST_API_Service.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\User_Capability_Condition' not found in wp-content/plugins/mindbody-access-management/src/Mozart/htmlburger/carbon-fields/core/Container/Condition/Current_User_Capability_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mindbody-access-management/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mindbody-access-management/vendor/composer/installers/src/Composer/Installers/Redaxo5Installer.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mindbody-access-management/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/mindbody-access-management/src/Mozart/htmlburger/carbon-fields/core/Field/Multiselect_Field.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mindbody-access-management/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Screenshot #7 (Access Granted.) image missing
  • Screenshots: No descriptions were found for these screenshots #10, #9 in mindbody-access-management/assets to your readme.txt
You can take inspiration from this readme.txt

mindbody-access-management/mz-mbo-access.php 77% from 13 tests

"MZ MBO Access" version 2.1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Git Repository: A Git repository was detected inside this plugin
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("mindbody-access-management.php" instead of "mz-mbo-access.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
No dangerous file extensions were detected40,267 lines of code in 636 files:
LanguageFilesBlank linesComment linesLines of code
PHP3384,68012,64517,825
JavaScript1725,2488,52313,244
PO File279321,1812,500
Markdown2277402,090
Sass4833901,769
CSS73251,1391,662
JSON900865
YAML5413160
XML6113123
make19426
Bourne Shell1203

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.71
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces46
Interfaces12
Traits0
Classes423
▷ Abstract classes286.62%
▷ Concrete classes39593.38%
▷ Final classes164.05%
Methods2,333
▷ Static methods31913.67%
▷ Public methods1,88080.58%
▷ Protected methods39416.89%
▷ Private methods592.53%
Functions312
▷ Named functions9430.13%
▷ Anonymous functions21869.87%
Constants126
▷ Global constants2015.87%
▷ Class constants10684.13%
▷ Public constants106100.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
There are no PNG files in this plugin