78% event-importer-for-meetup-and-the-events-calendar

Code Review | Event Importer for Meetup and The Events Calendar

WordPress plugin Event Importer for Meetup and The Events Calendar scored78%from 54 tests.

About plugin

  • Plugin page: event-importer-fo...
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.6
  • WordPress version: 6.3.1
  • First release: Mar 29, 2016
  • Latest release: Aug 21, 2016
  • Number of updates: 5
  • Update frequency: every 29.2 days
  • Top authors: dabernathy89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,193 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.55ms] Passed 4 tests

An overview of server-side resources used by Event Importer for Meetup and The Events Calendar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.91 ▲0.26
Dashboard /wp-admin3.31 ▲0.0045.65 ▼6.65
Posts /wp-admin/edit.php3.36 ▲0.0048.72 ▼0.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.16 ▼17.11
Media Library /wp-admin/upload.php3.23 ▲0.0035.69 ▼1.75

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Event Importer for Meetup and The Events Calendar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.365.05 ▲3.1241.47 ▼3.39
Dashboard /wp-admin2,206 ▲185.90 ▲0.0495.28 ▼22.5239.74 ▼8.50
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0240.00 ▲4.3034.79 ▼1.03
Add New Post /wp-admin/post-new.php1,514 ▼1917.45 ▼5.55661.76 ▼17.9755.82 ▼5.64
Media Library /wp-admin/upload.php1,391 ▲64.22 ▼0.0097.74 ▼5.8440.13 ▼4.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/event-importer-for-meetup-and-the-events-calendar/includes/class-saved-imports-table.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: event_cats in wp-content/plugins/event-importer-for-meetup-and-the-events-calendar/includes/views/tec-meetup-tab-content.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/event-importer-for-meetup-and-the-events-calendar/includes/views/tec-meetup-tab-content.php:30
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/event-importer-for-meetup-and-the-events-calendar/includes/views/tec-meetup-tab-content.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/event-importer-for-meetup-and-the-events-calendar/tec-meetup.php:398

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: calendar, meetup, events

event-importer-for-meetup-and-the-events-calendar/tec-meetup.php 85% from 13 tests

"Event Importer for Meetup and The Events Calendar" version 0.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("event-importer-for-meetup-and-the-events-calendar.php" instead of "tec-meetup.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin794 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10179636759
CSS281435

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods62
▷ Static methods58.06%
▷ Public methods5791.94%
▷ Protected methods58.06%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin