84% ticketsource-events

Code Review | Sell Tickets Online - TicketSource Ticket Shop for WordPress

WordPress plugin Sell Tickets Online - TicketSource Ticket Shop for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: ticketsource-events
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 1, 2018
  • Latest release: Aug 3, 2023
  • Number of updates: 17
  • Update frequency: every 111.6 days
  • Top authors: ticketsource (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /4,013 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.86ms] Passed 4 tests

An overview of server-side resources used by Sell Tickets Online - TicketSource Ticket Shop for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.33 ▼7.65
Dashboard /wp-admin3.31 ▲0.0046.39 ▼1.74
Posts /wp-admin/edit.php3.36 ▲0.0047.00 ▼3.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.68 ▼14.44
Media Library /wp-admin/upload.php3.23 ▲0.0036.23 ▲3.92

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Sell Tickets Online - TicketSource Ticket Shop for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.191.92 ▼0.0343.71 ▲1.88
Dashboard /wp-admin2,206 ▲185.85 ▲0.76100.38 ▼11.1239.21 ▼5.00
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0438.73 ▲2.5735.14 ▲1.83
Add New Post /wp-admin/post-new.php1,513 ▼2117.48 ▼5.53645.09 ▼38.4860.13 ▲2.23
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.0795.78 ▼15.4140.74 ▼6.99

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ticketsource-events/ticketsource-events.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ticketsource-events/includes/ticketsource-events-build.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 33 tag instead of maximum 10
You can take inspiration from this readme.txt

ticketsource-events/ticketsource-events.php Passed 13 tests

This is the main PHP file of "Sell Tickets Online - TicketSource Ticket Shop for WordPress" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
32 characters long description:
TicketSource events list plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected79 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2182479

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.50
▷ Minimum class complexity5.00
▷ Maximum class complexity6.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods350.00%
▷ Protected methods00.00%
▷ Private methods350.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin