83% wp-event-aggregator

Code Review | WP Event Aggregator: Import Eventbrite events, Meetup events, social events and any iCal Events into WordPress

WordPress plugin WP Event Aggregator: Import Eventbrite events, Meetup events, social events and any iCal Events into WordPress scored83%from 54 tests.

About plugin

  • Plugin page: wp-event-aggregator
  • Plugin version: 1.7.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 8, 2016
  • Latest release: Nov 7, 2023
  • Number of updates: 95
  • Update frequency: every 26.5 days
  • Top authors: xylus (97.89%)Dharm1025 (3.16%)

Code review

54 tests

User reviews

50 reviews

Install metrics

2,000+ active /91,562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲1.82MB] [CPU: ▲15.41ms] Passed 4 tests

A check of server-side resources used by WP Event Aggregator: Import Eventbrite events, Meetup events, social events and any iCal Events into WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.32 ▲1.8655.43 ▲13.16
Dashboard /wp-admin5.47 ▲2.1768.57 ▲20.06
Posts /wp-admin/edit.php5.21 ▲1.8556.57 ▲8.36
Add New Post /wp-admin/post-new.php7.69 ▲1.81107.82 ▲24.23
Media Library /wp-admin/upload.php5.01 ▲1.7853.99 ▲20.04
Event Tags /wp-admin/edit-tags.php?taxonomy=event_tag&post_type=wp_events5.0147.99
Events /wp-admin/edit.php?post_type=wp_events5.1247.18
Add New /wp-admin/post-new.php?post_type=wp_events5.2366.80
Event Categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=wp_events5.0145.22

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Event Aggregator: Import Eventbrite events, Meetup events, social events and any iCal Events into WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,990 ▲22813.33 ▼1.011.74 ▲0.1042.40 ▼4.06
Dashboard /wp-admin2,384 ▲2075.19 ▼0.43104.48 ▲6.6743.05 ▼0.73
Posts /wp-admin/edit.php2,195 ▲982.24 ▲0.2939.98 ▲1.9434.57 ▲0.53
Add New Post /wp-admin/post-new.php6,464 ▲4,93828.25 ▲4.96812.95 ▲184.0737.82 ▼7.19
Media Library /wp-admin/upload.php1,515 ▲1154.63 ▲0.4597.22 ▼1.3941.79 ▼1.78
Event Tags /wp-admin/edit-tags.php?taxonomy=event_tag&post_type=wp_events1,3622.3133.7329.79
Events /wp-admin/edit.php?post_type=wp_events1,2422.3738.5931.71
Add New /wp-admin/post-new.php?post_type=wp_events3,5137.45187.4369.91
Event Categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=wp_events1,3932.0933.1530.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% 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 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
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wp-event-aggregator/templates/wpea-event-meta.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Kigkonsult\\Icalcreator\\IcalInterface' not found in wp-content/plugins/wp-event-aggregator/includes/lib/icalcreator/src/IcalBase.php:72
    • > PHP Fatal error
      Uncaught Error: Class 'Kigkonsult\\Icalcreator\\IcalBase' not found in wp-content/plugins/wp-event-aggregator/includes/lib/icalcreator/src/CalendarComponent.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-event-aggregator/templates/wpea-archive-content.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-event-aggregator/templates/wpea-archive-content2.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Kigkonsult\\Icalcreator\\CalendarComponent' not found in wp-content/plugins/wp-event-aggregator/includes/lib/icalcreator/src/Vtimezone.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'Kigkonsult\\Icalcreator\\VetComponent' not found in wp-content/plugins/wp-event-aggregator/includes/lib/icalcreator/src/Vevent.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'Kigkonsult\\Icalcreator\\IcalBase' not found in wp-content/plugins/wp-event-aggregator/includes/lib/icalcreator/src/Vcalendar.php:77
    • > PHP Fatal error
      Uncaught Error: Class 'Kigkonsult\\Icalcreator\\Vcomponent' not found in wp-content/plugins/wp-event-aggregator/includes/lib/icalcreator/src/VetComponent.php:39
    • > PHP Fatal error
      Uncaught Error: Class 'Kigkonsult\\Icalcreator\\CalendarComponent' not found in wp-content/plugins/wp-event-aggregator/includes/lib/icalcreator/src/Vcomponent.php:41

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
These attributes need your attention:
  • Screenshots: A description for screenshot #17 is missing in wp-event-aggregator/assets to your readme.txt
  • Tags: Please delete some tags, you are using 24 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-event-aggregator/wp-event-aggregator.php Passed 13 tests

Analyzing the main PHP file in "WP Event Aggregator: Import Eventbrite events, Meetup events, social events and any iCal Events into WordPress" version 1.7.6
103 characters long description:
Import Events from anywhere - Facebook, Eventbrite, Meetup, iCalendar and ICS into your WordPress site.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin36,034 lines of code in 149 files:
LanguageFilesBlank linesComment linesLines of code
PHP1302,70210,79726,475
CSS6138785,157
SVG6032,888
PO File1404516829
JavaScript46210477
Markdown2500208

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
Please tend to the following items
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 135)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity39.25
▷ Minimum class complexity1.00
▷ Maximum class complexity318.00
Average method complexity6.15
▷ Minimum method complexity1.00
▷ Maximum method complexity135.00
Code structure
Namespaces3
Interfaces1
Traits54
Classes60
▷ Abstract classes58.33%
▷ Concrete classes5591.67%
▷ Final classes916.36%
Methods855
▷ Static methods23927.95%
▷ Public methods66277.43%
▷ Protected methods708.19%
▷ Private methods12314.39%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants225
▷ Global constants114.89%
▷ Class constants21495.11%
▷ Public constants214100.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
15 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-bg_glass_100_f6f6f6_1x400.png0.26KB0.12KB▼ 53.44%
assets/images/xt_logo.png8.77KB4.34KB▼ 50.47%
assets/css/images/ui-icons_ffd27a_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/images/ui-bg_diagonals-thick_20_666666_40x40.png0.30KB0.15KB▼ 49.68%
assets/css/images/ui-icons_228ef1_256x240.png4.44KB4.17KB▼ 6.02%