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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.82ms] Passed 4 tests
This is a short check of server-side resources used by Purplepass plugin for The Event Calendar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.05 ▼5.30 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.93 ▼2.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.91 ▼2.47 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.61 ▼15.20 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.16 ▼4.30 |
Apps & Equipment /wp-admin/admin.php?page=scanning-selling-gear | 3.00 | 22.97 |
Help & Feedback /wp-admin/admin.php?page=help-support | 3.00 | 19.92 |
Order Custom Tickets /wp-admin/admin.php?page=order-custom-tickets | 3.00 | 22.17 |
Purplepass /wp-admin/admin.php?page=purplepass | 3.00 | 20.74 |
Stats /wp-admin/admin.php?page=purplepass-stats | 3.00 | 24.54 |
Payments /wp-admin/admin.php?page=payments | 3.00 | 22.19 |
Log info /wp-admin/admin.php?page=log-info | 3.00 | 24.12 |
Server storage [IO: ▲6.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 178 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp_pptec_events |
wp_pp_logs |
wp_pp_stats |
wp_pptec_wp_venue_to_pp_venue |
wp_pp_sync_events |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
pptec_widget_settings |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Purplepass plugin for The Event Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.42 | 1.69 ▼0.13 | 40.27 ▼6.57 |
Dashboard /wp-admin | 2,198 ▲18 | 5.48 ▼0.13 | 84.46 ▼8.22 | 39.90 ▼7.99 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.04 | 35.97 ▲1.10 | 32.63 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,535 ▲6 | 23.09 ▲0.03 | 637.41 ▼36.89 | 52.88 ▼9.77 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▼0.24 | 96.15 ▼12.87 | 44.75 ▼1.10 |
Apps & Equipment /wp-admin/admin.php?page=scanning-selling-gear | 28 | 0.42 | 0.11 | 4.03 |
Help & Feedback /wp-admin/admin.php?page=help-support | 28 | 0.42 | 0.08 | 4.04 |
Order Custom Tickets /wp-admin/admin.php?page=order-custom-tickets | 28 | 0.42 | 0.07 | 3.67 |
Purplepass /wp-admin/admin.php?page=purplepass | 28 | 0.42 | 0.07 | 5.00 |
Stats /wp-admin/admin.php?page=purplepass-stats | 28 | 0.42 | 0.09 | 4.52 |
Payments /wp-admin/admin.php?page=payments | 28 | 0.42 | 0.08 | 4.13 |
Log info /wp-admin/admin.php?page=log-info | 28 | 0.42 | 0.09 | 3.80 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 18× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/purplepass-ticketing/inc/mb/save-btn.php
- > /wp-content/plugins/purplepass-ticketing/inc/html/gear.php
- > /wp-content/plugins/purplepass-ticketing/inc/mb/hidden-status.php
- > /wp-content/plugins/purplepass-ticketing/inc/mb/coupones.php
- > /wp-content/plugins/purplepass-ticketing/inc/html/order-custom-tickets.php
- > /wp-content/plugins/purplepass-ticketing/inc/mb/instructions.php
- > /wp-content/plugins/purplepass-ticketing/classic-editor.php
- > /wp-content/plugins/purplepass-ticketing/inc/mb/price-options.php
- > /wp-content/plugins/purplepass-ticketing/inc/mb/delivery-type.php
- > /wp-content/plugins/purplepass-ticketing/inc/html/help-support.php
- 85× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant PPTEC_PLUGIN_PATH - assumed 'PPTEC_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/purplepass-ticketing/inc/Purplepass_ECP.php on line 4
- > PHP Warning
Use of undefined constant PPTEC_PLUGIN_DIR - assumed 'PPTEC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/purplepass-ticketing/inc/html/order-custom-tickets.php on line 41
- > PHP Warning
Use of undefined constant PPTEC_PLUGIN_DIR - assumed 'PPTEC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/purplepass-ticketing/inc/html/payments.php on line 83
- > PHP Warning
include_once(): Failed opening 'PPTEC_PLUGIN_PATHinc/Exceptions/EventFormValidationException.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/purplepass-ticketing/inc/Purplepass_ECP.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function pptec_get_time_list() in wp-content/plugins/purplepass-ticketing/inc/mb/dates.php:17
- > PHP Warning
Use of undefined constant PPTEC_PLUGIN_DIR - assumed 'PPTEC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/purplepass-ticketing/inc/html/payments.php on line 25
- > PHP Notice
Undefined variable: class_closed in wp-content/plugins/purplepass-ticketing/inc/mb/switcher.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/purplepass-ticketing/purple-events.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/purplepass-ticketing/inc/Cron.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/purplepass-ticketing/inc/Cron.php:5
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=scanning-selling-gear
- > Network (severe)
wp-admin/admin.php?page=scanning-selling-gear - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=help-support
- > Network (severe)
wp-admin/admin.php?page=help-support - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=order-custom-tickets
- > Network (severe)
wp-admin/admin.php?page=order-custom-tickets - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=purplepass
- > Network (severe)
wp-admin/admin.php?page=purplepass - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=purplepass-stats
- > Network (severe)
wp-admin/admin.php?page=purplepass-stats - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=payments
- > Network (severe)
wp-admin/admin.php?page=payments - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=log-info
- > Network (severe)
wp-admin/admin.php?page=log-info - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
purplepass-ticketing/purple-events.php 85% from 13 tests
The primary PHP file in "Purplepass plugin for The Event Calendar" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("purplepass-ticketing.php" instead of "purple-events.php")
- Description: The description should be shorter than 140 characters (currently 149 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected70,458 lines of code in 93 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 1,530 | 1,092 | 44,014 |
CSS | 10 | 2,391 | 861 | 15,308 |
JavaScript | 10 | 1,013 | 1,168 | 4,938 |
SVG | 2 | 0 | 0 | 2,672 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 109.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 410.00 |
Average method complexity | 9.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 92.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 41 | 61.19% |
▷ Public methods | 48 | 71.64% |
▷ Protected methods | 2 | 2.99% |
▷ Private methods | 17 | 25.37% |
Functions | 112 | |
▷ Named functions | 108 | 96.43% |
▷ Anonymous functions | 4 | 3.57% |
Constants | 23 | |
▷ Global constants | 19 | 82.61% |
▷ Class constants | 4 | 17.39% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
21 PNG files occupy 0.83MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/img_titl_left.png | 1.73KB | 1.59KB | ▼ 8.05% |
img/img-bott-2.png | 90.50KB | 31.04KB | ▼ 65.71% |
img/success.png | 0.65KB | 0.23KB | ▼ 64.75% |
img/img-bott-1.png | 154.18KB | 59.22KB | ▼ 61.59% |
img/icon_hover.png | 2.05KB | 1.37KB | ▼ 33.05% |