93% match-me-for-buddypress

Code Review | Match me for BuddyPress

WordPress plugin Match me for BuddyPress scored 93% from 54 tests.

About plugin

  • Plugin page: match-me-for-budd...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Feb 22, 2017
  • Latest release: Jun 1, 2020
  • Number of updates: 26
  • Update frequency: every 45.9 days
  • Top authors: XpertOne (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

800+ active / 14,064 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Match me for BuddyPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1533.19 ▲11.97
Dashboard /wp-admin3.08 ▲0.0345.68 ▲0.89
Posts /wp-admin/edit.php3.14 ▲0.0346.20 ▲3.67
Add New Post /wp-admin/post-new.php5.45 ▲0.0292.70 ▼547.05
Media Library /wp-admin/upload.php3.03 ▲0.0231.98 ▼7.14

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Match me for BuddyPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,681 ▲8615.85 ▲0.418.83 ▼0.3845.95 ▼5.91
Dashboard /wp-admin2,967 ▲335.89 ▼0.03131.81 ▼3.53104.42 ▼7.78
Posts /wp-admin/edit.php2,739 ▼02.80 ▲0.1165.44 ▲1.7392.69 ▲1.92
Add New Post /wp-admin/post-new.php1,672 ▲5718.89 ▼2.38375.43 ▲105.30112.18 ▲11.34
Media Library /wp-admin/upload.php1,807 ▼35.05 ▲0.05140.96 ▼18.48119.42 ▲10.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/match-me-for-buddypress/class-mp-bp-match.php:6

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Requires at least: Version format is invalid
You can look at the official readme.txt

match-me-for-buddypress/loader.php 92% from 13 tests

"Match me for BuddyPress" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("match-me-for-buddypress.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,743 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS12401,162
PHP4232209581

PHP code Passed 2 tests

Analyzing 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.39
Average class complexity31.33
▷ Minimum class complexity7.00
▷ Maximum class complexity69.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods46
▷ Static methods00.00%
▷ Public methods46100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin