84% ticketscandy-sell-tickets-online

Code Review | Sell Tickets Online From Your Website - TicketsCandy for WordPress

WordPress plugin Sell Tickets Online From Your Website - TicketsCandy for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: ticketscandy-sell...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2020
  • Latest release: Jun 23, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: ticketscandy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /364 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.57ms] Passed 4 tests

Analyzing server-side resources used by Sell Tickets Online From Your Website - TicketsCandy for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.46 ▲0.43
Dashboard /wp-admin3.32 ▲0.0252.44 ▲0.63
Posts /wp-admin/edit.php3.37 ▲0.0152.08 ▲6.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.01 ▼14.80
Media Library /wp-admin/upload.php3.24 ▲0.0135.80 ▼0.55
TicketsCandy /wp-admin/options-general.php?page=ticket-candy-options-admin3.2133.09

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Sell Tickets Online From Your Website - TicketsCandy for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.19 ▼0.402.19 ▲0.4849.43 ▲5.86
Dashboard /wp-admin2,202 ▲255.61 ▲0.0887.14 ▼7.1637.84 ▼4.15
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0640.20 ▲4.3737.22 ▲2.57
Add New Post /wp-admin/post-new.php1,529 ▲323.59 ▼0.02677.31 ▼12.2554.84 ▼9.26
Media Library /wp-admin/upload.php1,401 ▲44.21 ▼0.02103.57 ▼15.8444.70 ▼1.75
TicketsCandy /wp-admin/options-general.php?page=ticket-candy-options-admin8032.0324.8230.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ticketscandy-sell-tickets-online/ticketscandy-sell-tickets-online.php:12

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)
There were no browser issues found

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
Attributes that need to be fixed:
  • Tags: Too many tags (44 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

ticketscandy-sell-tickets-online/ticketscandy-sell-tickets-online.php Passed 13 tests

"Sell Tickets Online From Your Website - TicketsCandy for WordPress" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
115 characters long description:
The easiest and most robust ticketing system for your event! Sell tickets online directly from your WordPress site.

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
No dangerous file extensions were detected122 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1248122

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected