Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.16ms] Passed 4 tests
An overview of server-side resources used by WP Flashy Marketing Automation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.60 ▼5.02 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.74 ▲1.61 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 46.45 ▼8.82 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.28 ▼10.78 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.01 ▼0.03 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 35 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_flashy_carts |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
flashy_db_version |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Flashy Marketing Automation
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲42 | 14.37 ▲0.11 | 1.57 ▼0.01 | 35.68 ▼4.94 |
Dashboard /wp-admin | 2,212 ▲38 | 5.62 ▲0.08 | 97.88 ▼2.95 | 43.47 ▼6.64 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 1.96 ▼0.04 | 40.57 ▼0.14 | 36.09 ▲0.12 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.24 ▼0.46 | 601.25 ▼113.63 | 46.87 ▼2.91 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.19 ▲0.02 | 99.45 ▼8.32 | 42.31 ▼4.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_flashy_carts
- This plugin did not uninstall successfully, leaving 7 options in the database
- flashy_db_version
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flashy-marketing-automation/core/snippets/new-contact.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flashy-marketing-automation/core/snippets/set-customer.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flashy-marketing-automation/core/snippets/add-to-cart.php:73
- > PHP Fatal error
Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Classes\\Action_Base' not found in wp-content/plugins/wp-flashy-marketing-automation/core/elementor/form-action.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flashy-marketing-automation/core/snippets/tracking.php:38
- > PHP Fatal error
Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/wp-flashy-marketing-automation/core/classes/Flashy_Export.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flashy-marketing-automation/core/snippets/new-order.php:95
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flashy-marketing-automation/core/snippets/conversions.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/wp-flashy-marketing-automation/core/process/wp-background-process.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: sms, cross-sell, email marketing, cart abandonment, social ads...
wp-flashy-marketing-automation/flashy.php 92% from 13 tests
The primary PHP file in "WP Flashy Marketing Automation" version 2.0.7 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-flashy-marketing-automation.php" instead of "flashy.php")
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
Everything looks great! No dangerous files found in this plugin4,274 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,076 | 1,090 | 3,855 |
CSS | 1 | 18 | 3 | 213 |
PO File | 1 | 89 | 100 | 203 |
Markdown | 1 | 5 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 22.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 238.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 2 | 10.00% |
▷ Concrete classes | 18 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 191 | |
▷ Static methods | 16 | 8.38% |
▷ Public methods | 163 | 85.34% |
▷ Protected methods | 20 | 10.47% |
▷ Private methods | 8 | 4.19% |
Functions | 41 | |
▷ Named functions | 23 | 56.10% |
▷ Anonymous functions | 18 | 43.90% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/export-products.png | 6.84KB | 2.84KB | ▼ 58.40% |