61% stageshow

Code Review | StageShow

WordPress plugin StageShow scored61%from 54 tests.

About plugin

  • Plugin page: stageshow
  • Plugin version: 9.8.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4.1
  • WordPress version: 6.3.1
  • First release: May 20, 2011
  • Latest release: Nov 24, 2023
  • Number of updates: 606
  • Update frequency: every 7.6 days
  • Top authors: Malcolm-OPH (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

200+ active /42,576 total downloads

Benchmarks

Plugin footprint 81% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.78MB] [CPU: ▲972.86ms] 50% from 4 tests

An overview of server-side resources used by StageShow
Please have a look at the following items
  • CPU: The total CPU usage must kept under 500.00ms (currently 980.51ms on /wp-admin/admin.php?page=stageshow_seating)
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 972.86ms on /wp-admin/admin.php?page=stageshow_seating)
PageMemory (MB)CPU Time (ms)
Home /4.38 ▲0.921,041.91 ▲1,006.69
Dashboard /wp-admin4.07 ▲0.771,026.93 ▲976.22
Posts /wp-admin/edit.php4.13 ▲0.771,039.31 ▲987.19
Add New Post /wp-admin/post-new.php6.68 ▲0.791,003.43 ▲921.32
Media Library /wp-admin/upload.php4.00 ▲0.772,381.72 ▲2,347.50
Price Plans /wp-admin/admin.php?page=stageshow_priceplans4.68982.18
Sales /wp-admin/admin.php?page=stageshow_sales4.321,029.98
Prices /wp-admin/admin.php?page=stageshow_prices4.261,035.03
Settings /wp-admin/admin.php?page=stageshow_settings6.531,018.88
Tools /wp-admin/admin.php?page=stageshow_tools4.50984.28
Overview /wp-admin/admin.php?page=stageshow_adminmenu4.201,033.95
Performances /wp-admin/admin.php?page=stageshow_performances4.201,000.56
Discount Codes /wp-admin/admin.php?page=stageshow_discounts4.111,002.13
Shows /wp-admin/admin.php?page=stageshow_shows4.131,005.44
Seating Plans /wp-admin/admin.php?page=stageshow_seating4.20980.51

