Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.06ms] Passed 4 tests
Server-side resources used by One-Off Emails for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.85 ▲0.93 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.99 ▼6.50 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.99 ▼1.25 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.20 ▼9.40 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.35 ▲1.10 |
One-Off Emails /wp-admin/admin.php?page=wooe-menu | 3.29 | 37.76 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for One-Off Emails for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.53 ▼0.85 | 1.65 ▼0.27 | 40.19 ▲0.62 |
Dashboard /wp-admin | 2,206 ▲51 | 5.86 ▲0.16 | 100.29 ▼10.47 | 39.61 ▼2.34 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.00 | 39.36 ▼0.85 | 36.17 ▲1.11 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 23.26 ▲5.08 | 667.60 ▲34.88 | 54.74 ▼3.61 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.20 ▲0.00 | 98.54 ▲0.43 | 43.13 ▼2.12 |
One-Off Emails /wp-admin/admin.php?page=wooe-menu | 1,571 | 6.57 | 139.30 | 57.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/one-off-emails-for-woocommerce/classes/Settings.php
- > /wp-content/plugins/one-off-emails-for-woocommerce/one-off-emails-for-woocommerce.php
- > /wp-content/plugins/one-off-emails-for-woocommerce/classes/Plugin.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/one-off-emails-for-woocommerce/views/settings-view.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: customer, email, woocommerce, email template
one-off-emails-for-woocommerce/one-off-emails-for-woocommerce.php Passed 13 tests
This is the main PHP file of "One-Off Emails for WooCommerce" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
82 characters long description:
Send a single email with custom content to anybody using the WooCommerce template.
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
Success! There were no dangerous files found in this plugin397 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 48 | 101 | 281 |
JavaScript | 1 | 17 | 5 | 103 |
CSS | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin