68% rsvp

Code Review | RSVP and Event Management Plugin

WordPress plugin RSVP and Event Management Plugin scored68%from 54 tests.

About plugin

  • Plugin page: rsvp
  • Plugin version: 2.7.13
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1
  • WordPress version: 6.3.1
  • First release: Feb 6, 2010
  • Latest release: Sep 18, 2023
  • Number of updates: 277
  • Update frequency: every 18.0 days
  • Top authors: mdedev (90.25%)raldea89 (6.86%)machothemes (1.81%)wpchill (1.44%)giucu91 (1.08%)

Code review

54 tests

User reviews

50 reviews

Install metrics

5,000+ active /225,558 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.02ms] Passed 4 tests

Analyzing server-side resources used by RSVP and Event Management Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.41 ▲0.45
Dashboard /wp-admin3.45 ▲0.1147.89 ▼14.93
Posts /wp-admin/edit.php3.50 ▲0.1550.27 ▲3.13
Add New Post /wp-admin/post-new.php5.97 ▲0.0893.71 ▼5.90
Media Library /wp-admin/upload.php3.31 ▲0.0835.83 ▲0.30
RSVP Import /wp-admin/admin.php?page=rsvp-admin-import3.2833.06
Add Guest /wp-admin/admin.php?page=rsvp-admin-guest3.2833.36
RSVP Export /wp-admin/admin.php?page=rsvp-admin-export/e64e3ac9223.1324.57
Events /wp-admin/admin.php?page=rsvp-events3.2932.90
RSVP Settings /wp-admin/admin.php?page=rsvp-options3.2940.99
Attendees /wp-admin/admin.php?page=rsvp-top-level3.2935.48
Custom Questions /wp-admin/admin.php?page=rsvp-admin-questions3.2935.58
LITE vs Premium /wp-admin/admin.php?page=rsvp-upgrade-to-pro3.3434.69

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 161 new files
Database: 7 new tables, 8 new options
New tables
wp_rsvpCustomQuestions
wp_rsvpCustomQuestionAnswers
wp_rsvpQuestionTypes
wp_attendeeAnswers
wp_attendees
wp_rsvpCustomQuestionAttendees
wp_associatedAttendees
New WordPress options
rsvp-rate-time
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
rsvp_db_version
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for RSVP and Event Management Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9614.75 ▲0.371.84 ▼0.2041.98 ▼2.50
Dashboard /wp-admin2,246 ▲665.58 ▼0.1084.05 ▼2.5271.18 ▲29.44
Posts /wp-admin/edit.php2,157 ▲572.00 ▼0.0341.16 ▲4.3134.29 ▼1.24
Add New Post /wp-admin/post-new.php1,720 ▲18922.38 ▼0.65736.72 ▲40.8156.81 ▼0.10
Media Library /wp-admin/upload.php1,454 ▲544.24 ▼0.01104.88 ▼3.9977.27 ▲33.17
RSVP Import /wp-admin/admin.php?page=rsvp-admin-import8792.0624.6327.94
Add Guest /wp-admin/admin.php?page=rsvp-admin-guest1,0581.9331.5138.88
RSVP Export /wp-admin/admin.php?page=rsvp-admin-export/e64e3ac922280.440.104.17
Events /wp-admin/admin.php?page=rsvp-events9861.9025.7027.01
RSVP Settings /wp-admin/admin.php?page=rsvp-options1,6792.0228.4142.88
Attendees /wp-admin/admin.php?page=rsvp-top-level1,0982.0029.2927.57
Custom Questions /wp-admin/admin.php?page=rsvp-admin-questions1,0242.0531.4834.13
LITE vs Premium /wp-admin/admin.php?page=rsvp-upgrade-to-pro1,0871.8727.9335.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall successfully, leaving 7 tables in the database
    • wp_attendeeAnswers
    • wp_rsvpQuestionTypes
    • wp_rsvpCustomQuestionAnswers
    • wp_attendees
    • wp_rsvpCustomQuestionAttendees
    • wp_associatedAttendees
    • wp_rsvpCustomQuestions
  • Zombie WordPress options were found after uninstall: 8 options
    • rsvp_db_version
    • db_upgraded
    • widget_recent-comments
    • rsvp-rate-time
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 70× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Box\\Spout\\Common\\Exception\\SpoutException' not found in wp-content/plugins/rsvp/external-libs/spout/src/Spout/Common/Exception/InvalidArgumentException.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Box\\Spout\\Common\\Exception\\SpoutException' not found in wp-content/plugins/rsvp/external-libs/spout/src/Spout/Common/Exception/UnsupportedTypeException.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/rsvp/includes/class-rsvp-review.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rsvp/external-libs/wp-simple-nonce/wp-simple-nonce.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Box\\Spout\\Writer\\AbstractMultiSheetsWriter' not found in wp-content/plugins/rsvp/external-libs/spout/src/Spout/Writer/ODS/Writer.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/rsvp/wp-rsvp.php:52
    • > PHP Fatal error
      Uncaught Error: Class 'Box\\Spout\\Reader\\Common\\ReaderOptions' not found in wp-content/plugins/rsvp/external-libs/spout/src/Spout/Reader/CSV/ReaderOptions.php:13
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/rsvp/includes/rsvp-constants.php on line 7
    • > PHP Fatal error
      Uncaught Error: Interface 'Box\\Spout\\Common\\Escaper\\EscaperInterface' not found in wp-content/plugins/rsvp/external-libs/spout/src/Spout/Common/Escaper/XLSX.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Box\\Spout\\Common\\Exception\\SpoutException' not found in wp-content/plugins/rsvp/external-libs/spout/src/Spout/Common/Exception/IOException.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=rsvp-admin-export/e64e3ac922
    • > Network (severe)
    wp-admin/admin.php?page=rsvp-admin-export/e64e3ac922 - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=rsvp-options
    • > Network (severe)
    wp-content/plugins/rsvp/assets/admin/css/images/ui-bg_inset-hard_100_fcfdfd_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add an image for screenshot #1 (The text you need to add for the rsvp front-end)
You can look at the official readme.txt

rsvp/wp-rsvp.php 92% from 13 tests

"RSVP and Event Management Plugin" version 2.7.13's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rsvp.php" instead of "wp-rsvp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected15,456 lines of code in 131 files:
LanguageFilesBlank linesComment linesLines of code
PHP1152,5455,99310,063
PO File71,0611,1213,041
CSS44371701,777
JavaScript410426539
JSON11036

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.46
▷ Minimum class complexity1.00
▷ Maximum class complexity130.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces29
Interfaces8
Traits2
Classes97
▷ Abstract classes99.28%
▷ Concrete classes8890.72%
▷ Final classes00.00%
Methods717
▷ Static methods375.16%
▷ Public methods46765.13%
▷ Protected methods22130.82%
▷ Private methods294.04%
Functions52
▷ Named functions4994.23%
▷ Anonymous functions35.77%
Constants230
▷ Global constants5523.91%
▷ Class constants17576.09%
▷ Public constants175100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ui-icons_d8e7f3_256x240.png4.27KB4.11KB▼ 3.78%
images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
images/ui-icons_f9bd01_256x240.png4.27KB4.11KB▼ 3.78%
images/ui-icons_217bc0_256x240.png4.27KB4.11KB▼ 3.78%
images/plus.png1.35KB1.39KB0.00%