79% event-alley

Code Review | Event Alley

WordPress plugin Event Alley scored79%from 54 tests.

About plugin

  • Plugin page: event-alley
  • Plugin version: 0.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.5
  • WordPress version: 6.3.1
  • First release: Jul 21, 2016
  • Latest release: Jul 26, 2016
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: webspeed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,180 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.49MB] [CPU: ▼7.07ms] Passed 4 tests

An overview of server-side resources used by Event Alley
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4447.28 ▲8.10
Dashboard /wp-admin3.98 ▲0.6457.53 ▼2.68
Posts /wp-admin/edit.php3.96 ▲0.6141.68 ▼7.85
Add New Post /wp-admin/post-new.php6.15 ▲0.2676.35 ▼22.37
Media Library /wp-admin/upload.php3.91 ▲0.6839.16 ▲4.61
Settings /wp-admin/edit.php?post_type=events&page=ea_settings3.8937.81
Email Templates /wp-admin/edit.php?post_type=events&page=user_emails3.9538.51
Add New Event /wp-admin/post-new.php?post_type=events4.0554.19
Forms /wp-admin/edit.php?post_type=events&page=ea_forms3.8836.59
Bookings /wp-admin/edit.php?post_type=event_booking3.9636.50
Statuses /wp-admin/edit.php?post_type=events&page=user_statuses3.8836.35
Event Venues /wp-admin/edit.php?post_type=event_venue3.9437.25
Event Categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=events3.9138.65
All Events /wp-admin/edit.php?post_type=events3.9537.06

Server storage [IO: ▲1.43MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 74 new files
Database: no new tables, 34 new options
New WordPress options
ea_o_adm_dt_format
widget_recent-comments
ea_o_arch_plc_more
ea_o_single_plc_venue
ea_o_venue_slug
ea_o_arch_plc_venue
widget_recent-posts
ea_o_dd_format
ea_o_from_email
ea_o_arch_plc_date
...

Browser metrics Passed 4 tests

Event Alley: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,342 ▲58113.62 ▼0.601.60 ▼0.0643.72 ▲5.76
Dashboard /wp-admin2,737 ▲5564.97 ▼0.6594.87 ▼3.2457.88 ▲15.48
Posts /wp-admin/edit.php2,717 ▲6172.53 ▲0.5437.56 ▼0.9249.81 ▲14.86
Add New Post /wp-admin/post-new.php2,039 ▲50223.13 ▲5.00678.88 ▲26.4640.08 ▼49.73
Media Library /wp-admin/upload.php1,933 ▲5334.50 ▲0.27100.46 ▲4.1451.38 ▲7.90
Settings /wp-admin/edit.php?post_type=events&page=ea_settings2,3722.8152.8859.83
Email Templates /wp-admin/edit.php?post_type=events&page=user_emails2,4258.22157.3344.82
Add New Event /wp-admin/post-new.php?post_type=events4,9409.38229.5882.43
Forms /wp-admin/edit.php?post_type=events&page=ea_forms2,4012.1531.5252.25
Bookings /wp-admin/edit.php?post_type=event_booking1,6952.3335.1141.77
Statuses /wp-admin/edit.php?post_type=events&page=user_statuses1,4712.2430.5243.17
Event Venues /wp-admin/edit.php?post_type=event_venue1,6932.3435.3242.14
Event Categories /wp-admin/edit-tags.php?taxonomy=event_category&post_type=events1,8152.2233.7546.42
All Events /wp-admin/edit.php?post_type=events1,7032.3436.9240.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 34 options in the database
    • widget_recent-comments
    • ea_o_single_plc_venue
    • ea_o_single_plc_date
    • ea_o_arch_plc_img
    • ea_o_from_email
    • db_upgraded
    • ea_o_dt_format
    • ea_statuses
    • ea_common_form
    • ea_o_arch_plc_date
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > Warning in wp-content/plugins/event-alley/core/backend.php+426
    Invalid argument supplied for foreach()
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > Notice in wp-content/plugins/event-alley/core/modules/backend/BookingBackendController.php+55
    Undefined index: booking_first_name
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > Notice in wp-content/plugins/event-alley/core/modules/backend/BookingBackendController.php+55
    Undefined index: booking_last_name
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > Notice in wp-content/plugins/event-alley/core/modules/backend/BookingBackendController.php+55
    Undefined index: booking_email
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > Notice in wp-content/plugins/event-alley/core/modules/backend/BookingBackendController.php+55
    Undefined index: booking_phone
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > Notice in wp-content/plugins/event-alley/core/modules/backend/BookingBackendController.php+55
    Undefined index: booking_address
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > Notice in wp-content/plugins/event-alley/core/modules/backend/BookingBackendController.php+55
    Undefined index: booking_address_2
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > Notice in wp-content/plugins/event-alley/core/modules/backend/BookingBackendController.php+55
    Undefined index: booking_town
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > Notice in wp-content/plugins/event-alley/core/modules/backend/BookingBackendController.php+55
    Undefined index: booking_county
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > Notice in wp-content/plugins/event-alley/core/modules/backend/BookingBackendController.php+55
    Undefined index: booking_post_code
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > Notice in wp-content/plugins/event-alley/core/modules/backend/BookingBackendController.php+55
    Undefined index: booking_country
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=events
    • > Notice in wp-content/plugins/event-alley/core/modules/backend/BookingBackendController.php+55
    Undefined index: booking_terms

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/post-new.php?post_type=events
    • > Network (severe)
    images/3px-tile.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: exhibit, event, seminar, events, eventalley...

event-alley/event-alley.php Passed 13 tests

Analyzing the main PHP file in "Event Alley" version 0.9.1
99 characters long description:
The next generation event management and booking system handcrafted for you to publish your events.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin28,902 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript44,1513,50121,058
PHP438771164,384
CSS91321503,046
HTML18415414

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.42
Average class complexity15.70
▷ Minimum class complexity1.00
▷ Maximum class complexity76.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods165
▷ Static methods10.61%
▷ Public methods15996.36%
▷ Protected methods00.00%
▷ Private methods63.64%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/jquery-ui/images/ui-bg_highlight-soft_100_deedf7_1x100.png0.38KB0.18KB▼ 52.97%
assets/css/jquery-ui/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png0.30KB0.15KB▼ 50.32%
assets/css/jquery-ui/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png0.32KB0.14KB▼ 56.02%
assets/css/jquery-ui/images/ui-bg_glass_80_d7ebf9_1x400.png0.34KB0.16KB▼ 53.76%
assets/css/jquery-ui/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%