Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/trigger-happy/src/includes/class-triggerhappyexpressioncompiler.php+160
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
Server metrics [RAM: ▼1.73MB] [CPU: ▼50.02ms] Passed 4 tests
This is a short check of server-side resources used by Trigger Happy
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.25 ▼1.21 | 5.61 ▼34.33 |
Dashboard /wp-admin | 2.27 ▼1.03 | 6.83 ▼46.84 |
Posts /wp-admin/edit.php | 2.27 ▼1.08 | 6.87 ▼39.15 |
Add New Post /wp-admin/post-new.php | 2.27 ▼3.61 | 7.39 ▼79.77 |
Media Library /wp-admin/upload.php | 2.27 ▼0.95 | 6.99 ▼25.21 |
Add New /wp-admin/post-new.php?post_type=th_flow | 2.27 | 6.62 |
All Flows /wp-admin/edit.php?post_type=th_flow | 2.27 | 7.42 |
Server storage [IO: ▲3.62MB] [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: 71 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
triggerhappy_plugin_data |
Browser metrics Passed 4 tests
A check of browser resources used by Trigger Happy
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.25 ▼1.13 | 1.78 ▼0.02 | 42.07 ▼8.35 |
Dashboard /wp-admin | 2,233 ▲45 | 4.84 ▼0.08 | 110.57 ▲4.18 | 38.63 ▼5.79 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 1.99 ▼0.00 | 39.92 ▲5.43 | 36.32 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,558 ▲39 | 23.46 ▲0.39 | 647.52 ▼5.21 | 62.67 ▲10.57 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.30 ▲0.16 | 100.12 ▲4.51 | 42.05 ▼3.79 |
Add New /wp-admin/post-new.php?post_type=th_flow | 1,839 | 7.63 | 140.25 | 60.56 |
All Flows /wp-admin/edit.php?post_type=th_flow | 1,077 | 2.00 | 31.51 | 27.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/trigger-happy/src/includes/class-triggerhappyexpressioncompiler.php+160
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- triggerhappy_plugin_data
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=th_flow
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/trigger-happy/src/includes/class-triggerhappyexpressioncompiler.php+160
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=th_flow
- > Notice in wp-content/plugins/trigger-happy/src/api/FlowPluginsController.php+64
Undefined property: stdClass::$name
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
Almost there! Just fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/trigger-happy/src/nodes/woocommerce.php:855
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/trigger-happy/src/nodes/forms.php:64
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/trigger-happy/src/nodes/core.php:1182
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/trigger-happy/src/api/FlowController.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/trigger-happy/src/nodes/webhooks.php:85
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/trigger-happy/src/class-triggerhappy.php:29
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/trigger-happy/src/api/FlowHooksController.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/trigger-happy/src/api/FlowPluginsController.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: actions, triggers, visual scripting
trigger-happy/trigger-happy.php Passed 13 tests
"Trigger Happy" version 1.0.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
127 characters long description:
Connect your plugins and automate your workflow with Trigger Happy - a powerful flow-based visual scripting and automation tool
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin49,820 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 34 | 7,369 | 19,650 | 38,725 |
PHP | 20 | 546 | 199 | 4,721 |
CSS | 5 | 28 | 55 | 3,647 |
SVG | 1 | 0 | 0 | 2,671 |
JSON | 1 | 0 | 0 | 56 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 25.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 129 | |
▷ Static methods | 9 | 6.98% |
▷ Public methods | 104 | 80.62% |
▷ Protected methods | 2 | 1.55% |
▷ Private methods | 23 | 17.83% |
Functions | 98 | |
▷ Named functions | 53 | 54.08% |
▷ Anonymous functions | 45 | 45.92% |
Constants | 22 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 22 | 100.00% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 48.32KB | 19.25KB | ▼ 60.17% |
assets/screenshot-2.png | 44.49KB | 18.33KB | ▼ 58.81% |
assets/screenshot-1.png | 32.40KB | 13.61KB | ▼ 57.99% |