10% tryst-member

Code Review | Tryst Member

WordPress plugin Tryst Member scored10%from 54 tests.

About plugin

  • Plugin page: tryst-member
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2.9+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2020
  • Latest release: Oct 22, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: mbsdevel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /365 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/tryst-member/includes/class-tryst-member.php+173
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.83MB] [CPU: ▼60.34ms] Passed 4 tests

A check of server-side resources used by Tryst Member
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.295.64 ▼37.22
Dashboard /wp-admin2.19 ▼1.157.45 ▼61.02
Posts /wp-admin/edit.php2.19 ▼1.166.36 ▼50.90
Add New Post /wp-admin/post-new.php2.19 ▼3.706.34 ▼92.22
Media Library /wp-admin/upload.php2.19 ▼1.046.87 ▼28.18

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 105 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
db_upgraded
tryst_option
widget_recent-comments
widget_theysaidso_widget
recovery_mode_email_last_sent
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tryst Member
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.23 ▼0.141.79 ▼0.2938.92 ▼12.71
Dashboard /wp-admin2,202 ▲285.59 ▼0.0788.30 ▼27.2936.80 ▼10.61
Posts /wp-admin/edit.php2,101 ▼22.02 ▲0.0437.05 ▼16.8334.05 ▼6.85
Add New Post /wp-admin/post-new.php45 ▼1,4810.42 ▼22.730.09 ▼690.449.06 ▼50.67
Media Library /wp-admin/upload.php1,401 ▲14.23 ▲0.06103.00 ▲5.8769.59 ▲26.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/tryst-member/includes/class-tryst-member.php+173
    Undefined index: form_country
  • The uninstall procedure has failed, leaving 8 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • tryst_option
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 9× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tryst-member/public/templates/pt_BR/fields/form-address-fields.php
    • > /wp-content/plugins/tryst-member/public/templates/pt_BR/fields/base-fields.php
    • > /wp-content/plugins/tryst-member/public/templates/en_US/fields/form-address-fields.php
    • > /wp-content/plugins/tryst-member/public/templates/en_US/fields/form-billet-fields.php
    • > /wp-content/plugins/tryst-member/admin/includes/Domain/pt_BR/form-user-profile.php
    • > /wp-content/plugins/tryst-member/admin/includes/Domain/en_US/form-user-profile.php
    • > /wp-content/plugins/tryst-member/public/templates/pt_BR/fields/form-billet-fields.php
    • > /wp-content/plugins/tryst-member/admin/partials/tryst-member-admin-display.php
    • > /wp-content/plugins/tryst-member/public/partials/tryst-member-public-display.php
  • 33× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tryst-member/public/templates/en_US/print.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_page_link() in wp-content/plugins/tryst-member/public/templates/en_US/membership.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/tryst-member/public/templates/en_US/dashboard.php:5
    • > PHP Warning
      include(wp-content/plugins/tryst-member/public/templates/en_US/../include_scripts.php): failed to open stream: No such file or directory in wp-content/plugins/tryst-member/public/templates/en_US/membership.php on line 1
    • > PHP Notice
      Undefined variable: d in wp-content/plugins/tryst-member/admin/includes/Domain/en_US/form-user-profile.php on line 353
    • > PHP Notice
      Trying to get property 'civil_state' of non-object in wp-content/plugins/tryst-member/admin/includes/Domain/en_US/form-user-profile.php on line 354
    • > PHP Notice
      Trying to get property 'civil_state' of non-object in wp-content/plugins/tryst-member/admin/includes/Domain/pt_BR/form-user-profile.php on line 353
    • > PHP Notice
      Trying to get property 'civil_state' of non-object in wp-content/plugins/tryst-member/admin/includes/Domain/en_US/form-user-profile.php on line 355
    • > PHP Notice
      Undefined variable: d in wp-content/plugins/tryst-member/admin/includes/Domain/en_US/form-user-profile.php on line 352
    • > PHP Notice
      Undefined variable: d in wp-content/plugins/tryst-member/admin/includes/Domain/pt_BR/form-user-profile.php on line 353

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
4 plugin tags: member, meeting, calendar, tryst

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

The principal PHP file in "Tryst Member" v. 1.1.0 is loaded by WordPress automatically on each request
24 characters long description:
Member support for Tryst

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
Success! There were no dangerous files found in this plugin10,835 lines of code in 89 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript423451,1607,297
PHP353668462,463
CSS78313576
HTML270375
PO File14350101
JSON20023

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.87
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.98
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods123
▷ Static methods2318.70%
▷ Public methods11694.31%
▷ Protected methods00.00%
▷ Private methods75.69%
Functions10
▷ Named functions440.00%
▷ Anonymous functions660.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/jQuery-Validation-Engine-master/css/screenshot.png34.99KB10.34KB▼ 70.44%