Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼150.41ms] Passed 4 tests
This is a short check of server-side resources used by Elastic Email Sender
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 27.54 ▲1.00 |
Dashboard /wp-admin | 3.24 ▲0.18 | 38.25 ▼10.22 |
Posts /wp-admin/edit.php | 3.35 ▲0.24 | 36.21 ▲3.99 |
Add New Post /wp-admin/post-new.php | 5.61 ▲0.17 | 73.55 ▼594.67 |
Media Library /wp-admin/upload.php | 3.18 ▲0.18 | 27.97 ▲2.26 |
Error log /wp-admin/admin.php?page=elasticemail-error-log | 3.15 | 25.44 |
Settings /wp-admin/admin.php?page=elasticemail-settings | 4.14 | 43.17 |
Reports /wp-admin/admin.php?page=elasticemail-report | 4.14 | 25.79 |
Send test /wp-admin/admin.php?page=elasticemail-send-test | 3.17 | 22.36 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 25 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_elasticemail_log |
New WordPress options |
---|
elastic-email-sender-basename |
ees-connecting-status |
ee_mimetype |
ee_is_created_channels |
ees_plugin_dir_name |
ee_send-email-type |
ee-apikey |
ee_config_from_email |
ee_config_from_name |
daterangeselect |
Browser metrics Passed 4 tests
A check of browser resources used by Elastic Email Sender
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲107 | 15.90 ▲0.20 | 5.49 ▼0.85 | 75.16 ▼2.54 |
Dashboard /wp-admin | 2,973 ▲77 | 6.13 ▼0.02 | 117.64 ▼17.79 | 201.07 ▲27.05 |
Posts /wp-admin/edit.php | 2,788 ▲48 | 3.12 ▼0.11 | 61.64 ▼0.29 | 137.13 ▲4.51 |
Add New Post /wp-admin/post-new.php | 3,769 ▼38 | 18.76 ▲0.33 | 446.31 ▼1.87 | 195.86 ▲29.76 |
Media Library /wp-admin/upload.php | 1,794 ▲42 | 5.49 ▼0.00 | 126.11 ▼7.69 | 196.39 ▲9.45 |
Error log /wp-admin/admin.php?page=elasticemail-error-log | 1,438 | 3.05 | 55.85 | 100.77 |
Settings /wp-admin/admin.php?page=elasticemail-settings | 1,532 | 2.37 | 53.83 | 109.96 |
Reports /wp-admin/admin.php?page=elasticemail-report | 1,379 | 3.34 | 62.54 | 86.31 |
Send test /wp-admin/admin.php?page=elasticemail-send-test | 1,398 | 2.99 | 53.82 | 97.58 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- ee-apikey
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=elasticemail-send-test
- > Notice in wp-content/plugins/elastic-email-sender/template/t-ees_sendtest.php+23
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/elastic-email-sender/template/t-ees_admin.php
- > /wp-content/plugins/elastic-email-sender/template/t-ees_sendtest.php
- > /wp-content/plugins/elastic-email-sender/template/t-ees_errorlog.php
- > /wp-content/plugins/elastic-email-sender/template/t-ees_reports.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/elastic-email-sender/elasticemailsender.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/elastic-email-sender/defaults/function.reset_pass.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/elastic-email-sender/defaults/function.wp_mail.php:12
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/elastic-email-sender/elasticemailsender.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/elastic-email-sender/template/t-ees_apidisabled.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/elastic-email-sender/template/t-ees_connecterror.php:2
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/elastic-email-sender/elasticemailsender.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/elastic-email-sender/template/t-ees_marketing.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/elastic-email-sender/elasticemailsender.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: email sender, elastic email, email, transactional email, mailer...
elastic-email-sender/elasticemailsender.php 85% from 13 tests
Analyzing the main PHP file in "Elastic Email Sender" version 1.2.4
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 192 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("elastic-email-sender.php" instead of "elasticemailsender.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
No dangerous file extensions were detected5,203 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 1,257 | 3,500 | 4,236 |
SVG | 3 | 0 | 0 | 962 |
JavaScript | 3 | 0 | 10 | 3 |
CSS | 2 | 0 | 6 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 92 | |
▷ Abstract classes | 19 | 20.65% |
▷ Concrete classes | 73 | 79.35% |
▷ Final classes | 0 | 0.00% |
Methods | 174 | |
▷ Static methods | 13 | 7.47% |
▷ Public methods | 172 | 98.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.15% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 104 | |
▷ Global constants | 1 | 0.96% |
▷ Class constants | 103 | 99.04% |
▷ Public constants | 103 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/img/connect_apikey.png | 16.15KB | 6.44KB | ▼ 60.15% |
src/img/icon.png | 3.45KB | 0.78KB | ▼ 77.30% |