94% eventbee-ticketing-widget

Code Review | Eventbee Ticketing Widget

WordPress plugin Eventbee Ticketing Widget scored 94% from 54 tests.

About plugin

  • Plugin page: eventbee-ticketin...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.5
  • WordPress version: 5.8.1
  • First release: Jun 29, 2016
  • Latest release: Sep 1, 2020
  • Number of updates: 17
  • Update frequency: every 89.7 days
  • Top authors: eventbee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,118 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Eventbee Ticketing Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0043.49 ▲5.52
Dashboard /wp-admin3.06 ▲0.0147.55 ▼0.33
Posts /wp-admin/edit.php3.11 ▲0.0147.51 ▼2.69
Add New Post /wp-admin/post-new.php5.42 ▼0.0196.69 ▼572.70
Media Library /wp-admin/upload.php3.01 ▲0.0033.77 ▼3.88

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Eventbee Ticketing Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.84 ▲0.1612.33 ▼0.1248.72 ▼0.08
Dashboard /wp-admin2,973 ▲395.88 ▼0.25140.03 ▼22.05113.10 ▼5.63
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0069.61 ▼7.6292.17 ▲4.77
Add New Post /wp-admin/post-new.php1,683 ▲10218.19 ▼2.04417.06 ▲13.16113.51 ▲3.83
Media Library /wp-admin/upload.php1,810 ▲35.03 ▼0.02157.07 ▼14.94118.05 ▲1.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/eventbee-ticketing-widget/ticket-widget.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: eventwidgets, tickets, events, eventbeewidgets, eventbee

eventbee-ticketing-widget/ticket-widget.php 85% from 13 tests

"Eventbee Ticketing Widget" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("eventbee-ticketing-widget.php" instead of "ticket-widget.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 206 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141815

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected