84% xo-event-calendar

Code Review | XO Event Calendar

WordPress plugin XO Event Calendar scored84%from 54 tests.

About plugin

  • Plugin page: xo-event-calendar
  • Plugin version: 3.2.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Mar 11, 2016
  • Latest release: Nov 8, 2023
  • Number of updates: 165
  • Update frequency: every 17.0 days
  • Top authors: ishitaka (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

10,000+ active /147,013 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.57MB] [CPU: ▲0.19ms] Passed 4 tests

Analyzing server-side resources used by XO Event Calendar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4538.09 ▼1.79
Dashboard /wp-admin3.90 ▲0.5948.44 ▲0.36
Posts /wp-admin/edit.php4.02 ▲0.6655.45 ▲3.61
Add New Post /wp-admin/post-new.php6.60 ▲0.7099.21 ▼1.44
Media Library /wp-admin/upload.php3.82 ▲0.5937.03 ▲4.57
Holiday Settings /wp-admin/edit.php?post_type=xo_event&page=xo-event-holiday-settings3.8033.28
Category /wp-admin/edit-tags.php?taxonomy=xo_event_cat&post_type=xo_event3.8242.38
Settings /wp-admin/edit.php?post_type=xo_event&page=xo-event-settings3.7933.94
All Events /wp-admin/edit.php?post_type=xo_event3.8739.88
Add New /wp-admin/post-new.php?post_type=xo_event6.5987.38

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

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

Browser metrics Passed 4 tests

A check of browser resources used by XO Event Calendar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11014.35 ▲0.011.89 ▲0.1638.70 ▼5.84
Dashboard /wp-admin2,236 ▲595.61 ▼0.0691.60 ▼10.4841.01 ▼6.80
Posts /wp-admin/edit.php2,141 ▲441.97 ▼0.0441.55 ▲1.8036.46 ▼0.77
Add New Post /wp-admin/post-new.php6,406 ▲4,88027.76 ▲4.69801.38 ▲121.5137.94 ▼14.18
Media Library /wp-admin/upload.php1,444 ▲444.16 ▼0.0298.50 ▼0.1741.98 ▼1.49
Holiday Settings /wp-admin/edit.php?post_type=xo_event&page=xo-event-holiday-settings1,2032.3047.5934.06
Category /wp-admin/edit-tags.php?taxonomy=xo_event_cat&post_type=xo_event1,4712.4649.0830.41
Settings /wp-admin/edit.php?post_type=xo_event&page=xo-event-settings8642.0123.9329.78
All Events /wp-admin/edit.php?post_type=xo_event1,2031.9030.3830.65
Add New /wp-admin/post-new.php?post_type=xo_event1,95516.73864.5329.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • widget_xo_event_calendar
    • widget_recent-comments
    • widget_theysaidso_widget
    • xo_event_calendar_holiday_settings
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xo-event-calendar/inc/event-calendar-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 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
5 plugin tags: events, event, calendar, events calendar, block

xo-event-calendar/xo-event-calendar.php Passed 13 tests

This is the main PHP file of "XO Event Calendar" version 3.2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
52 characters long description:
XO Event Calendar is a simple event calendar plugin.

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
Everything looks great! No dangerous files found in this plugin4,630 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP83376682,324
JavaScript9572984
Sass41315707
JSON400354
CSS63618181
SVG20080

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity107.25
▷ Minimum class complexity9.00
▷ Maximum class complexity235.00
Average method complexity5.64
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods71
▷ Static methods811.27%
▷ Public methods6084.51%
▷ Protected methods00.00%
▷ Private methods1115.49%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
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
No PNG images were found in this plugin