Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲8.02MB] [CPU: ▲50.39ms] 75% from 4 tests
An overview of server-side resources used by SureTriggers - Connect All Your Plugins, Apps, Tools & Automate Everything!
Please have a look at the following items
- Extra RAM: The extra memory usage must be under 5MB (currently 8.02MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 11.49 ▲8.03 | 92.22 ▲49.79 |
Dashboard /wp-admin | 11.33 ▲7.98 | 99.90 ▲36.59 |
Posts /wp-admin/edit.php | 11.37 ▲8.02 | 112.39 ▲63.78 |
Add New Post /wp-admin/post-new.php | 13.94 ▲8.05 | 143.07 ▲55.33 |
Media Library /wp-admin/upload.php | 11.29 ▲8.06 | 94.40 ▲59.83 |
Server storage [IO: ▲1.99MB] [DB: ▼0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 507 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for SureTriggers - Connect All Your Plugins, Apps, Tools & Automate Everything!
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲141 | 14.68 ▲0.54 | 1.66 ▼0.05 | 39.74 ▼7.09 |
Dashboard /wp-admin | 2,294 ▲120 | 5.66 ▲0.09 | 95.63 ▼6.95 | 48.14 ▲8.33 |
Posts /wp-admin/edit.php | 2,152 ▲49 | 2.11 ▲0.17 | 41.18 ▼1.78 | 36.53 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 21.31 ▼2.02 | 619.10 ▼63.39 | 47.51 ▼5.67 |
Media Library /wp-admin/upload.php | 1,451 ▲48 | 4.29 ▲0.01 | 99.78 ▲3.05 | 45.18 ▲2.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▼0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 485× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/wp-user-manager/triggers/user-removes-profile-photo.php on line 30
- > PHP Fatal error
Uncaught Error: Class 'SureTriggers\\Integrations\\AutomateAction' not found in wp-content/plugins/suretriggers/src/Integrations/gamipress/actions/revoke-achivement-user.php:31
- > PHP Fatal error
Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/metabox/triggers/metabox-after-form-submission.php on line 34
- > PHP Fatal error
Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/woocommerce/triggers/order-status-changed.php on line 31
- > PHP Fatal error
Uncaught Error: Class 'SureTriggers\\Integrations\\AutomateAction' not found in wp-content/plugins/suretriggers/src/Integrations/mailpoet/actions/update-subscriber-to-new-list.php:30
- > PHP Fatal error
Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/jetformbuilder/triggers/jet-form-submit.php on line 34
- > PHP Fatal error
Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/edd/triggers/edd-purchase-refund.php on line 34
- > PHP Fatal error
Uncaught Error: Class 'SureTriggers\\Integrations\\Integrations' not found in wp-content/plugins/suretriggers/src/Integrations/kadence-forms/kadence-forms.php:20
- > PHP Fatal error
Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/gamipress/triggers/user-total-points-meets-threshold.php on line 34
- > PHP Fatal error
Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/woocommerce-subscriptions/triggers/user-subscribes-product.php on line 35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: webhooks, surecart, mailchimp, google sheets, automation...
suretriggers/suretriggers.php 85% from 13 tests
The main PHP script in "SureTriggers - Connect All Your Plugins, Apps, Tools & Automate Everything!" version 1.0.30 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Description: The description should be shorter than 140 characters (currently 163 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin36,332 lines of code in 502 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 488 | 9,996 | 26,427 | 33,993 |
CSS | 3 | 170 | 113 | 2,267 |
SVG | 10 | 0 | 0 | 71 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,141)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 8.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,141.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 87.00 |
Code structure | ||
---|---|---|
Namespaces | 204 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 483 | |
▷ Abstract classes | 3 | 0.62% |
▷ Concrete classes | 480 | 99.38% |
▷ Final classes | 0 | 0.00% |
Methods | 1,587 | |
▷ Static methods | 90 | 5.67% |
▷ Public methods | 1,586 | 99.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.06% |
Functions | 29 | |
▷ Named functions | 7 | 24.14% |
▷ Anonymous functions | 22 | 75.86% |
Constants | 16 | |
▷ Global constants | 16 | 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
2 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/apps.png | 26.62KB | 11.89KB | ▼ 55.34% |
assets/images/logogrids.png | 20.32KB | 20.30KB | 0.10% |