68% rsvp-me

Code Review | RSVP ME

WordPress plugin RSVP ME scored68%from 54 tests.

About plugin

  • Plugin page: rsvp-me
  • Plugin version: 1.9.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.0
  • WordPress version: 6.3.1
  • First release: Dec 28, 2010
  • Latest release: Oct 28, 2014
  • Number of updates: 36
  • Update frequency: every 41.6 days
  • Top authors: MicahBlu (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /12,648 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.26MB] [CPU: ▲5.17ms] Passed 4 tests

This is a short check of server-side resources used by RSVP ME
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2647.50 ▲3.02
Dashboard /wp-admin3.57 ▲0.2658.92 ▲4.58
Posts /wp-admin/edit.php3.67 ▲0.3159.92 ▲11.00
Add New Post /wp-admin/post-new.php6.15 ▲0.2692.80 ▲3.92
Media Library /wp-admin/upload.php3.50 ▲0.2646.02 ▲9.14
Add event /wp-admin/post-new.php?post_type=event3.6265.57
Event tags /wp-admin/edit-tags.php?taxonomy=event_tag&post_type=event3.4951.51
All events /wp-admin/edit.php?post_type=event3.5348.78
Event categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=event3.4942.04

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: 1 new table, 7 new options
New tables
wp_rsvp_me_respondents
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_rsvp_me_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by RSVP ME
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,241 ▲48014.77 ▲0.1811.19 ▲9.4439.17 ▼8.94
Dashboard /wp-admin2,287 ▲1135.69 ▲0.0995.81 ▼6.7495.80 ▲52.51
Posts /wp-admin/edit.php2,194 ▲912.69 ▲0.7146.43 ▲6.2437.60 ▲1.52
Add New Post /wp-admin/post-new.php1,597 ▲6924.26 ▲1.07715.76 ▲46.4741.10 ▼16.64
Media Library /wp-admin/upload.php1,495 ▲985.18 ▲1.00110.56 ▲7.7281.05 ▲35.94
Add event /wp-admin/post-new.php?post_type=event3,2787.88188.44140.87
Event tags /wp-admin/edit-tags.php?taxonomy=event_tag&post_type=event1,3492.5538.5937.14
All events /wp-admin/edit.php?post_type=event1,1992.5842.1733.66
Event categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=event1,3772.5536.9937.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_rsvp_me_respondents
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_rsvp_me_widget
    • widget_recent-posts
    • 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
Even though everything seems fine, this is not an exhaustive test

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
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rsvp-me/rsvpme.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rsvp-me/admin.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rsvp-me/archive-event.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rsvp-me/includes/rsvpme_events_post_type.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rsvp-me/includes/rsvpme_widget.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rsvp-me/includes/rsvpme_shortcodes.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rsvp-me/single-event.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=event_category&post_type=event
    • > Javascript (severe) in unknown
    /wp-content/plugins/rsvp-me/js/admin.js 94:27 Uncaught TypeError: $(...).wpColorPicker is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (![Admin Screen](screenshot-1.png "Admin Screenshot")), #2 (![Calendar Widget](screenshot-2.png "Calendar Widget"))
  • Tags: You are using too many tags: 23 tag instead of maximum 10
The official readme.txt might help

rsvp-me/rsvpme.php 92% from 13 tests

The main PHP script in "RSVP ME" version 1.9.9 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rsvp-me.php" instead of "rsvpme.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected14,945 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript62,3551,42012,516
CSS384571,262
PHP92792601,074
HTML313093

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.00
▷ Minimum class complexity4.00
▷ Maximum class complexity18.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
23 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pen.png1.64KB0.81KB▼ 50.75%
js/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
images/rsvp-me-logo-r.png12.16KB4.56KB▼ 62.50%
images/calendar.png1.36KB0.54KB▼ 59.86%
screenshot-2.png91.03KB33.15KB▼ 63.58%