73% spoontalk-event-calendar

Code Review | Wordpress Event Calendar

WordPress plugin Wordpress Event Calendar scored73%from 54 tests.

About plugin

  • Plugin page: spoontalk-event-c...
  • Plugin version: 0.82
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 30, 2014
  • Latest release: Feb 19, 2015
  • Number of updates: 13
  • Update frequency: every 8.7 days
  • Top authors: a.ankit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,211 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.61MB] [CPU: ▼20.80ms] Passed 4 tests

Analyzing server-side resources used by Wordpress Event Calendar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0937.70 ▼6.44
Dashboard /wp-admin3.43 ▲0.0450.24 ▼14.88
Posts /wp-admin/edit.php3.48 ▲0.0849.01 ▼1.08
Add New Post /wp-admin/post-new.php3.28 ▼2.6536.71 ▼60.78
Media Library /wp-admin/upload.php3.35 ▲0.0836.57 ▲2.13
Add New /wp-admin/post-new.php?post_type=stec_custom_event3.2634.38
Events /wp-admin/edit.php?post_type=stec_custom_event3.3938.65
FAQ /wp-admin/edit.php?post_type=stec_custom_event&page=spoontalk-event-calendar/faq.php3.3232.24
Event Categories /wp-admin/edit-tags.php?taxonomy=stec_event_category&post_type=stec_custom_event3.3434.60

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Wordpress Event Calendar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5614.35 ▼0.041.70 ▼0.4243.34 ▲2.73
Dashboard /wp-admin2,233 ▲655.49 ▼0.0489.62 ▼1.2241.70 ▼5.34
Posts /wp-admin/edit.php2,135 ▲322.03 ▼0.0238.42 ▼3.0138.11 ▼1.41
Add New Post /wp-admin/post-new.php1,560 ▲3423.16 ▼0.36637.82 ▼5.7861.27 ▲10.13
Media Library /wp-admin/upload.php1,438 ▲354.22 ▲0.0597.88 ▼3.4444.09 ▲1.31
Add New /wp-admin/post-new.php?post_type=stec_custom_event2,7367.68180.1064.93
Events /wp-admin/edit.php?post_type=stec_custom_event1,1081.9529.5332.16
FAQ /wp-admin/edit.php?post_type=stec_custom_event&page=spoontalk-event-calendar/faq.php8092.0224.4028.78
Event Categories /wp-admin/edit-tags.php?taxonomy=stec_event_category&post_type=stec_custom_event1,3122.1226.3929.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • recuring
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=stec_custom_event
    • > Notice in wp-content/plugins/spoontalk-event-calendar/spoontalk-event-calendar.php+191
    Undefined index: EventStartHours
    • > GET request to /wp-admin/post-new.php?post_type=stec_custom_event
    • > Notice in wp-content/plugins/spoontalk-event-calendar/spoontalk-event-calendar.php+192
    Undefined index: EventStartMinute
    • > GET request to /wp-admin/post-new.php?post_type=stec_custom_event
    • > Notice in wp-content/plugins/spoontalk-event-calendar/spoontalk-event-calendar.php+193
    Undefined index: EventStartMeridian
    • > GET request to /wp-admin/post-new.php?post_type=stec_custom_event
    • > Notice in wp-content/plugins/spoontalk-event-calendar/spoontalk-event-calendar.php+196
    Undefined index: EventEndHours
    • > GET request to /wp-admin/post-new.php?post_type=stec_custom_event
    • > Notice in wp-content/plugins/spoontalk-event-calendar/spoontalk-event-calendar.php+197
    Undefined index: EventEndMinute
    • > GET request to /wp-admin/post-new.php?post_type=stec_custom_event
    • > Notice in wp-content/plugins/spoontalk-event-calendar/spoontalk-event-calendar.php+198
    Undefined index: EventEndMeridian
    • > GET request to /wp-admin/post-new.php?post_type=stec_custom_event
    • > Notice in wp-content/plugins/spoontalk-event-calendar/spoontalk-event-calendar.php+202
    Undefined index: start_date
    • > GET request to /wp-admin/post-new.php?post_type=stec_custom_event
    • > Notice in wp-content/plugins/spoontalk-event-calendar/spoontalk-event-calendar.php+247
    Undefined variable: events_days
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=stec_custom_event
    • > Notice in wp-content/plugins/spoontalk-event-calendar/spoontalk-event-calendar.php+125
    Undefined offset: 3

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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/spoontalk-event-calendar/faq.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/spoontalk-event-calendar/spoontalk-event-calendar.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/spoontalk-event-calendar/fullcalendar-events.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Requires at least: Version not formatted correctly
The official readme.txt is a good inspiration

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

The principal PHP file in "Wordpress Event Calendar" v. 0.82 is loaded by WordPress automatically on each request
113 characters long description:
SpoonTalk Event Calendar is a simple yet powerful plugin for accepting online events on your WordPress blog site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected10,841 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript552,1251,2266,454
CSS133422963,128
HTML214615737
PHP35631470
JSON20052

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
29 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Delete-icon.png14.28KB6.93KB▼ 51.47%
fullcalendar/lib/cupertino/images/ui-icons_2694e8_256x240.png4.49KB4.18KB▼ 6.89%
fullcalendar/lib/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png0.34KB0.15KB▼ 55.84%
fullcalendar/lib/cupertino/images/ui-icons_ffffff_256x240.png6.32KB4.18KB▼ 33.80%
fullcalendar/lib/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png0.38KB0.16KB▼ 58.87%