10% wpeventticketing

Code Review | WP Event Ticketing

WordPress plugin WP Event Ticketing scored 10% from 54 tests.

About plugin

  • Plugin page: wpeventticketing
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.2.2
  • WordPress version: 5.8.1
  • First release: Sep 18, 2010
  • Latest release: May 15, 2015
  • Number of updates: 127
  • Update frequency: every 13.4 days
  • Top authors: toddhuish (77.95%)vegasgeek (20.47%)jrfoell (3.15%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 30,704 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method eventTicketingSystem::activate() should not be called statically

Server metrics [RAM: ▼0.43MB] [CPU: ▼175.53ms] Passed 4 tests

An overview of server-side resources used by WP Event Ticketing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.13 ▲0.4128.21 ▼2.91
Dashboard /wp-admin3.22 ▲0.1725.98 ▼23.06
Posts /wp-admin/edit.php3.22 ▲0.1225.72 ▼21.36
Add New Post /wp-admin/post-new.php3.22 ▼2.2125.28 ▼643.55
Media Library /wp-admin/upload.php3.22 ▲0.2223.92 ▼14.16
Settings /wp-admin/admin.php?page=ticketsettings3.2224.33
Ticket Options /wp-admin/admin.php?page=ticketoptions3.2236.22
Tickets /wp-admin/admin.php?page=tickettickets3.2223.88
Notify Attendees /wp-admin/admin.php?page=ticketnotify3.2222.90
Instructions /wp-admin/admin.php?page=ticketinstructions3.2226.35
Coupons /wp-admin/admin.php?page=ticketcoupons3.2223.53
Attendees /wp-admin/admin.php?page=ticketattendeeedit3.2227.16
Reporting /wp-admin/admin.php?page=eventticketing3.2227.18
Packages /wp-admin/admin.php?page=ticketpackages3.2231.61

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 1 new option
New WordPress options
eventTicketingSystem

Browser metrics Passed 4 tests

An overview of browser requirements for WP Event Ticketing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,776 ▲20416.00 ▲0.1011.45 ▼1.3452.64 ▲3.32
Dashboard /wp-admin3,034 ▲1036.13 ▲0.21138.73 ▼11.81163.00 ▲49.19
Posts /wp-admin/edit.php2,829 ▲902.76 ▲0.0668.71 ▼2.6099.49 ▼0.23
Add New Post /wp-admin/post-new.php1,665 ▼1813.35 ▼5.02290.54 ▼124.36118.29 ▼1.89
Media Library /wp-admin/upload.php1,820 ▲105.13 ▲0.16132.87 ▼14.78152.87 ▲29.20
Settings /wp-admin/admin.php?page=ticketsettings1,6802.7166.72109.67
Ticket Options /wp-admin/admin.php?page=ticketoptions1,3292.4474.6295.53
Tickets /wp-admin/admin.php?page=tickettickets1,1682.4262.1284.09
Notify Attendees /wp-admin/admin.php?page=ticketnotify1,1592.4256.8989.72
Instructions /wp-admin/admin.php?page=ticketinstructions1,2472.5563.5887.53
Coupons /wp-admin/admin.php?page=ticketcoupons1,1122.4058.2380.12
Attendees /wp-admin/admin.php?page=ticketattendeeedit1,1562.4359.0669.36
Reporting /wp-admin/admin.php?page=eventticketing1,1282.4059.6776.93
Packages /wp-admin/admin.php?page=ticketpackages1,2092.4157.9383.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method eventTicketingSystem::options() should not be called statically
  • This plugin does not fully uninstall, leaving 1 option in the database
    • eventTicketingSystem

Smoke tests 50% 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
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ticketpackages
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method eventTicketingSystem::options() should not be called statically
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ticketpackages
    • > User deprecated in wp-includes/functions.php+5211
    add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ticketpackages
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method eventTicketingSystem::adminscripts() should not be called statically
    • > GET request to /wp-admin/admin.php?page=ticketsettings
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method eventTicketingSystem::ticketSettings() should not be called statically
  • 24 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ticketsettings
    • > Notice in wp-content/plugins/wpeventticketing/ticketing.php+347
    Undefined index: paypalCurrency
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ticketsettings
    • > Notice in wp-content/plugins/wpeventticketing/ticketing.php+540
    Undefined index: eventTicketingStatus
    • > GET request to /wp-admin/admin.php?page=ticketoptions
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method eventTicketingSystem::ticketOptionsControl() should not be called statically
    • > GET request to /wp-admin/admin.php?page=tickettickets
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method eventTicketingSystem::ticketTicketsControl() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tickettickets
    • > Notice in wp-content/plugins/wpeventticketing/ticketing.php+1636
    Undefined variable: ticketProto
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tickettickets
    • > Notice in wp-content/plugins/wpeventticketing/ticketing.php+1636
    Trying to get property 'ticketId' of non-object
    • > GET request to /wp-admin/admin.php?page=ticketnotify
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method eventTicketingSystem::ticketNotify() should not be called statically
    • > GET request to /wp-admin/admin.php?page=ticketinstructions
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method eventTicketingSystem::ticketInstructions() should not be called statically
    • > GET request to /wp-admin/admin.php?page=ticketcoupons
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method eventTicketingSystem::ticketCouponsControl() should not be called statically
    • > GET request to /wp-admin/admin.php?page=ticketattendeeedit
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method eventTicketingSystem::ticketAttendeeEdit() should not be called statically
    • > GET request to /wp-admin/admin.php?page=ticketattendeeedit
    • > Deprecated in wp-content/plugins/wpeventticketing/ticketing.php+663
    Non-static method eventTicketingSystem::generateAttendeeTable() should not be called statically
    • > GET request to /wp-admin/admin.php?page=ticketattendeeedit
    • > Deprecated in wp-content/plugins/wpeventticketing/ticketing.php+1042
    Non-static method eventTicketingSystem::getAttendeeArr() should not be called statically
    • > GET request to /wp-admin/admin.php?page=ticketattendeeedit
    • > Deprecated in wp-content/plugins/wpeventticketing/ticketing.php+937
    Non-static method eventTicketingSystem::getAttendees() should not be called statically
    • > GET request to /wp-admin/admin.php?page=eventticketing
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method eventTicketingSystem::ticketReporting() should not be called statically
    • > GET request to /wp-admin/admin.php?page=eventticketing
    • > Deprecated in wp-content/plugins/wpeventticketing/ticketing.php+1251
    Non-static method eventTicketingSystem::currencyFormat() should not be called statically
    • > GET request to /wp-admin/admin.php?page=eventticketing
    • > Deprecated in wp-content/plugins/wpeventticketing/ticketing.php+194
    Non-static method eventTicketingSystem::getCurrencySymbol() should not be called statically
    • > GET request to /wp-admin/admin.php?page=eventticketing
    • > Notice in wp-content/plugins/wpeventticketing/ticketing.php+1255
    Undefined variable: discounted
    • > GET request to /wp-admin/admin.php?page=eventticketing
    • > Notice in wp-content/plugins/wpeventticketing/ticketing.php+1276
    Undefined variable: ticket
    • > GET request to /wp-admin/admin.php?page=eventticketing
    • > Notice in wp-content/plugins/wpeventticketing/ticketing.php+1302
    Undefined variable: attendee
    • > GET request to /wp-admin/admin.php?page=ticketpackages
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method eventTicketingSystem::ticketPackagesControl() should not be called statically

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wpeventticketing/ticketing.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in wpeventticketing/assets to your readme.txt
The official readme.txt might help

wpeventticketing/ticketing.php 92% from 13 tests

"WP Event Ticketing" version 1.3.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wpeventticketing.php" instead of "ticketing.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,719 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP33052362,439
JavaScript3862121,469
CSS811888811

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity82.40
▷ Minimum class complexity5.00
▷ Maximum class complexity381.00
Average method complexity7.67
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_flat_10_000000_40x100.png0.17KB0.08KB▼ 51.12%
images/calendar_full.png1.64KB0.74KB▼ 55.00%
css/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
css/images/ui-bg_glass_100_fdf5ce_1x400.png0.12KB0.16KB0.00%
css/images/ui-bg_diagonals-thick_20_666666_40x40.png0.25KB0.15KB▼ 37.45%