78% muun-members-directory

Code Review | Muun members directory

WordPress plugin Muun members directory scored78%from 54 tests.

About plugin

  • Plugin page: muun-members-dire...
  • Plugin version: 1.2
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Nov 5, 2017
  • Latest release: Feb 17, 2018
  • Number of updates: 7
  • Update frequency: every 15.3 days
  • Top authors: muun (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /653 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.02MB] [CPU: ▼9.40ms] Passed 4 tests

Server-side resources used by Muun members directory
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.28 ▼1.22
Dashboard /wp-admin3.33 ▼0.0148.85 ▼10.69
Posts /wp-admin/edit.php3.38 ▲0.0347.33 ▲4.17
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.49 ▼25.62
Media Library /wp-admin/upload.php3.26 ▲0.0333.93 ▼0.07
Muun members directory /wp-admin/options-general.php?page=muunmembers3.2030.49

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Muun members directory
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲16313.44 ▼0.9210.31 ▲8.5738.49 ▼1.52
Dashboard /wp-admin2,202 ▲255.55 ▼0.0981.97 ▼2.1440.07 ▲0.26
Posts /wp-admin/edit.php2,107 ▲71.96 ▼0.0135.22 ▲0.7035.77 ▼2.75
Add New Post /wp-admin/post-new.php1,529 ▲322.87 ▼0.32646.67 ▲6.9762.30 ▲8.30
Media Library /wp-admin/upload.php1,404 ▲44.18 ▼0.0192.38 ▼4.9042.41 ▲2.78
Muun members directory /wp-admin/options-general.php?page=muunmembers8302.0023.3926.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=muunmembers
    • > Notice in wp-content/plugins/muun-members-directory/muun-members-directory.php+153
    Trying to access array offset on value of type bool

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/muun-members-directory/muun-members-directory.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: remotework, coworkingspace, members, members overview, member directory...

muun-members-directory/muun-members-directory.php 92% from 13 tests

Analyzing the main PHP file in "Muun members directory" version 1.2
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin187 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11510139
JavaScript12048

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
PNG images were not found in this plugin