78% ticketmachine-event-manager

Code Review | TicketMachine Event Manager & Calendar

WordPress plugin TicketMachine Event Manager & Calendar scored78%from 54 tests.

About plugin

  • Plugin page: ticketmachine-eve...
  • Plugin version: 1.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 17, 2020
  • Latest release: Nov 29, 2023
  • Number of updates: 158
  • Update frequency: every 8.7 days
  • Top authors: netupag (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /7,798 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
Installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼5.70ms] Passed 4 tests

This is a short check of server-side resources used by TicketMachine Event Manager & Calendar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1837.39 ▼4.95
Dashboard /wp-admin3.55 ▲0.2147.07 ▼9.07
Posts /wp-admin/edit.php3.67 ▲0.3151.91 ▲4.71
Add New Post /wp-admin/post-new.php6.13 ▲0.2591.58 ▼13.47
Media Library /wp-admin/upload.php3.48 ▲0.2544.00 ▲9.51

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 237 new files
Database: 5 new tables, 7 new options
New tables
wp_ticketmachine_design
wp_ticketmachine_config
wp_ticketmachine_organizers_events_match
wp_ticketmachine_organizers
wp_ticketmachine_log
New WordPress options
widget_recent-posts
db_upgraded
ticketmachine_db_version
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by TicketMachine Event Manager & Calendar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4014.67 ▲0.271.60 ▼0.3037.50 ▼5.60
Dashboard /wp-admin2,207 ▲305.60 ▼0.0592.16 ▼2.5337.44 ▼10.57
Posts /wp-admin/edit.php2,112 ▲121.96 ▼0.0739.96 ▼1.4334.33 ▼6.39
Add New Post /wp-admin/post-new.php1,536 ▲1023.58 ▲0.58621.80 ▲10.9751.08 ▲8.64
Media Library /wp-admin/upload.php1,409 ▲94.23 ▲0.02108.33 ▲6.7246.98 ▲4.09

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • ticketmachine_db_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/ticketmachine-event-manager/admin/pages/installation.php
    • > /wp-content/plugins/ticketmachine-event-manager/admin/debug.php
    • > /wp-content/plugins/ticketmachine-event-manager/partials/_event_page_tickets.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ticketmachine-event-manager/admin/partials/sidebar.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: kalender, gdpr, veranstalter, dsgvo, event...

ticketmachine-event-manager/ticketmachine-event-manager.php 92% from 13 tests

The principal PHP file in "TicketMachine Event Manager & Calendar" v. 1.8.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.5.1" instead of "4.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin60,483 lines of code in 217 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1362,0412,56932,385
CSS1942841314,622
SVG3008,611
PHP446803363,744
PO File2355431710
Markdown5940239
HTML810172

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions57
▷ Named functions5596.49%
▷ Anonymous functions23.51%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/logo.png95.81KB43.16KB▼ 54.96%
assets/img/none.png5.97KB3.17KB▼ 46.83%