84% bp-member-swipe

Code Review | Member Swipe for BuddyPress

WordPress plugin Member Swipe for BuddyPress scored 84% from 54 tests.

About plugin

  • Plugin page: bp-member-swipe
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2020
  • Latest release: Dec 6, 2022
  • Number of updates: 12
  • Update frequency: every 75.6 days
  • Top authors: themosaurus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 12,360 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Member Swipe for BuddyPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.71 ▼9.93
Dashboard /wp-admin3.31 ▲0.0143.11 ▼1.65
Posts /wp-admin/edit.php3.36 ▲0.0047.59 ▲4.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.75 ▲1.83
Media Library /wp-admin/upload.php3.23 ▲0.0032.49 ▲3.29

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Member Swipe for BuddyPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲3814.48 ▲0.101.76 ▼0.2935.85 ▼7.15
Dashboard /wp-admin2,215 ▲244.85 ▼0.03106.83 ▲1.3242.18 ▲2.13
Posts /wp-admin/edit.php2,098 ▲92.04 ▲0.0542.88 ▲6.7935.24 ▲1.28
Add New Post /wp-admin/post-new.php1,529 ▼423.30 ▼0.03654.06 ▼14.6368.15 ▲11.08
Media Library /wp-admin/upload.php1,394 ▲94.23 ▲0.0996.25 ▼7.1342.33 ▼5.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/bp-member-swipe/templates/members/members-swipe-loop-items.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bp-member-swipe/templates/members/members-swipe-loop.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/bp-member-swipe/templates/members/index-swipe.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: tinder, member, dating, buddypress, bp...

bp-member-swipe/bp-member-swipe.php Passed 13 tests

The primary PHP file in "Member Swipe for BuddyPress" version 1.1.6 is used by WordPress to initiate all plugin functionality
96 characters long description:
This plugin allows you to create a directory to swipe your members in a mobile friendly layout..

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin11,533 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71,7671,0129,242
CSS102081331,704
PHP10145197445
PO File1225475142

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin