78% rsvpmaker-volunteer-roles

Code Review | RSVPMaker Volunteer Roles

WordPress plugin RSVPMaker Volunteer Roles scored78%from 54 tests.

About plugin

  • Plugin page: rsvpmaker-volunte...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2015
  • Latest release: Oct 30, 2021
  • Number of updates: 22
  • Update frequency: every 105.9 days
  • Top authors: davidfcarr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,337 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.40ms] Passed 4 tests

This is a short check of server-side resources used by RSVPMaker Volunteer Roles
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1238.27 ▼1.83
Dashboard /wp-admin3.44 ▲0.1350.72 ▼2.24
Posts /wp-admin/edit.php3.49 ▲0.1350.82 ▼3.94
Add New Post /wp-admin/post-new.php6.02 ▲0.1389.06 ▼9.58
Media Library /wp-admin/upload.php3.36 ▲0.1341.19 ▲4.12
Volunteer Report /wp-admin/edit.php?post_type=rsvpmaker&page=rsvp_vreport3.1323.09
Volunteer History /wp-admin/edit.php?post_type=rsvpmaker&page=rsvp_history3.1331.19

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for RSVPMaker Volunteer Roles
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.161.71 ▲0.0538.28 ▼4.84
Dashboard /wp-admin2,195 ▲215.65 ▲0.0296.18 ▲8.5141.98 ▼2.97
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0140.88 ▼0.2436.43 ▼0.96
Add New Post /wp-admin/post-new.php1,550 ▲1923.14 ▼0.14706.41 ▲53.5270.22 ▲14.22
Media Library /wp-admin/upload.php1,403 ▼04.24 ▼0.00106.00 ▲2.3446.96 ▲3.37
Volunteer Report /wp-admin/edit.php?post_type=rsvpmaker&page=rsvp_vreport280.440.143.81
Volunteer History /wp-admin/edit.php?post_type=rsvpmaker&page=rsvp_history280.440.164.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rsvpmaker-volunteer-roles/volunteer-roles.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)
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=rsvpmaker&page=rsvp_vreport
    • > Network (severe)
    wp-admin/edit.php?post_type=rsvpmaker&page=rsvp_vreport - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/edit.php?post_type=rsvpmaker&page=rsvp_history
    • > Network (severe)
    wp-admin/edit.php?post_type=rsvpmaker&page=rsvp_history - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: rsvp, event, volunteer, calendar

rsvpmaker-volunteer-roles/volunteer-roles.php 92% from 13 tests

The primary PHP file in "RSVPMaker Volunteer Roles" version 1.5.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rsvpmaker-volunteer-roles.php" instead of "volunteer-roles.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin577 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP111431546
JavaScript113531

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin