78% avayo-ticketshop

Code Review | Avayo ticketshop

WordPress plugin Avayo ticketshop scored78%from 54 tests.

About plugin

  • Plugin page: avayo-ticketshop
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 22, 2018
  • Latest release: May 4, 2023
  • Number of updates: 24
  • Update frequency: every 79.0 days
  • Top authors: avayo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,742 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.29ms] Passed 4 tests

An overview of server-side resources used by Avayo ticketshop
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.55 ▲3.92
Dashboard /wp-admin3.35 ▲0.0445.14 ▼3.38
Posts /wp-admin/edit.php3.40 ▲0.0443.89 ▼3.29
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.51 ▼17.11
Media Library /wp-admin/upload.php3.27 ▲0.0434.97 ▼1.36

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Avayo ticketshop
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.24 ▼0.112.10 ▲0.5442.60 ▲0.43
Dashboard /wp-admin2,213 ▲365.56 ▼0.0681.59 ▼4.7965.29 ▲24.27
Posts /wp-admin/edit.php2,112 ▲121.96 ▼0.0135.55 ▲0.0935.57 ▼3.89
Add New Post /wp-admin/post-new.php1,692 ▲16622.38 ▼0.77760.18 ▲54.2756.88 ▲4.14
Media Library /wp-admin/upload.php1,418 ▲184.21 ▲0.0197.15 ▲2.5268.37 ▲25.17

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/avayo-ticketshop/avayo.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/avayo-ticketshop/includes/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avayo-ticketshop/includes/initialize.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: etickets, tickets, events, kaartverkoop, registration...

avayo-ticketshop/avayo.php 85% from 13 tests

"Avayo ticketshop" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("avayo-ticketshop.php" instead of "avayo.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected316 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions685.71%
▷ Anonymous functions114.29%
▷ Global constants00.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/avayo.png3.40KB3.33KB▼ 1.84%
assets/img/icon.png1.18KB0.86KB▼ 27.22%