Server storage [IO: ▲5.31MB] [DB: ▲0.02MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/stageshow/" and "wp-content/uploads/"
    • (new file) logs/.empty
Filesystem: 750 new files
Database: 18 new tables, 6 new options
New tables
wp_sshow_seating
wp_sshow_discodes
wp_sshow_zones
wp_sshow_prices
wp_sshow_sessions
wp_sshow_sales
wp_sshow_verifys
wp_sshow_dispresets
wp_sshow_shows
wp_sshow_spooler
...
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by StageShow
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,001 ▲21413.79 ▼0.928.10 ▲6.2539.40 ▲2.00
Dashboard /wp-admin2,257 ▲795.61 ▼0.0999.44 ▼12.2772.41 ▲26.57
Posts /wp-admin/edit.php2,174 ▲741.96 ▲0.0035.03 ▼8.9031.30 ▼7.05
Add New Post /wp-admin/post-new.php1,464 ▼6618.41 ▼4.70596.39 ▼82.1032.35 ▼19.51
Media Library /wp-admin/upload.php1,465 ▲684.17 ▼0.01110.29 ▲7.5790.17 ▲45.76
Price Plans /wp-admin/admin.php?page=stageshow_priceplans8932.0325.0136.41
Sales /wp-admin/admin.php?page=stageshow_sales9172.0428.1538.27
Prices /wp-admin/admin.php?page=stageshow_prices8852.1626.2028.21
Settings /wp-admin/admin.php?page=stageshow_settings3,0001.6928.2053.71
Tools /wp-admin/admin.php?page=stageshow_tools1,3221.6825.5333.85
Overview /wp-admin/admin.php?page=stageshow_adminmenu1,1582.1728.7936.89
Performances /wp-admin/admin.php?page=stageshow_performances8851.6827.0730.86
Discount Codes /wp-admin/admin.php?page=stageshow_discounts8752.0324.2229.03
Shows /wp-admin/admin.php?page=stageshow_shows8722.0326.2329.07
Seating Plans /wp-admin/admin.php?page=stageshow_seating8752.0322.9826.61

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 29× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/stageshow/lib/Mollie/API/examples/09-oauth-list-settlements.php
    • > /wp-content/plugins/stageshow/lib/stripe-php/build.php
    • > /wp-content/plugins/stageshow/lib/Mollie/API/examples/24-revoke-mandate.php
    • > /wp-content/plugins/stageshow/uninstall.php
    • > /wp-content/plugins/stageshow/lib/Mollie/API/examples/13-customer-payments-history.php
    • > /wp-content/plugins/stageshow/lib/Mollie/API/examples/02-webhook-verification.php
    • > /wp-content/plugins/stageshow/lib/Mollie/API/examples/19-update-profile.php
    • > /wp-content/plugins/stageshow/lib/Mollie/API/examples/22-create-mandate-subscription.php
    • > /wp-content/plugins/stageshow/lib/Mollie/API/examples/14-recurring-first-payment.php
    • > /wp-content/plugins/stageshow/samples/stageshow_shortcodes_sample.php
  • 625× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/stageshow/lib/Mollie/API/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
    • > PHP Warning
      require_once(STAGESHOW_INCLUDE_PATHstageshowlib_adminlist.php): failed to open stream: No such file or directory in wp-content/plugins/stageshow/admin/stageshow_manage_seating.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/stageshow/lib/stripe-php/lib/Service/Reporting/ReportingServiceFactory.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/stageshow/lib/stripe-php/lib/Collection.php:16
    • > PHP Warning
      Use of undefined constant STAGESHOW_INCLUDE_PATH - assumed 'STAGESHOW_INCLUDE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/stageshow/include/stageshow_jquery_email.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/stageshow/lib/stripe-php/lib/Service/DisputeService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Exception\\OAuth\\OAuthErrorException' not found in wp-content/plugins/stageshow/lib/stripe-php/lib/Exception/OAuth/UnknownOAuthErrorException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/stageshow/lib/stripe-php/lib/Service/EphemeralKeyService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'StageShowLibSalesCartPluginBaseClass' not found in wp-content/plugins/stageshow/include/stageshowlib_salesplugin.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'QRcode' not found in wp-content/plugins/stageshow/include/stageshow_qrbarcode.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=stageshow_tools
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=stageshow_tools 206:30 Uncaught SyntaxError: Unexpected token ';'

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: A description for screenshot #14 is required in stageshow/assets to your readme.txt
  • Screenshots: Please add an image for screenshot #20 (Screenshot 19: Sample EMail)
Please take inspiration from this readme.txt

stageshow/stageshow.php Passed 13 tests

The principal PHP file in "StageShow" v. 9.8.3 is loaded by WordPress automatically on each request
49 characters long description:
A Wordpress Plugin to sell theatre tickets online

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
These items require your attention
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .jar - Java Archive in Firefox, IE, Chrome, Safari
      • wp-content/plugins/stageshow/admin/java/StageshowPrinting.jar
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/stageshow/lib/stripe-php/data/ca-certificates.crt
64,515 lines of code in 645 files:
LanguageFilesBlank linesComment linesLines of code
PHP58813,63423,50053,779
Markdown131,79004,876
JavaScript118003703,616
CSS93203321,115
JSON700501
XML800238
HTML188178
SQL500173
make213036
YAML1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity11.44
▷ Minimum class complexity1.00
▷ Maximum class complexity467.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces49
Interfaces23
Traits11
Classes523
▷ Abstract classes142.68%
▷ Concrete classes50997.32%
▷ Final classes71.38%
Methods3,622
▷ Static methods47413.09%
▷ Public methods3,37093.04%
▷ Protected methods902.48%
▷ Private methods1624.47%
Functions163
▷ Named functions6439.26%
▷ Anonymous functions9960.74%
Constants1,790
▷ Global constants47426.48%
▷ Class constants1,31673.52%
▷ Public constants1,316100.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
15 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/stageshow.png0.57KB0.43KB▼ 23.79%
templates/images/stage.png0.24KB0.17KB▼ 30.89%
templates/tickets/Ticket.png30.33KB0.23KB▼ 99.24%
templates/tickets/Compact.png2.03KB1.34KB▼ 34.02%
images/delete.png4.95KB2.48KB▼ 49.88%