Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▲0.26ms] Passed 4 tests
A check of server-side resources used by Elastic Email Subscribe Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 41.64 ▲5.34 |
Dashboard /wp-admin | 3.59 ▲0.25 | 51.76 ▼5.69 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 49.43 ▲1.79 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 97.69 ▲1.10 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 38.89 ▲3.85 |
Send test /wp-admin/admin.php?page=elasticemail-send-test | 3.50 | 34.00 |
Security /wp-admin/admin.php?page=elasticemail-security | 3.50 | 36.76 |
Reports /wp-admin/admin.php?page=elasticemail-report | 4.54 | 40.74 |
Lists /wp-admin/admin.php?page=elasticemail-lists | 4.54 | 38.68 |
Settings /wp-admin/admin.php?page=elasticemail-settings | 4.54 | 45.21 |
Error log /wp-admin/admin.php?page=elasticemail-error-log | 3.49 | 36.21 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: 1 new table, 18 new options
New tables |
---|
wp_elasticemail_log |
New WordPress options |
---|
theysaidso_admin_options |
ee_actualselectedlist |
ee_mimetype |
elastic-email-subscribe-status |
elastic-email-subscribe-basename |
eesf_plugin_path |
ee_config_from_name |
widget_recent-posts |
ee-apikey |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Elastic Email Subscribe Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲96 | 14.80 ▲0.15 | 2.06 ▲0.24 | 46.07 ▲3.92 |
Dashboard /wp-admin | 2,245 ▲56 | 5.84 ▲0.91 | 96.31 ▼25.35 | 69.76 ▲28.37 |
Posts /wp-admin/edit.php | 2,137 ▲45 | 2.02 ▲0.06 | 37.58 ▼1.84 | 33.31 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,556 ▲35 | 22.96 ▼0.09 | 720.00 ▲36.41 | 64.99 ▲13.76 |
Media Library /wp-admin/upload.php | 1,430 ▲45 | 4.11 ▼0.11 | 97.15 ▼11.81 | 75.05 ▲27.79 |
Send test /wp-admin/admin.php?page=elasticemail-send-test | 1,015 | 2.18 | 29.99 | 27.10 |
Security /wp-admin/admin.php?page=elasticemail-security | 1,063 | 2.04 | 24.17 | 33.60 |
Reports /wp-admin/admin.php?page=elasticemail-report | 1,016 | 2.62 | 35.36 | 25.15 |
Lists /wp-admin/admin.php?page=elasticemail-lists | 1,088 | 2.15 | 27.37 | 28.01 |
Settings /wp-admin/admin.php?page=elasticemail-settings | 1,076 | 2.10 | 25.71 | 25.53 |
Error log /wp-admin/admin.php?page=elasticemail-error-log | 922 | 2.20 | 24.73 | 27.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 failed, leaving 1 table in the database
- wp_elasticemail_log
- Zombie WordPress options were found after uninstall: 11 options
- elastic-email-subscribe-status
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- ee_config_from_name
- widget_recent-comments
- ee_config_from_email
- db_upgraded
- elastic-email-subscribe-basename
- can_compress_scripts
- ...
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-error-log
- > Notice in wp-content/plugins/elastic-email-subscribe-form/template/t-eesf_errorlog.php+20
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 7× PHP files output text when accessed directly:
- > /wp-content/plugins/elastic-email-subscribe-form/template/t-eesf_reports.php
- > /wp-content/plugins/elastic-email-subscribe-form/template/t-eesf_lists.php
- > /wp-content/plugins/elastic-email-subscribe-form/template/t-eesf_sendtest.php
- > /wp-content/plugins/elastic-email-subscribe-form/template/t-eesf_errorlog.php
- > /wp-content/plugins/elastic-email-subscribe-form/template/t-eesf_admin.php
- > /wp-content/plugins/elastic-email-subscribe-form/template/widget/t-eesf_widget-footer.php
- > /wp-content/plugins/elastic-email-subscribe-form/template/t-eesf_security.php
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/elastic-email-subscribe-form/template/widget/t-eesf_widget-header.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/elastic-email-subscribe-form/template/widget/t-eesf_widget-footer.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/elastic-email-subscribe-form/defaults/function.reset_pass.php:21
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/elastic-email-subscribe-form/elasticemailsubscribe.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/elastic-email-subscribe-form/template/widget/t-eesf_widget-footer.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/elastic-email-subscribe-form/security/config/eesf_config.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/elastic-email-subscribe-form/class/eesf_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/elastic-email-subscribe-form/template/t-eesf_connecterror.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/elastic-email-subscribe-form/template/t-eesf_apidisabled.php:2
- > 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-subscribe-form/elasticemailsubscribe.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: email marketing, recaptcha, tags elastic email, subscribe widget, newsletter...
elastic-email-subscribe-form/elasticemailsubscribe.php 92% from 13 tests
The entry point to "Elastic Email Subscribe Form" version 1.2.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("elastic-email-subscribe-form.php" instead of "elasticemailsubscribe.php")
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
There were no executable files found in this plugin6,243 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 1,449 | 3,671 | 5,271 |
SVG | 3 | 0 | 0 | 962 |
JavaScript | 6 | 0 | 10 | 6 |
CSS | 4 | 0 | 6 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 102 | |
▷ Abstract classes | 24 | 23.53% |
▷ Concrete classes | 78 | 76.47% |
▷ Final classes | 0 | 0.00% |
Methods | 185 | |
▷ Static methods | 13 | 7.03% |
▷ Public methods | 183 | 98.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.08% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 127 | |
▷ Global constants | 5 | 3.94% |
▷ Class constants | 122 | 96.06% |
▷ Public constants | 122 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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/icon.png | 3.45KB | 0.78KB | ▼ 77.30% |
src/img/connect_apikey.png | 16.15KB | 6.44KB | ▼ 60.15% |