Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/ltd-tickets/includes/class-ltd-tickets-integration.php+32
Trying to access array offset on value of type bool
Server metrics [RAM: ▲1.08MB] [CPU: ▲5.96ms] 75% from 4 tests
Server-side resources used by London Theatre Direct
Please have a look at the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 1,046.25ms on /wp-admin/admin.php?page=ltd-tickets-log)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.54 ▲1.07 | 49.67 ▲6.25 |
Dashboard /wp-admin | 4.37 ▲1.07 | 50.46 ▲1.70 |
Posts /wp-admin/edit.php | 4.49 ▲1.13 | 54.96 ▲6.28 |
Add New Post /wp-admin/post-new.php | 7.10 ▲1.21 | 100.06 ▲15.01 |
Media Library /wp-admin/upload.php | 4.29 ▲1.06 | 42.07 ▲9.60 |
Theatre Tickets /wp-admin/admin.php?page=ltd-tickets | 4.59 | 36.63 |
Add New /wp-admin/post-new.php?post_type=ukds-products | 7.09 | 84.10 |
All Products /wp-admin/edit.php?post_type=ukds-products | 4.34 | 45.07 |
Log /wp-admin/admin.php?page=ltd-tickets-log | 4.29 | 1,046.25 |
Add New /wp-admin/post-new.php?post_type=ukds-venues | 7.10 | 112.41 |
Product Categories /wp-admin/edit-tags.php?taxonomy=ukds-product-category&post_type=ukds-products | 4.29 | 41.88 |
All Venues /wp-admin/edit.php?post_type=ukds-venues | 4.34 | 45.36 |
Shortcode Builder /wp-admin/admin.php?page=ltd-tickets-shortcodes | 4.27 | 36.42 |
Data Manager /wp-admin/admin.php?page=ltd-tickets-synchonisation | 4.39 | 40.92 |
Server storage [IO: ▲1.78MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 81 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_ltd_log |
New WordPress options |
---|
ltd-tickets |
widget_recent-posts |
widget_ltd_tickets_product_category_widget |
widget_theysaidso_widget |
ukds-product-category_children |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for London Theatre Direct
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,107 ▲361 | 14.57 ▼0.03 | 16.76 ▲14.85 | 38.98 ▼5.39 |
Dashboard /wp-admin | 2,357 ▲166 | 5.27 ▲0.38 | 109.42 ▼6.91 | 39.53 ▼4.02 |
Posts /wp-admin/edit.php | 2,224 ▲135 | 2.59 ▲0.58 | 43.99 ▲4.18 | 39.72 ▲4.93 |
Add New Post /wp-admin/post-new.php | 1,633 ▲119 | 23.32 ▲5.81 | 612.77 ▼67.73 | 33.89 ▼20.50 |
Media Library /wp-admin/upload.php | 1,543 ▲155 | 4.53 ▲0.31 | 92.47 ▼9.35 | 41.91 ▼0.98 |
Theatre Tickets /wp-admin/admin.php?page=ltd-tickets | 3,011 | 2.98 | 78.09 | 34.02 |
Add New /wp-admin/post-new.php?post_type=ukds-products | 6,506 | 19.41 | 909.69 | 36.27 |
All Products /wp-admin/edit.php?post_type=ukds-products | 1,210 | 2.33 | 36.49 | 33.66 |
Log /wp-admin/admin.php?page=ltd-tickets-log | 1,189 | 2.12 | 31.80 | 29.01 |
Add New /wp-admin/post-new.php?post_type=ukds-venues | 6,336 | 24.93 | 759.42 | 29.08 |
Product Categories /wp-admin/edit-tags.php?taxonomy=ukds-product-category&post_type=ukds-products | 1,415 | 2.19 | 30.19 | 27.80 |
All Venues /wp-admin/edit.php?post_type=ukds-venues | 1,194 | 2.35 | 35.54 | 29.26 |
Shortcode Builder /wp-admin/admin.php?page=ltd-tickets-shortcodes | 1,235 | 2.14 | 34.46 | 29.97 |
Data Manager /wp-admin/admin.php?page=ltd-tickets-synchonisation | 1,714 | 2.23 | 33.26 | 34.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_ltd_log
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-comments
- theysaidso_admin_options
- ltd-tickets
- db_upgraded
- widget_recent-posts
- ukds-product-category_children
- widget_ltd_tickets_product_category_widget
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ltd-tickets/public/partials/ltd-tickets-public-display.php
- 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ltd-tickets/templates/parts/ukds-venue-product-item.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ltd-tickets/includes/class-ltd-tickets-cron-updater.php:22
- > PHP Warning
Use of undefined constant LTD_PLUGIN_VERSION - assumed 'LTD_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/ltd-tickets/includes/class-ltd-tickets-cron-updater.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/ltd-tickets/templates/parts/ukds-archive-header.php:4
- > PHP Fatal error
Trait 'LTD_Tickets_Logging' not found in wp-content/plugins/ltd-tickets/includes/class-ltd-tickets-shortcodes.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ltd-tickets/admin/partials/ltd-tickets-shortcodes-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ltd-tickets/admin/partials/ltd-tickets-synchronisation-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ltd-tickets/templates/archive-ukds-products.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ltd-tickets/templates/parts/ukds-archive-item.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ltd-tickets/admin/partials/ltd-tickets-admin-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in ltd-tickets/assets to your readme.txt
ltd-tickets/ltd-tickets.php 92% from 13 tests
The primary PHP file in "London Theatre Direct" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin10,619 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 1,121 | 1,052 | 5,513 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 7 | 263 | 21 | 1,244 |
JavaScript | 6 | 119 | 57 | 1,029 |
PO File | 2 | 66 | 80 | 162 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 26.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 189.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 23 | |
▷ Abstract classes | 2 | 8.70% |
▷ Concrete classes | 21 | 91.30% |
▷ Final classes | 0 | 0.00% |
Methods | 186 | |
▷ Static methods | 10 | 5.38% |
▷ Public methods | 157 | 84.41% |
▷ Protected methods | 20 | 10.75% |
▷ Private methods | 9 | 4.84% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/ltd-logo.png | 5.69KB | 2.92KB | ▼ 48.73% |
admin/images/wide-layout.png | 1.30KB | 0.29KB | ▼ 78.13% |
admin/images/awin.png | 7.42KB | 3.29KB | ▼ 55.72% |
templates/images/missing-image.png | 11.23KB | 4.78KB | ▼ 57.49% |
admin/images/boxed-layout.png | 1.41KB | 0.42KB | ▼ 69.97% |