10% events-rsvp

Code Review | Events RSVP

WordPress plugin Events RSVP scored10%from 54 tests.

About plugin

  • Plugin page: events-rsvp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2015
  • Latest release: Apr 9, 2015
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: Julien Klepatch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,420 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/events-rsvp/ersvp.php+33
    Use of undefined constant ERSVP_PLUGIN_PATH - assumed 'ERSVP_PLUGIN_PATH' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.97MB] [CPU: ▼55.54ms] Passed 4 tests

This is a short check of server-side resources used by Events RSVP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.30 ▼33.45
Dashboard /wp-admin2.05 ▼1.309.73 ▼49.95
Posts /wp-admin/edit.php2.05 ▼1.315.17 ▼41.88
Add New Post /wp-admin/post-new.php2.05 ▼3.845.14 ▼96.89
Media Library /wp-admin/upload.php2.05 ▼1.184.97 ▼27.48
Add New /wp-admin/post-new.php?post_type=ersvp-events2.055.51
Settings /wp-admin/edit.php?post_type=ersvp-events&page=ersvp-settings2.055.97
All Events /wp-admin/edit.php?post_type=ersvp-events2.055.25

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Events RSVP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7714.38 ▲0.031.89 ▲0.3244.65 ▲4.00
Dashboard /wp-admin2,220 ▲435.57 ▼0.0987.47 ▲2.6439.78 ▼2.95
Posts /wp-admin/edit.php2,134 ▲341.95 ▼0.0134.79 ▼0.3931.32 ▼2.64
Add New Post /wp-admin/post-new.php1,554 ▲1923.22 ▲4.90596.64 ▼46.6558.23 ▼5.33
Media Library /wp-admin/upload.php1,434 ▲344.23 ▲0.02100.50 ▲6.4244.15 ▲1.18
Add New /wp-admin/post-new.php?post_type=ersvp-events1,5912.5649.2052.62
Settings /wp-admin/edit.php?post_type=ersvp-events&page=ersvp-settings8762.0022.0926.57
All Events /wp-admin/edit.php?post_type=ersvp-events1,0951.9730.4929.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/events-rsvp/ersvp.php+33
    Use of undefined constant ERSVP_PLUGIN_PATH - assumed 'ERSVP_PLUGIN_PATH' (this will throw an Error in a future version of PHP)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_ersvp_widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ersvp-events
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/events-rsvp/ersvp.php+33
    Use of undefined constant ERSVP_PLUGIN_PATH - assumed 'ERSVP_PLUGIN_PATH' (this will throw an Error in a future version of PHP)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ersvp-events
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/events-rsvp/ersvp.php+34
    Use of undefined constant ERSVP_PLUGIN_URL - assumed 'ERSVP_PLUGIN_URL' (this will throw an Error in a future version of PHP)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ersvp-events
    • > POST request to /wp-admin/admin-ajax.php
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in ersvp_widget is deprecated since version 4.3.0! Use __construct() instead.

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-rsvp/includes/ersvp-widgets.php:16

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: rsvp, event, form, events, organization

events-rsvp/ersvp.php 92% from 13 tests

The principal PHP file in "Events RSVP" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("events-rsvp.php" instead of "ersvp.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
Everything looks great! No dangerous files found in this plugin591 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7108261488
Markdown129068
CSS15035

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
back-end.png73.41KB32.30KB▼ 56.00%
front-end.png15.85KB7.51KB▼ 52.62%