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: ▲2.06MB] [CPU: ▲10.16ms] Passed 4 tests
An overview of server-side resources used by My Tickets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.51 ▲2.05 | 49.42 ▲9.94 |
Dashboard /wp-admin | 5.37 ▲2.07 | 57.85 ▲12.04 |
Posts /wp-admin/edit.php | 5.49 ▲2.13 | 58.55 ▲14.69 |
Add New Post /wp-admin/post-new.php | 7.96 ▲2.07 | 98.06 ▲3.98 |
Media Library /wp-admin/upload.php | 5.29 ▲2.06 | 54.90 ▲22.36 |
Ticketing Help /wp-admin/admin.php?page=mt-help | 5.24 | 47.79 |
Ticket Settings /wp-admin/admin.php?page=mt-ticketing | 5.25 | 44.28 |
Payment Settings /wp-admin/admin.php?page=mt-payment | 5.26 | 45.58 |
Settings /wp-admin/admin.php?page=my-tickets | 5.24 | 52.50 |
Server storage [IO: ▲1.01MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 151 new files
Database: no new tables, 10 new options
New WordPress options |
---|
mt_labels |
widget_recent-posts |
widget_recent-comments |
widget_mt_short_cart_widget |
mt_version |
can_compress_scripts |
db_upgraded |
mt_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for My Tickets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,006 ▲245 | 13.45 ▼0.92 | 8.67 ▲7.01 | 39.20 ▲0.11 |
Dashboard /wp-admin | 2,283 ▲106 | 5.57 ▼0.03 | 82.95 ▼7.21 | 75.02 ▲35.78 |
Posts /wp-admin/edit.php | 2,188 ▲88 | 1.98 ▼0.05 | 35.18 ▲1.57 | 34.07 ▼4.64 |
Add New Post /wp-admin/post-new.php | 1,613 ▲85 | 23.06 ▼0.04 | 692.12 ▲2.43 | 66.42 ▲6.26 |
Media Library /wp-admin/upload.php | 1,488 ▲85 | 4.12 ▼0.05 | 93.70 ▼7.57 | 77.30 ▲33.49 |
Ticketing Help /wp-admin/admin.php?page=mt-help | 1,540 | 3.27 | 74.50 | 47.96 |
Ticket Settings /wp-admin/admin.php?page=mt-ticketing | 1,901 | 3.44 | 69.24 | 33.78 |
Payment Settings /wp-admin/admin.php?page=mt-payment | 1,742 | 3.90 | 83.65 | 44.31 |
Settings /wp-admin/admin.php?page=my-tickets | 1,784 | 3.39 | 69.69 | 50.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_mt_short_cart_widget
- widget_theysaidso_widget
- mt_version
- mt_labels
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 77× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QROutputAbstract' not found in wp-content/plugins/my-tickets/vendor/chillerlan/php-qrcode/src/Output/QRFpdf.php:30
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/my-tickets/vendor/chillerlan/php-settings-container/tests/ContainerTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCodeTest\\Output\\QROutputTestAbstract' not found in wp-content/plugins/my-tickets/vendor/chillerlan/php-qrcode/tests/Output/QRMarkupTest.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/my-tickets/templates/tickets.php:14
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/my-tickets/vendor/chillerlan/php-settings-container/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/my-tickets/vendor/chillerlan/php-settings-container/examples/simple.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCodeTest\\Data\\DatainterfaceTestAbstract' not found in wp-content/plugins/my-tickets/vendor/chillerlan/php-qrcode/tests/Data/AlphaNumTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Data\\QRDataAbstract' not found in wp-content/plugins/my-tickets/vendor/chillerlan/php-qrcode/src/Data/Byte.php:22
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCodeTest\\QRTestAbstract' not found in wp-content/plugins/my-tickets/vendor/chillerlan/php-qrcode/tests/Data/QRMatrixTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\QRCodeException' not found in wp-content/plugins/my-tickets/vendor/chillerlan/php-qrcode/src/Data/QRCodeDataException.php:17
- > PHP Warning
require_once(wp-content/plugins/my-tickets/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/my-tickets/vendor/chillerlan/php-qrcode/examples/imageWithLogo.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: box office, sell tickets, tickets, event registration, ticket sales...
my-tickets/my-tickets.php 85% from 13 tests
The main file in "My Tickets" v. 1.11.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("lang")
- Domain Path: Prefix the domain path with a forward slash character ("/lang")
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
Success! There were no dangerous files found in this plugin16,866 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 100 | 2,236 | 5,323 | 13,552 |
JavaScript | 9 | 91 | 21 | 1,243 |
CSS | 7 | 226 | 7 | 1,043 |
Markdown | 2 | 97 | 0 | 457 |
JSON | 3 | 0 | 0 | 210 |
HTML | 1 | 26 | 0 | 137 |
XML | 5 | 0 | 0 | 129 |
YAML | 5 | 27 | 3 | 95 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 3 | |
Traits | 4 | |
Classes | 51 | |
▷ Abstract classes | 6 | 11.76% |
▷ Concrete classes | 45 | 88.24% |
▷ Final classes | 0 | 0.00% |
Methods | 263 | |
▷ Static methods | 3 | 1.14% |
▷ Public methods | 193 | 73.38% |
▷ Protected methods | 67 | 25.48% |
▷ Private methods | 3 | 1.14% |
Functions | 314 | |
▷ Named functions | 303 | 96.50% |
▷ Anonymous functions | 11 | 3.50% |
Constants | 50 | |
▷ Global constants | 1 | 2.00% |
▷ Class constants | 49 | 98.00% |
▷ Public constants | 44 | 89.80% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tickets.png | 0.76KB | 0.80KB | 0.00% |
vendor/chillerlan/php-qrcode/examples/octocat.png | 2.41KB | 2.46KB | 0.00% |
vendor/chillerlan/php-qrcode/examples/example_svg.png | 15.55KB | 6.70KB | ▼ 56.90% |
vendor/chillerlan/php-qrcode/examples/example_image.png | 2.23KB | 1.09KB | ▼ 50.94% |
images/logo.png | 23.41KB | 8.68KB | ▼ 62.94% |