84% member-directory

Code Review | Member Directory

WordPress plugin Member Directory scored 84% from 54 tests.

About plugin

  • Plugin page: member-directory
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 17, 2020
  • Latest release: May 6, 2023
  • Number of updates: 8
  • Update frequency: every 143.1 days
  • Top authors: tooltipsorg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 701 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Member Directory
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.32 ▼0.12
Dashboard /wp-admin3.31 ▲0.0149.29 ▲6.15
Posts /wp-admin/edit.php3.36 ▲0.0144.41 ▼1.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.94 ▼0.52
Media Library /wp-admin/upload.php3.24 ▲0.0135.71 ▲2.50
User Roles /wp-admin/admin.php?page=memberdirectoryrolesetting_free3.2033.72
Member Directory Setttings /wp-admin/admin.php?page=glossarysettingsfree3.2935.10

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Member Directory: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲12413.59 ▼0.915.95 ▲4.1539.68 ▼0.66
Dashboard /wp-admin2,233 ▲274.84 ▼0.9495.60 ▼0.1940.19 ▲2.06
Posts /wp-admin/edit.php2,113 ▲212.02 ▲0.0140.35 ▲1.3735.29 ▲0.30
Add New Post /wp-admin/post-new.php1,555 ▲1323.32 ▲5.01642.91 ▼15.0257.22 ▼7.24
Media Library /wp-admin/upload.php1,418 ▲364.17 ▼0.06108.39 ▲8.4446.18 ▲0.13
User Roles /wp-admin/admin.php?page=memberdirectoryrolesetting_free8532.0327.8526.37
Member Directory Setttings /wp-admin/admin.php?page=glossarysettingsfree9132.0625.0824.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/member-directory/admin/glossaryglobalsettings.php
    • > /wp-content/plugins/member-directory/rules/useroles.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
4 plugin tags: name directory, user directory, member directory, directory

member-directory/member-directory.php Passed 13 tests

The principal PHP file in "Member Directory" v. 2.0.1 is loaded by WordPress automatically on each request
91 characters long description:
Member Directory,list all members on your site to help users contact each other more easier

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,059 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP514677664
JavaScript12714235
CSS24120160

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin