Benchmarks
Plugin footprint 82% 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.16MB] [CPU: ▲1,014.52ms] 50% from 4 tests
Analyzing server-side resources used by Tickset
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 2,282.78ms on /wp-admin/options-general.php?page=tickset)
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 1,014.52ms on /wp-admin/options-general.php?page=tickset)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 1,055.05 ▲1,015.10 |
Dashboard /wp-admin | 3.48 ▲0.18 | 1,114.48 ▲1,065.72 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 1,065.22 ▲1,019.17 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 1,125.10 ▲1,019.87 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 1,038.85 ▲1,003.92 |
Tickset /wp-admin/options-general.php?page=tickset | 3.33 | 2,282.78 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tickset
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲146 | 14.47 ▼0.29 | 1.67 ▼0.26 | 35.81 ▼10.97 |
Dashboard /wp-admin | 2,283 ▲95 | 5.88 ▲0.99 | 98.25 ▼10.17 | 91.11 ▲47.14 |
Posts /wp-admin/edit.php | 2,184 ▲95 | 2.02 ▼0.04 | 36.84 ▼1.52 | 35.01 ▲2.10 |
Add New Post /wp-admin/post-new.php | 1,734 ▲220 | 20.74 ▲3.26 | 697.90 ▲16.40 | 37.00 ▼30.96 |
Media Library /wp-admin/upload.php | 1,480 ▲92 | 4.18 ▼0.03 | 97.29 ▼8.43 | 83.49 ▲39.43 |
Tickset /wp-admin/options-general.php?page=tickset | 1,139 | 2.12 | 28.47 | 31.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
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 50% 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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tickset/tickset.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tickset/includes/shortcodes.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=tickset
- > Network (severe)
wp-json/tickset/v1/verify_api_key - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: events, event-management, event
tickset/tickset.php Passed 13 tests
"Tickset" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
31 characters long description:
Sell tickets digitally. Simple.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin8,698 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 7,224 |
PHP | 6 | 78 | 125 | 497 |
SVG | 12 | 0 | 11 | 466 |
JavaScript | 5 | 29 | 19 | 210 |
PO File | 1 | 40 | 42 | 123 |
CSS | 3 | 26 | 6 | 92 |
Sass | 3 | 11 | 1 | 69 |
Markdown | 1 | 8 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 5 | 29.41% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 15 | |
▷ Named functions | 5 | 33.33% |
▷ Anonymous functions | 10 | 66.67% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.19MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-api-key.png | 4.18KB | 2.26KB | ▼ 46.02% |
assets/tinymce.png | 5.35KB | 5.27KB | ▼ 1.52% |
assets/gutenberg.png | 184.39KB | 52.94KB | ▼ 71.29% |