73% event-feed-for-eventbrite

Code Review | Show Eventbrite Events - Event Feed for Eventbrite

WordPress plugin Show Eventbrite Events - Event Feed for Eventbrite scored73%from 54 tests.

About plugin

  • Plugin page: event-feed-for-ev...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 18, 2021
  • Latest release: Jul 19, 2023
  • Number of updates: 24
  • Update frequency: every 27.3 days
  • Top authors: bohemiaplugins (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

600+ active /3,983 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲5.64MB] [CPU: ▲28.74ms] 75% from 4 tests

A check of server-side resources used by Show Eventbrite Events - Event Feed for Eventbrite
It is recommended to improve the following
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.64MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.20 ▲5.7470.71 ▲25.35
Dashboard /wp-admin9.22 ▲5.9284.64 ▲32.74
Posts /wp-admin/edit.php9.22 ▲5.8791.09 ▲41.55
Add New Post /wp-admin/post-new.php10.93 ▲5.04133.44 ▲21.08
Media Library /wp-admin/upload.php9.22 ▲5.9972.98 ▲35.80
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2267.35

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 269 new files
Database: no new tables, 10 new options
New WordPress options
fs_debug_mode
widget_theysaidso_widget
widget_recent-comments
fs_active_plugins
db_upgraded
fs_accounts
can_compress_scripts
event-feed-for-eventbrite-formats
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Show Eventbrite Events - Event Feed for Eventbrite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,986 ▲22514.47 ▼0.041.61 ▼0.2028.47 ▼14.84
Dashboard /wp-admin2,380 ▲2066.22 ▲0.54113.21 ▲21.6047.05 ▲3.77
Posts /wp-admin/edit.php2,306 ▲2063.37 ▲1.3755.82 ▲18.7940.66 ▲4.41
Add New Post /wp-admin/post-new.php1,724 ▲18621.80 ▼1.36685.18 ▲4.7537.29 ▼9.32
Media Library /wp-admin/upload.php1,442 ▲424.18 ▼0.0581.74 ▼24.2445.04 ▼3.48
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,2873.1245.9331.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/event-feed-for-eventbrite/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 10 options in the database
    • fs_debug_mode
    • theysaidso_admin_options
    • db_upgraded
    • fs_active_plugins
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • fs_accounts
    • event-feed-for-eventbrite-formats
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/event-feed-for-eventbrite/admin/partials/event-feed/metabox-popup.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/event-feed-for-eventbrite/admin/partials/event-feed/metabox-eventbrite.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/event-feed-for-eventbrite/admin/partials/event-feed/metabox-shortcode.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/event-feed-for-eventbrite/admin/partials/settings/settings.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/event-feed-for-eventbrite/admin/partials/event-feed/metabox-card.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/event-feed-for-eventbrite/admin/partials/event-feed/metabox-design.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/event-feed-for-eventbrite/admin/partials/event-feed/metabox-checkout.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/event-feed-for-eventbrite/admin/partials/event-feed/metabox-filters.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function EFFE_Plugin\\get_option() in wp-content/plugins/event-feed-for-eventbrite/includes/class-event-feed-api.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/event-feed-for-eventbrite/admin/partials/event-feed/metabox-advanced.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: calendar, eventbrite, api, events, widget

event-feed-for-eventbrite/event-feed-for-eventbrite.php Passed 13 tests

The entry point to "Show Eventbrite Events - Event Feed for Eventbrite" version 1.1.2 is a PHP file that has certain tags in its header comment area
68 characters long description:
The easiest way to publish Eventbrite events to your WordPress site.

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin40,990 lines of code in 188 files:
LanguageFilesBlank linesComment linesLines of code
PHP1428,96818,58637,475
SVG2012,681
CSS233820407
Markdown1680214
JavaScript203472213

PHP code 0% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 109)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity83.05
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity109.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes59
▷ Abstract classes23.39%
▷ Concrete classes5796.61%
▷ Final classes00.00%
Methods1,376
▷ Static methods20014.53%
▷ Public methods96970.42%
▷ Protected methods251.82%
▷ Private methods38227.76%
Functions156
▷ Named functions10164.74%
▷ Anonymous functions5535.26%
Constants148
▷ Global constants10067.57%
▷ Class constants4832.43%
▷ Public constants48100.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
9 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/layout-cards.png2.24KB0.72KB▼ 67.77%
admin/assets/img/layout-list.png2.49KB0.82KB▼ 67.02%
admin/assets/img/layout-grid.png2.09KB0.61KB▼ 70.73%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
admin/assets/img/layout-widget.png2.23KB0.74KB▼ 66.94%