84% pmpro-events

Code Review | Members-Only Events for Paid Memberships Pro: Integrate Events Manager, The Events Calendar, & Timely

WordPress plugin Members-Only Events for Paid Memberships Pro: Integrate Events Manager, The Events Calendar, & Timely scored84%from 54 tests.

About plugin

  • Plugin page: pmpro-events
  • Plugin version: 1.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 12, 2019
  • Latest release: Jul 6, 2023
  • Number of updates: 19
  • Update frequency: every 78.2 days
  • Top authors: andrewza (57.89%)strangerstudios (31.58%)sc0ttkclark (21.05%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /22,825 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Members-Only Events for Paid Memberships Pro: Integrate Events Manager, The Events Calendar, & Timely
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.48 ▼5.06
Dashboard /wp-admin3.32 ▼0.0246.64 ▼13.10
Posts /wp-admin/edit.php3.38 ▲0.0250.44 ▼0.05
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.53 ▼12.01
Media Library /wp-admin/upload.php3.25 ▲0.0237.68 ▲2.78

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Members-Only Events for Paid Memberships Pro: Integrate Events Manager, The Events Calendar, & Timely
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.25 ▲0.351.74 ▲0.1837.65 ▼2.91
Dashboard /wp-admin2,195 ▲145.61 ▼0.1083.00 ▼17.7135.09 ▼6.04
Posts /wp-admin/edit.php2,100 ▲212.01 ▲0.0436.08 ▼1.8236.49 ▲4.93
Add New Post /wp-admin/post-new.php1,526 ▼023.14 ▲0.03600.33 ▼21.2349.90 ▼22.81
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0196.60 ▼3.7941.75 ▼4.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-events/modules/events-manager.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/pmpro-events/pmpro-events.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-events/modules/the-events-calendar.php:114
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-events/modules/all-in-one-event-calendar.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-events/modules/sugar-calendar.php:12

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: events, pmpro, paid memberships pro, calendar, tickets...

pmpro-events/pmpro-events.php Passed 13 tests

Analyzing the main PHP file in "Members-Only Events for Paid Memberships Pro: Integrate Events Manager, The Events Calendar, & Timely" version 1.4
65 characters long description:
Offer Members-only events using PMPro and popular events plugins.

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
No dangerous file extensions were detected612 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5133271567
PO File18845

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions43
▷ Named functions43100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin