10% notikumi-ticketing

Code Review | Notikumi Ticketing

WordPress plugin Notikumi Ticketing scored 10% from 54 tests.

About plugin

  • Plugin page: notikumi-ticketing
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1+
  • WordPress version: 6.3.1
  • First release: Aug 6, 2019
  • Latest release: Mar 3, 2021
  • Number of updates: 35
  • Update frequency: every 16.5 days
  • Top authors: canoset (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 642 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/notikumi-ticketing/public/class-notikumi-public.php+344
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▼0.12MB] [CPU: ▼5.81ms] Passed 4 tests

A check of server-side resources used by Notikumi Ticketing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▼0.6021.40 ▼21.40
Dashboard /wp-admin3.35 ▲0.0546.70 ▼0.94
Posts /wp-admin/edit.php3.40 ▲0.0557.79 ▲11.79
Add New Post /wp-admin/post-new.php5.95 ▲0.0794.47 ▼0.99
Media Library /wp-admin/upload.php3.27 ▲0.0436.85 ▲0.09
Contenido /wp-admin/admin.php?page=events-config3.5040.26
Notikumi /wp-admin/admin.php?page=notikumi-ticketing3.2831.19
Custom diseño /wp-admin/admin.php?page=template-config3.3233.37

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 69 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
ntk_content_agenda_type_key
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Notikumi Ticketing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,988 ▲19915.69 ▲1.37256.21 ▲253.8745.54 ▼3.86
Dashboard /wp-admin2,252 ▲436.27 ▲0.42136.69 ▲35.7786.24 ▲46.26
Posts /wp-admin/edit.php2,141 ▲493.42 ▲1.4181.34 ▲45.5435.74 ▲2.98
Add New Post /wp-admin/post-new.php1,565 ▲3122.27 ▼0.84841.15 ▲133.6829.03 ▼30.28
Media Library /wp-admin/upload.php1,433 ▲455.04 ▲0.80135.24 ▲5.2261.07 ▲8.81
Contenido /wp-admin/admin.php?page=events-config8613.4465.2324.13
Notikumi /wp-admin/admin.php?page=notikumi-ticketing8763.1337.6930.54
Custom diseño /wp-admin/admin.php?page=template-config1,3683.5472.7950.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • ntk_content_agenda_type_key
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=events-config
    • > Notice in wp-content/plugins/notikumi-ticketing/admin/partials/events.php+69
    Undefined index: widget_pos
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=notikumi-ticketing
    • > Notice in wp-content/plugins/notikumi-ticketing/admin/partials/credentials.php+61
    Undefined variable: opt_user_key
    • > GET request to /wp-admin/admin.php?page=notikumi-ticketing
    • > Notice in wp-content/plugins/notikumi-ticketing/admin/partials/credentials.php+45
    Undefined variable: opt_pass_key
    • > GET request to /wp-admin/admin.php?page=notikumi-ticketing
    • > Notice in wp-content/plugins/notikumi-ticketing/admin/partials/credentials.php+67
    Undefined variable: ntk_pass_key
    • > GET request to /wp-admin/admin.php?page=template-config
    • > Notice in wp-content/plugins/notikumi-ticketing/admin/partials/templates.php+131
    Undefined variable: three_cols_php_custom_key
    • > GET request to /wp-admin/admin.php?page=template-config
    • > Notice in wp-content/plugins/notikumi-ticketing/admin/partials/templates.php+132
    Undefined variable: three_cols_original_php
    • > GET request to /wp-admin/admin.php?page=template-config
    • > Notice in wp-content/plugins/notikumi-ticketing/admin/partials/templates.php+135
    Undefined variable: single_col_php_custom_key
    • > GET request to /wp-admin/admin.php?page=template-config
    • > Notice in wp-content/plugins/notikumi-ticketing/admin/partials/templates.php+136
    Undefined variable: single_col_original_php
    • > GET request to /wp-admin/admin.php?page=template-config
    • > Notice in wp-content/plugins/notikumi-ticketing/admin/partials/templates.php+138
    Undefined variable: event_page_php_custom_key
    • > GET request to /wp-admin/admin.php?page=template-config
    • > Notice in wp-content/plugins/notikumi-ticketing/admin/partials/templates.php+139
    Undefined variable: event_page_original_php

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
The following issues need your attention
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/notikumi-ticketing/public/partials/notikumi-public-display.php
    • > /wp-content/plugins/notikumi-ticketing/templates/original/php/single-col.php
    • > /wp-content/plugins/notikumi-ticketing/templates/original/php/three-cols.php
  • 35× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: event in wp-content/plugins/notikumi-ticketing/templates/original/php/three-cols.php on line 84
    • > PHP Notice
      Undefined variable: event in wp-content/plugins/notikumi-ticketing/templates/original/php/three-cols.php on line 86
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/notikumi-ticketing/templates/original/php/event-page.php on line 17
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/notikumi-ticketing/templates/original/php/event-page.php on line 25
    • > PHP Notice
      Trying to get property 'sessions' of non-object in wp-content/plugins/notikumi-ticketing/templates/original/php/three-cols.php on line 94
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/notikumi-ticketing/admin/partials/credentials.php:16
    • > PHP Notice
      Trying to get property 'sessions' of non-object in wp-content/plugins/notikumi-ticketing/templates/original/php/event-page.php on line 25
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/notikumi-ticketing/templates/original/php/three-cols.php on line 86
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/notikumi-ticketing/templates/original/php/three-cols.php on line 75
    • > PHP Notice
      Undefined variable: events in wp-content/plugins/notikumi-ticketing/templates/original/php/three-cols.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tested up to: Version format is invalid
  • Plugin Name: You should set the name of your plugin on the first line ( === notikumi-ticketing === )
You can take inspiration from this readme.txt

notikumi-ticketing/notikumi-ticketing.php Passed 13 tests

"Notikumi Ticketing" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
Show your events and tickets ready to be sold in your wordpress page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,717 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP214196691,727
CSS879371,555
PO File3106111252
JavaScript54711174
Bourne Shell1939

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.50
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.01
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods74
▷ Static methods1722.97%
▷ Public methods5675.68%
▷ Protected methods00.00%
▷ Private methods1824.32%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected