94% import-meetup-events

Code Review | Import Meetup Events

WordPress plugin Import Meetup Events scored 94% from 54 tests.

About plugin

  • Plugin page: import-meetup-events
  • Plugin version: 1.5.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Oct 14, 2016
  • Latest release: Feb 13, 2022
  • Number of updates: 39
  • Update frequency: every 50.0 days
  • Top authors: xylus (89.74%)Dharm1025 (12.82%)

Code review

54 tests

User reviews

13 reviews

Install metrics

700+ active / 12,139 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.87MB] [CPU: ▼313.81ms] Passed 4 tests

An overview of server-side resources used by Import Meetup Events
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.43 ▲0.9162.16 ▼16.88
Dashboard /wp-admin4.26 ▲0.8539.71 ▲7.03
Posts /wp-admin/edit.php4.56 ▲0.9149.89 ▲11.04
Add New Post /wp-admin/post-new.php7.80 ▲0.82104.55 ▼1,254.25
Media Library /wp-admin/upload.php4.21 ▲0.9132.57 ▲8.86
Meetup Events /wp-admin/edit.php?post_type=meetup_events4.2639.62
Event Categories /wp-admin/edit-tags.php?taxonomy=meetup_category&post_type=meetup_events4.2130.16
Add New /wp-admin/post-new.php?post_type=meetup_events4.5852.57
Event Tags /wp-admin/edit-tags.php?taxonomy=meetup_tag&post_type=meetup_events4.2131.53
Meetup Import /wp-admin/admin.php?page=meetup_import4.1932.81

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 53 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Import Meetup Events
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,905 ▲18316.30 ▲1.196.80 ▼1.463.00 ▲0.73
Dashboard /wp-admin2,998 ▲1417.02 ▲0.90122.87 ▼33.72214.27 ▲39.97
Posts /wp-admin/edit.php2,798 ▲1133.22 ▼0.0272.82 ▲9.81169.73 ▲20.27
Add New Post /wp-admin/post-new.php1,746 ▲10816.64 ▲1.19436.86 ▼4.23179.03 ▼8.57
Media Library /wp-admin/upload.php1,800 ▲1056.07 ▲0.53120.93 ▼17.96196.18 ▲4.01
Meetup Events /wp-admin/edit.php?post_type=meetup_events1,5503.2469.97133.08
Event Categories /wp-admin/edit-tags.php?taxonomy=meetup_category&post_type=meetup_events1,7253.2958.02136.62
Add New /wp-admin/post-new.php?post_type=meetup_events4,3389.95210.61231.25
Event Tags /wp-admin/edit-tags.php?taxonomy=meetup_tag&post_type=meetup_events1,6933.2966.47117.97
Meetup Import /wp-admin/admin.php?page=meetup_import1,6183.2464.28178.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no 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 no errors were found, this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: event_id in wp-content/plugins/import-meetup-events/templates/event-meta.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/import-meetup-events/templates/event-meta.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/import-meetup-events/templates/archive-content.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 to be fixed:
  • Screenshots: No descriptions were found for these screenshots #4, #5, #6, #7 in import-meetup-events/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
You can take inspiration from this readme.txt

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

"Import Meetup Events" version 1.5.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
107 characters long description:
Import Meetup Events allows you to import Meetup (meetup.com) events into your WordPress site effortlessly.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin13,349 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP277461,1895,305
CSS5108744,839
SVG6032,888
JavaScript42016317

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity44.78
▷ Minimum class complexity5.00
▷ Maximum class complexity92.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods150
▷ Static methods10.67%
▷ Public methods14596.67%
▷ Protected methods00.00%
▷ Private methods53.33%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/xt_logo.png8.77KB4.34KB▼ 50.47%