Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼6.57ms] Passed 4 tests
Server-side resources used by Sender - Newsletter, SMS and Email Marketing Automation for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 36.46 ▼2.88 |
Dashboard /wp-admin | 3.44 ▲0.10 | 50.55 ▼10.49 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 51.95 ▲5.44 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 80.85 ▼14.95 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.34 ▲2.04 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/sender-net-automated-emails/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/sender-net-automated-emails/assets/images/icon-256\303\227256.png"
Filesystem: 25 new files
Database: 2 new tables, 23 new options
New tables |
---|
wp_sender_automated_emails_users |
wp_sender_automated_emails_carts |
New WordPress options |
---|
sender_account_message |
theysaidso_admin_options |
sender_store_register |
sender_groups_data |
sender_customers_list |
sender_forms_data |
sender_wocommerce_sync |
sender_resource_key |
sender_account_plan_type |
sender_api_key |
... |
Browser metrics Passed 4 tests
Sender - Newsletter, SMS and Email Marketing Automation for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲60 | 14.72 ▲0.34 | 1.61 ▼0.19 | 37.58 ▼5.96 |
Dashboard /wp-admin | 2,200 ▲20 | 5.53 ▼0.12 | 95.62 ▼2.10 | 81.08 ▲35.18 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 1.99 ▲0.02 | 39.32 ▼0.78 | 34.29 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.06 ▼0.52 | 680.05 ▲47.14 | 51.10 ▼1.61 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.14 ▼0.02 | 93.61 ▼2.24 | 73.20 ▲32.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- 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
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sender-net-automated-emails/templates/widget_options.php:3
- > PHP Notice
Undefined variable: apiKey in wp-content/plugins/sender-net-automated-emails/templates/settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/sender-net-automated-emails/templates/settings.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #6 is required in sender-net-automated-emails/assets to your readme.txt
sender-net-automated-emails/sender.php 85% from 13 tests
The primary PHP file in "Sender - Newsletter, SMS and Email Marketing Automation for WooCommerce" version 2.5.9 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("sender-net-automated-emails.php" instead of "sender.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 249 characters long)
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
Good job! No executable or dangerous file extensions detected3,625 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 635 | 66 | 3,020 |
CSS | 1 | 82 | 13 | 498 |
PO File | 1 | 36 | 39 | 85 |
JavaScript | 1 | 3 | 0 | 20 |
SVG | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 130 | |
▷ Static methods | 4 | 3.08% |
▷ Public methods | 111 | 85.38% |
▷ Protected methods | 3 | 2.31% |
▷ Private methods | 16 | 12.31% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 25 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 25 | 100.00% |
▷ Public constants | 25 | 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.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/white_check.png | 18.47KB | 11.83KB | ▼ 35.97% |
assets/images/icon-256×256.png | 5.14KB | 2.37KB | ▼ 54.01% |
assets/images/settings.png | 4.51KB | 1.35KB | ▼ 70.04% |