57% event-feed-for-eventim

Code Review | Event Feeds for Eventim

WordPress plugin Event Feeds for Eventim scored57%from 54 tests.

About plugin

  • Plugin page: event-feed-for-ev...
  • Plugin version: 1.4.3
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 15, 2020
  • Latest release: Jul 21, 2023
  • Number of updates: 13
  • Update frequency: every 72.8 days
  • Top authors: elb98rm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /618 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.98ms] Passed 4 tests

This is a short check of server-side resources used by Event Feeds for Eventim
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.29 ▼1.76
Dashboard /wp-admin3.31 ▼0.0444.17 ▼17.96
Posts /wp-admin/edit.php3.36 ▲0.0043.02 ▼8.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.50 ▼5.12
Media Library /wp-admin/upload.php3.23 ▲0.0033.01 ▼4.43

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Event Feeds for Eventim: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.091.66 ▼0.0837.44 ▼2.22
Dashboard /wp-admin2,194 ▲65.79 ▲0.8798.73 ▼12.3140.01 ▼4.12
Posts /wp-admin/edit.php2,086 ▼32.00 ▲0.0335.29 ▼6.9734.49 ▼4.01
Add New Post /wp-admin/post-new.php1,514 ▼517.52 ▼5.81607.18 ▼65.5562.13 ▲6.36
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0097.65 ▼11.7942.05 ▼7.22

Uninstaller [IO: ▲2.06MB] [DB: ▲0.07MB] 25% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Error in wp-content/plugins/event-feed-for-eventim/uninstall.php+10
    Uncaught Error: Class 'Floor9design\Eventim\Wordpress\EventimFeedScheduler' not found in wp-content/plugins/event-feed-for-eventim/uninstall.php:10
    Stack trace:
    #0 wp-admin/includes/plugin.php(1245): include_once()
    #1 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • The plugin did not uninstall successfully, leaving 89 files (2.06MB) in the plugin directory
    • (new file) CHANGELOG.md
    • (new file) README.md
    • (new file) LICENCE.md
    • (new file) admin/partials/eventim-feed-import-display.php
    • (new file) admin/partials/eventim-feed-instructions-page.php
    • (new file) admin/feeds/feed.json
    • (new file) admin/index.php
    • (new file) admin/css/eventim-feed-admin.css
    • (new file) admin/js/eventim-feed-admin.js
    • (new file) admin/class-eventim-feed-admin.php
    • ...
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/event-feed-for-eventim/public/partials/eventim-feed-promoted.php
    • > /wp-content/plugins/event-feed-for-eventim/public/partials/eventim-feed-public-display.php
    • > /wp-content/plugins/event-feed-for-eventim/public/partials/eventim-feed-list.php
    • > /wp-content/plugins/event-feed-for-eventim/public/partials/eventim-feed-venue.php
  • 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function getEventStatusLookup() on null in wp-content/plugins/event-feed-for-eventim/public/partials/eventim-feed-buy-now-button.php:30
    • > PHP Notice
      Undefined variable: posts in wp-content/plugins/event-feed-for-eventim/public/partials/eventim-feed-list.php on line 22
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/event-feed-for-eventim/public/partials/eventim-feed-buy-now-button.php on line 30
    • > PHP Fatal error
      Uncaught Error: Class 'Floor9design\\Eventim\\Wordpress\\EventimEventPostExtender' not found in wp-content/plugins/event-feed-for-eventim/public/partials/eventim-feed-single-event-serie.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Floor9design\\Eventim\\PluginCore\\Models\\EventFeed' not found in wp-content/plugins/event-feed-for-eventim/vendor/floor9design/plugin-core.eventim.co.uk/src/Models/EventFeedJson.php:41
    • > PHP Notice
      Undefined variable: events in wp-content/plugins/event-feed-for-eventim/public/partials/eventim-feed-venue.php on line 29
    • > PHP Notice
      Trying to get property 'event' of non-object in wp-content/plugins/event-feed-for-eventim/public/partials/eventim-feed-event-list.php on line 29
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/event-feed-for-eventim/public/partials/eventim-feed-event-list.php on line 29
    • > PHP Notice
      Trying to get property 'event' of non-object in wp-content/plugins/event-feed-for-eventim/public/partials/eventim-feed-buy-now-button.php on line 30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/event-feed-for-eventim/admin/partials/eventim-feed-introduction-page.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === event-feed-for-eventim === )
The official readme.txt is a good inspiration

event-feed-for-eventim/eventim-feed.php 69% from 13 tests

This is the main PHP file of "Event Feeds for Eventim" version 1.4.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("event-feed-for-eventim.php" instead of "eventim-feed.php")
  • Domain Path: The domain path should use only dashes and lowercase characters ("src/languages")
  • Git Repository: Please do not include Git repositories in your plugin
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected13,087 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
PHP561,1583,5826,825
JSON4005,324
Markdown61970654
CSS25737208
YAML291336
XML10034
JavaScript24546

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity14.26
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces1
Traits0
Classes26
▷ Abstract classes13.85%
▷ Concrete classes2596.15%
▷ Final classes00.00%
Methods340
▷ Static methods257.35%
▷ Public methods31492.35%
▷ Protected methods102.94%
▷ Private methods164.71%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 1.18MB with 0.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png61.15KB20.62KB▼ 66.27%
assets/screenshot-2.png75.60KB37.29KB▼ 50.67%
assets/screenshot-1.png48.76KB23.30KB▼ 52.22%
assets/banner-1544x500.png797.78KB226.96KB▼ 71.55%
assets/banner-772x250.png202.21KB62.49KB▼ 69.10%