84% lets-participate-woocommerce-ticket-sales

Code Review | Let's Participate WooCommerce Ticket Sales

WordPress plugin Let's Participate WooCommerce Ticket Sales scored84%from 54 tests.

About plugin

  • Plugin page: lets-participate-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2016
  • Latest release: Nov 16, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: letsparticipate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /583 total downloads

Benchmarks

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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.12ms] Passed 4 tests

Server-side resources used by Let's Participate WooCommerce Ticket Sales
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.48 ▼2.16
Dashboard /wp-admin3.33 ▲0.0349.03 ▼2.64
Posts /wp-admin/edit.php3.38 ▲0.0352.94 ▲2.45
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.22 ▼8.94
Media Library /wp-admin/upload.php3.25 ▲0.0333.35 ▼2.75

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
lp-js-token
widget_recent-posts
lp-part-lookup
db_upgraded
lp-field-town
lp-email-organisers
...

Browser metrics Passed 4 tests

Let's Participate WooCommerce Ticket Sales: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲19113.84 ▼0.5312.94 ▲10.5349.09 ▲1.73
Dashboard /wp-admin2,223 ▲465.56 ▼0.1286.12 ▼17.2940.34 ▼3.63
Posts /wp-admin/edit.php2,132 ▲322.13 ▲0.0239.89 ▲4.0237.07 ▲3.08
Add New Post /wp-admin/post-new.php1,554 ▲2622.85 ▼0.45631.56 ▼36.9451.42 ▼11.90
Media Library /wp-admin/upload.php1,434 ▲374.21 ▲0.03104.42 ▼0.5245.14 ▼2.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 11 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • lp-field-town
    • widget_recent-comments
    • widget_recent-posts
    • lp-email-organisers
    • lp-js-token
    • lp-part-lookup
    • lp-org-id
    • theysaidso_admin_options
    • ...

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)
Good news, no errors were detected

SRP 50% 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lets-participate-woocommerce-ticket-sales/lets-participate-woocomm.php:11

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: ticket sales, event platform

lets-participate-woocommerce-ticket-sales/lets-participate-woocomm.php 92% from 13 tests

The main file in "Let's Participate WooCommerce Ticket Sales" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("lets-participate-woocommerce-ticket-sales.php" instead of "lets-participate-woocomm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected963 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1118122716
JavaScript1318209
Markdown126038

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
PNG images were not found in this plugin