84% eventbee-rsvp-widget

Code Review | Eventbee RSVP Widget

WordPress plugin Eventbee RSVP Widget scored84%from 54 tests.

About plugin

  • Plugin page: eventbee-rsvp-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.3
  • WordPress version: 6.3.1
  • First release: Jun 29, 2016
  • Latest release: Sep 26, 2023
  • Number of updates: 24
  • Update frequency: every 110.2 days
  • Top authors: eventbee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,200 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.03ms] Passed 4 tests

A check of server-side resources used by Eventbee RSVP Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.09 ▼2.48
Dashboard /wp-admin3.31 ▲0.0048.69 ▼3.24
Posts /wp-admin/edit.php3.36 ▲0.0054.03 ▼0.48
Add New Post /wp-admin/post-new.php5.89 ▲0.00107.01 ▲2.60
Media Library /wp-admin/upload.php3.23 ▲0.0037.55 ▼1.91

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Eventbee RSVP Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼1.171.87 ▲0.1040.04 ▼3.14
Dashboard /wp-admin2,209 ▲274.88 ▼0.96108.38 ▲4.0447.59 ▲1.33
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0139.04 ▼2.6735.61 ▼0.31
Add New Post /wp-admin/post-new.php1,546 ▲2723.27 ▼0.04618.01 ▼54.2149.66 ▼6.46
Media Library /wp-admin/upload.php1,388 ▼04.30 ▲0.0499.76 ▼20.2243.89 ▼6.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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
Everything seems fine, however 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/eventbee-rsvp-widget/rsvp-widget.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: eventwidgets, eventbee, tickets, eventbeewidgets, rsvp...

eventbee-rsvp-widget/rsvp-widget.php 85% from 13 tests

The principal PHP file in "Eventbee RSVP Widget" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 465 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("eventbee-rsvp-widget.php" instead of "rsvp-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131615

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected