66% kikfyre-events-calendar-tickets

Code Review | Events, Calendars & Tickets - Event Kikfyre

WordPress plugin Events, Calendars & Tickets - Event Kikfyre scored66%from 54 tests.

About plugin

  • Plugin page: kikfyre-events-ca...
  • Plugin version: 2.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.8
  • WordPress version: 6.3.1
  • First release: Dec 23, 2016
  • Latest release: Aug 24, 2017
  • Number of updates: 107
  • Update frequency: every 2.3 days
  • Top authors: cmshelplive (53.27%)kikfyre (47.66%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /9,202 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲2.19MB] [CPU: ▲17.41ms] Passed 4 tests

An overview of server-side resources used by Events, Calendars & Tickets - Event Kikfyre
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.60 ▲2.1463.57 ▲19.69
Dashboard /wp-admin5.51 ▲2.2074.14 ▲26.47
Posts /wp-admin/edit.php5.62 ▲2.2672.77 ▲24.39
Add New Post /wp-admin/post-new.php8.10 ▲2.21107.72 ▼0.92
Media Library /wp-admin/upload.php5.43 ▲2.2067.06 ▲30.53
Frontend /wp-admin/admin.php?page=em_frontend5.4055.01
Add Performer /wp-admin/admin.php?page=em_performer_add5.4659.45
Add Event /wp-admin/admin.php?page=em_add5.5065.52
Analytics /wp-admin/admin.php?page=em_analytics5.4055.27
Extensions /wp-admin/admin.php?page=em_extensions5.4059.30
Settings /wp-admin/admin.php?page=em_global_settings5.5462.34
All Events /wp-admin/admin.php?page=event_magic5.4258.72
Performers /wp-admin/admin.php?page=em_performers5.4154.90
Ticket Manager /wp-admin/admin.php?page=em_ticket_template_add5.4357.62
Add Venue /wp-admin/admin.php?page=em_venue_add5.4861.45

Server storage [IO: ▲8.30MB] [DB: ▲0.37MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 305 new files
Database: no new tables, 15 new options
New WordPress options
em_venue_children
widget_eventm_calendar
emagic_db_version
em_event_type_children
can_compress_scripts
widget_recent-posts
widget_recent-comments
em_global_settings
widget_theysaidso_widget
widget_eventm_venue_map
...

Browser metrics Passed 4 tests

Checking browser requirements for Events, Calendars & Tickets - Event Kikfyre
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,291 ▲55615.38 ▲0.5714.56 ▲12.7342.71 ▼6.23
Dashboard /wp-admin2,321 ▲1305.58 ▲0.67125.62 ▲20.8565.01 ▲23.80
Posts /wp-admin/edit.php2,214 ▲1222.63 ▲0.6146.28 ▲6.3358.24 ▲22.74
Add New Post /wp-admin/post-new.php1,603 ▲8323.45 ▲0.18667.85 ▲54.8341.84 ▼5.87
Media Library /wp-admin/upload.php1,886 ▲4985.51 ▲1.34117.38 ▲21.6856.98 ▲15.11
Frontend /wp-admin/admin.php?page=em_frontend1,2082.4333.39100.71
Add Performer /wp-admin/admin.php?page=em_performer_add1,9548.58192.98102.48
Add Event /wp-admin/admin.php?page=em_add4,5969.60290.45120.25
Analytics /wp-admin/admin.php?page=em_analytics1,2044.7789.9355.16
Extensions /wp-admin/admin.php?page=em_extensions1,0312.4533.9485.97
Settings /wp-admin/admin.php?page=em_global_settings4,53412.13375.95138.20
All Events /wp-admin/admin.php?page=event_magic1,9193.99102.6679.09
Performers /wp-admin/admin.php?page=em_performers1,1633.4373.5161.80
Ticket Manager /wp-admin/admin.php?page=em_ticket_template_add1,6595.0490.4083.87
Add Venue /wp-admin/admin.php?page=em_venue_add2,5678.73189.3465.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 15 options in the database
    • em_event_type_children
    • emagic_db_version
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • em_venue_children
    • widget_eventm_event_countdown
    • widget_eventm_slider
    • widget_eventm_calendar
    • widget_recent-posts
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=em_frontend
    • > Notice in wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/frontend.php+8
    Undefined variable: global_options
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=em_frontend
    • > Notice in wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/frontend.php+8
    Trying to access array offset on value of type null
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=em_ticket_template_add
    • > POST request to /wp-admin/admin-ajax.php?action=em_load_strings
    • > Warning in wp-content/plugins/kikfyre-events-calendar-tickets/includes/service/class-em-ticket.php+36
    Creating default object from empty value
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=em_analytics
    • > POST request to /wp-admin/admin-ajax.php?action=em_load_strings
    • > Warning in wp-content/plugins/kikfyre-events-calendar-tickets/includes/service/class-em-analytics.php+46
    Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=em_analytics
    • > POST request to /wp-admin/admin-ajax.php?action=em_load_strings
    • > Warning in wp-content/plugins/kikfyre-events-calendar-tickets/includes/service/class-em-analytics.php+46
    Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=em_analytics
    • > POST request to /wp-admin/admin-ajax.php?action=em_load_strings
    • > Warning in wp-content/plugins/kikfyre-events-calendar-tickets/includes/service/class-em-analytics.php+45
    Attempt to assign property 'events' of non-object
    • > GET request to /wp-admin/admin.php?page=em_analytics
    • > POST request to /wp-admin/admin-ajax.php?action=em_load_strings
    • > Warning in wp-content/plugins/kikfyre-events-calendar-tickets/includes/service/class-em-analytics.php+46
    Attempt to modify property 'events' of non-object
    • > GET request to /wp-admin/admin.php?page=em_analytics
    • > POST request to /wp-admin/admin-ajax.php?action=em_load_strings
    • > Warning in wp-content/plugins/kikfyre-events-calendar-tickets/includes/service/class-em-analytics.php+47
    Attempt to assign property 'event' of non-object
    • > GET request to /wp-admin/admin.php?page=em_performers
    • > POST request to /wp-admin/admin-ajax.php?action=em_load_strings
    • > Notice in wp-content/plugins/kikfyre-events-calendar-tickets/includes/core/class-em-utility.php+170
    Undefined property: stdClass::$em_pending
    • > GET request to /wp-admin/admin.php?page=em_performers
    • > POST request to /wp-admin/admin-ajax.php?action=em_load_strings
    • > Notice in wp-content/plugins/kikfyre-events-calendar-tickets/includes/core/class-em-utility.php+170
    Undefined property: stdClass::$em_expired
    • > GET request to /wp-admin/admin.php?page=em_performers
    • > POST request to /wp-admin/admin-ajax.php?action=em_load_strings
    • > Notice in wp-content/plugins/kikfyre-events-calendar-tickets/includes/core/class-em-utility.php+170
    Undefined property: stdClass::$em_cancelled
    • > GET request to /wp-admin/admin.php?page=em_venue_add
    • > POST request to /wp-admin/admin-ajax.php?action=em_load_strings
    • > Notice in wp-content/plugins/kikfyre-events-calendar-tickets/includes/dao/class-em-venue.php+95
    Undefined property: WP_Error::$name
    • > GET request to /wp-admin/admin.php?page=em_venue_add
    • > POST request to /wp-admin/admin-ajax.php?action=em_load_strings
    • > Notice in wp-content/plugins/kikfyre-events-calendar-tickets/includes/dao/class-em-venue.php+96
    Undefined property: WP_Error::$slug

SRP 0% 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
  • 9× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/analytics.php
    • > /wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/event_ticket_templates.php
    • > /wp-content/plugins/kikfyre-events-calendar-tickets/includes/lib/tcpdf_min/tools/tcpdf_addfont.php
    • > /wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/performer_add.php
    • > /wp-content/plugins/kikfyre-events-calendar-tickets/includes/templates/booking_details.php
    • > /wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/frontend.php
    • > /wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/event_types.php
    • > /wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/event_ticket_add.php
    • > /wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/performers.php
  • 49× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: global_options in wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/frontend.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'EventM_Array_Model' not found in wp-content/plugins/kikfyre-events-calendar-tickets/includes/models/class-em-event.php:10
    • > PHP Notice
      Undefined variable: global_options in wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/frontend.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/frontend.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'EventM_UI_Strings' not found in wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/bookings.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/global_settings.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function event_m_get_param() in wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/child_event.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kikfyre-events-calendar-tickets/includes/templates/single-em_event.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/kikfyre-events-calendar-tickets/includes/admin/template/frontend.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'EventM_Model' not found in wp-content/plugins/kikfyre-events-calendar-tickets/includes/models/class-em-booking.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=em_global_settings
    • > Network (severe)
    wp-admin/%7B%7Bdata.base_path%7D%7Dimages/payment-paypal.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: event registration, event, event widget, events, event calendar

kikfyre-events-calendar-tickets/event-magic.php 85% from 13 tests

The main file in "Events, Calendars & Tickets - Event Kikfyre" v. 2.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.5" instead of "4.1")
  • Main file name: Name the main plugin file the same as the plugin slug ("kikfyre-events-calendar-tickets.php" instead of "event-magic.php")

Code Analysis 95% from 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
Success! There were no dangerous files found in this plugin87,052 lines of code in 187 files:
LanguageFilesBlank linesComment linesLines of code
PHP1345,45512,72761,679
JSON24012,201
JavaScript291,9391,8468,722
CSS75942083,560
HTML144143881
XML1009

PHP code 0% from 2 tests

Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 4,349)
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 499)
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity98.03
▷ Minimum class complexity1.00
▷ Maximum class complexity4,349.00
Average method complexity6.47
▷ Minimum method complexity1.00
▷ Maximum method complexity499.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes77
▷ Abstract classes56.49%
▷ Concrete classes7293.51%
▷ Final classes11.39%
Methods1,410
▷ Static methods15410.92%
▷ Public methods1,09277.45%
▷ Protected methods28320.07%
▷ Private methods352.48%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants128
▷ Global constants128100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
81 PNG files occupy 1.17MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/sample/images/sponser-1.png136.31KB37.73KB▼ 72.32%
includes/admin/sample/images/sponser-2.png76.34KB23.56KB▼ 69.14%
includes/templates/css/images/loading_background.png0.13KB0.15KB0.00%
includes/templates/css/images/building_active.png0.50KB0.50KB0.00%
includes/admin/template/images/next.png1.41KB0.28KB▼ 80.00%