84% import-eventbrite-events

Code Review | Import Eventbrite Events

WordPress plugin Import Eventbrite Events scored84%from 54 tests.

About plugin

  • Plugin page: import-eventbrite...
  • Plugin version: 1.7.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 15, 2016
  • Latest release: Nov 6, 2023
  • Number of updates: 77
  • Update frequency: every 33.5 days
  • Top authors: xylus (96.1%)Dharm1025 (5.19%)

Code review

54 tests

User reviews

44 reviews

Install metrics

5,000+ active /126,446 total downloads

Benchmarks

Plugin footprint 83% from 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: ▲1.13MB] [CPU: ▲2.43ms] Passed 4 tests

Server-side resources used by Import Eventbrite Events
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.62 ▲1.1549.39 ▲8.89
Dashboard /wp-admin4.43 ▲1.0957.27 ▼10.71
Posts /wp-admin/edit.php4.49 ▲1.1354.02 ▲6.95
Add New Post /wp-admin/post-new.php7.04 ▲1.1591.96 ▲4.60
Media Library /wp-admin/upload.php4.36 ▲1.1345.83 ▲10.17
Event Categories /wp-admin/edit-tags.php?taxonomy=eventbrite_category&post_type=eventbrite_events4.3539.74
Event Tags /wp-admin/edit-tags.php?taxonomy=eventbrite_tag&post_type=eventbrite_events4.3541.40
Add New /wp-admin/post-new.php?post_type=eventbrite_events4.5160.33
Eventbrite Events /wp-admin/edit.php?post_type=eventbrite_events4.4150.87

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Import Eventbrite Events
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲13914.79 ▲0.391.76 ▼0.2642.24 ▼1.19
Dashboard /wp-admin2,302 ▲1245.17 ▼0.55104.32 ▼8.5042.72 ▼1.84
Posts /wp-admin/edit.php2,191 ▲912.44 ▲0.4137.41 ▲1.4632.40 ▼1.18
Add New Post /wp-admin/post-new.php6,449 ▲4,92327.32 ▲3.81926.24 ▲218.6535.81 ▼20.60
Media Library /wp-admin/upload.php1,517 ▲1174.56 ▲0.3694.37 ▼18.1541.14 ▼6.94
Event Categories /wp-admin/edit-tags.php?taxonomy=eventbrite_category&post_type=eventbrite_events1,3862.0131.9531.15
Event Tags /wp-admin/edit-tags.php?taxonomy=eventbrite_tag&post_type=eventbrite_events1,3612.2833.2029.65
Add New /wp-admin/post-new.php?post_type=eventbrite_events3,3998.30184.4776.03
Eventbrite Events /wp-admin/edit.php?post_type=eventbrite_events1,2302.4336.3127.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/import-eventbrite-events/templates/iee-archive-content.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/import-eventbrite-events/templates/iee-event-meta.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/import-eventbrite-events/templates/iee-archive-content2.php:13

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: A description for screenshot #14 is missing in import-eventbrite-events/assets to your readme.txt
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
Please take inspiration from this readme.txt

import-eventbrite-events/import-eventbrite-events.php Passed 13 tests

Analyzing the main PHP file in "Import Eventbrite Events" version 1.7.1
106 characters long description:
Import Eventbrite Events allows you to import Eventbrite (eventbrite.com) events into your WordPress site.

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
Success! There were no dangerous files found in this plugin15,825 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP298051,3306,551
CSS6144765,214
SVG6032,888
PO File1302356625
JavaScript4308392
Markdown2440155

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity58.89
▷ Minimum class complexity5.00
▷ Maximum class complexity196.00
Average method complexity7.43
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods162
▷ Static methods10.62%
▷ Public methods15897.53%
▷ Protected methods00.00%
▷ Private methods42.47%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/xt_logo.png8.77KB4.34KB▼ 50.47%
assets/images/iee_icon.png2.75KB2.82KB0.00%