84% import-meetup-events

Code Review | Import Meetup Events

WordPress plugin Import Meetup Events scored84%from 54 tests.

About plugin

  • Plugin page: import-meetup-events
  • Plugin version: 1.6.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 14, 2016
  • Latest release: Nov 6, 2023
  • Number of updates: 51
  • Update frequency: every 50.6 days
  • Top authors: xylus (92.16%)Dharm1025 (9.8%)

Code review

54 tests

User reviews

15 reviews

Install metrics

600+ active /18,860 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.24MB] [CPU: ▲9.28ms] Passed 4 tests

An overview of server-side resources used by Import Meetup Events
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.71 ▲1.2446.13 ▲8.67
Dashboard /wp-admin4.53 ▲1.2356.21 ▲10.77
Posts /wp-admin/edit.php4.65 ▲1.2959.84 ▲17.60
Add New Post /wp-admin/post-new.php7.14 ▲1.2598.49 ▲6.09
Media Library /wp-admin/upload.php4.45 ▲1.2346.30 ▲11.57
Add New /wp-admin/post-new.php?post_type=meetup_events4.6161.13
Event Tags /wp-admin/edit-tags.php?taxonomy=meetup_tag&post_type=meetup_events4.4540.14
Meetup Events /wp-admin/edit.php?post_type=meetup_events4.5044.48
Event Categories /wp-admin/edit-tags.php?taxonomy=meetup_category&post_type=meetup_events4.4539.45

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Import Meetup Events
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲16413.74 ▼0.611.66 ▲0.1040.26 ▲3.62
Dashboard /wp-admin2,302 ▲1245.08 ▼0.6497.76 ▼20.2537.88 ▼5.77
Posts /wp-admin/edit.php2,194 ▲912.44 ▲0.4944.62 ▲3.3736.75 ▼0.34
Add New Post /wp-admin/post-new.php6,464 ▲4,93828.15 ▲5.001,011.61 ▲338.5141.06 ▼29.19
Media Library /wp-admin/upload.php1,517 ▲1174.55 ▲0.3692.41 ▼1.9440.14 ▼4.26
Add New /wp-admin/post-new.php?post_type=meetup_events3,3927.38201.4977.61
Event Tags /wp-admin/edit-tags.php?taxonomy=meetup_tag&post_type=meetup_events1,3612.2135.9234.44
Meetup Events /wp-admin/edit.php?post_type=meetup_events1,2302.5438.8633.21
Event Categories /wp-admin/edit-tags.php?taxonomy=meetup_category&post_type=meetup_events1,3862.2230.7730.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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 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 take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/import-meetup-events/templates/ime-archive-content2.php:13
    • > 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 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #4, #5, #6, #7, #8 in import-meetup-events/assets to your readme.txt
  • Tags: You are using too many tags: 21 tag instead of maximum 10
You can take inspiration from this readme.txt

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

This is the main PHP file of "Import Meetup Events" version 1.6.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected15,727 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP311,2041,6197,213
CSS6130755,214
SVG6032,888
JavaScript4279412

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity57.50
▷ Minimum class complexity5.00
▷ Maximum class complexity230.00
Average method complexity5.96
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods228
▷ Static methods52.19%
▷ Public methods16471.93%
▷ Protected methods5825.44%
▷ Private methods62.63%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in 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%