Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.68MB] [CPU: ▲3.65ms] 75% from 4 tests
Analyzing server-side resources used by Ticketack
Please have a look at the following items
- RAM: Try to keep total memory usage under 10MB (currently 11.64MB on /wp-admin/options-general.php?page=ticketack-admin)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.81 ▲2.35 | 50.17 ▲8.95 |
Dashboard /wp-admin | 5.71 ▲2.36 | 79.26 ▲16.56 |
Posts /wp-admin/edit.php | 5.76 ▲2.40 | 72.07 ▲23.76 |
Add New Post /wp-admin/post-new.php | 5.52 ▼0.38 | 53.42 ▼32.98 |
Media Library /wp-admin/upload.php | 5.63 ▲2.40 | 56.34 ▲22.08 |
Add New /wp-admin/post-new.php?post_type=tkt-article | 5.86 | 73.57 |
Add New /wp-admin/post-new.php?post_type=tkt-event | 5.86 | 80.37 |
All Ticketack events /wp-admin/edit.php?post_type=tkt-event | 5.68 | 62.13 |
Ticketack /wp-admin/options-general.php?page=ticketack-admin | 11.64 | 104.96 |
All Ticketack people /wp-admin/edit.php?post_type=tkt-person | 5.68 | 56.42 |
All Ticketack articles /wp-admin/edit.php?post_type=tkt-article | 5.68 | 55.46 |
Add New /wp-admin/post-new.php?post_type=tkt-person | 5.86 | 70.02 |
Server storage [IO: ▲5.14MB] [DB: ▲0.00MB] 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 (67.29KB) outside of "wp-content/plugins/ticketack/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/tkt_override.css
Filesystem: 455 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ticketack
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,029 ▲257 | 13.38 ▼1.35 | 8.06 ▲6.06 | 40.82 ▼3.05 |
Dashboard /wp-admin | 2,309 ▲129 | 5.67 ▲0.05 | 107.77 ▲9.79 | 49.95 ▲4.73 |
Posts /wp-admin/edit.php | 2,231 ▲131 | 2.04 ▲0.08 | 41.56 ▲4.27 | 36.53 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,619 ▲93 | 23.38 ▲0.26 | 602.90 ▲4.74 | 51.48 ▼20.51 |
Media Library /wp-admin/upload.php | 1,517 ▲114 | 4.31 ▲0.24 | 94.83 ▼7.51 | 44.97 ▲3.20 |
Add New /wp-admin/post-new.php?post_type=tkt-article | 2,480 | 7.58 | 188.19 | 75.33 |
Add New /wp-admin/post-new.php?post_type=tkt-event | 2,474 | 7.72 | 168.48 | 58.14 |
All Ticketack events /wp-admin/edit.php?post_type=tkt-event | 1,210 | 2.00 | 36.31 | 34.82 |
Ticketack /wp-admin/options-general.php?page=ticketack-admin | 990 | 2.01 | 25.15 | 32.51 |
All Ticketack people /wp-admin/edit.php?post_type=tkt-person | 1,191 | 2.04 | 37.39 | 32.59 |
All Ticketack articles /wp-admin/edit.php?post_type=tkt-article | 1,195 | 2.05 | 37.97 | 32.36 |
Add New /wp-admin/post-new.php?post_type=tkt-person | 2,474 | 7.52 | 182.07 | 67.06 |
Uninstaller [IO: ▲0.07MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ticketack-admin
- > Notice in wp-content/plugins/ticketack/vendor/scssphp/scssphp/src/Compiler.php+5013
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 12× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/ticketack/app/templates/filters/filter.tpl.php
- > /wp-content/plugins/ticketack/app/templates/program/grid/screenings.tpl.php
- > /wp-content/plugins/ticketack/app/templates/filters/days_filter.tpl.php
- > /wp-content/plugins/ticketack/app/templates/program/filter.tpl.php
- > /wp-content/plugins/ticketack/app/templates/filters/filter_rows.tpl.php
- > /wp-content/plugins/ticketack/app/templates/booking/screenings_list_dates.tpl.php
- > /wp-content/plugins/ticketack/app/templates/user/account/menu.tpl.php
- > /wp-content/plugins/ticketack/app/templates/cart/cart_icon.tpl.php
- > /wp-content/plugins/ticketack/app/templates/pantaflix/iframe.tpl.php
- > /wp-content/plugins/ticketack/app/templates/booking_wizard/wizard_navigation.tpl.php
- 398× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function the_title() in wp-content/plugins/ticketack/app/templates/people/person.tpl.php:22
- > PHP Fatal error
Uncaught Error: Class 'Ticketack\\WP\\TKTApp' not found in wp-content/plugins/ticketack/app/templates/buy_pass/buy.tpl.php:21
- > PHP Warning
implode(): Invalid arguments passed in wp-content/plugins/ticketack/app/templates/booking/screenings_list.tpl.php on line 23
- > PHP Fatal error
Uncaught Error: Class 'Ticketack\\WP\\Shortcodes\\TKTShortcode' not found in wp-content/plugins/ticketack/app/shortcodes/user_account.class.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function tkt_t() in wp-content/plugins/ticketack/app/templates/booking/screenings_list_pricings.tpl.php:15
- > PHP Notice
Undefined variable: data in wp-content/plugins/ticketack/app/templates/event/event.tpl.php on line 15
- > PHP Notice
Undefined variable: data in wp-content/plugins/ticketack/app/templates/article/slider/articles.tpl.php on line 16
- > PHP Fatal error
Uncaught Error: Call to a member function getTimestamp() on null in wp-content/plugins/ticketack/app/templates/signage/door.tpl.php:203
- > PHP Notice
Trying to get property 'tabs' of non-object in wp-content/plugins/ticketack/app/templates/user/account/menu.tpl.php on line 20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/ticketack/vendor/guzzlehttp/psr7/src/CachingStream.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
ticketack/wpticketack.php 85% from 13 tests
The entry point to "Ticketack" version 2.66.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("ticketack.php" instead of "wpticketack.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin58,295 lines of code in 405 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 335 | 6,940 | 12,565 | 33,299 |
CSS | 2 | 84 | 16 | 7,380 |
PO File | 5 | 2,032 | 65 | 4,380 |
Sass | 2 | 481 | 0 | 3,767 |
Markdown | 16 | 1,038 | 0 | 3,289 |
YAML | 22 | 133 | 89 | 3,175 |
JavaScript | 5 | 352 | 1,197 | 2,103 |
JSON | 10 | 0 | 0 | 802 |
XML | 3 | 7 | 0 | 66 |
SVG | 4 | 0 | 0 | 25 |
make | 1 | 4 | 0 | 9 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,214)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 195)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 20.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,214.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 195.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 17 | |
Traits | 2 | |
Classes | 201 | |
▷ Abstract classes | 6 | 2.99% |
▷ Concrete classes | 195 | 97.01% |
▷ Final classes | 9 | 4.62% |
Methods | 1,766 | |
▷ Static methods | 214 | 12.12% |
▷ Public methods | 1,286 | 72.82% |
▷ Protected methods | 331 | 18.74% |
▷ Private methods | 149 | 8.44% |
Functions | 336 | |
▷ Named functions | 122 | 36.31% |
▷ Anonymous functions | 214 | 63.69% |
Constants | 280 | |
▷ Global constants | 27 | 9.64% |
▷ Class constants | 253 | 90.36% |
▷ Public constants | 253 | 100.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
20 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
front/build/images/admin/screen-shop.png | 53.33KB | 56.99KB | 0.00% |
front/build/images/slider/hover/right.png | 0.22KB | 0.25KB | 0.00% |
front/build/images/articles/left_arrow.png | 0.64KB | 0.79KB | 0.00% |
front/build/images/slider/right.png | 0.22KB | 0.25KB | 0.00% |
front/build/images/admin/screen-program1.png | 20.20KB | 21.32KB | 0.00% |