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: ▼1.12MB] [CPU: ▼45.22ms] Passed 4 tests
This is a short check of server-side resources used by Email Campaign User Notifications
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▼0.61 | 12.22 ▼32.18 |
Dashboard /wp-admin | 2.89 ▼0.41 | 17.96 ▼37.21 |
Posts /wp-admin/edit.php | 2.90 ▼0.46 | 19.34 ▼33.70 |
Add New Post /wp-admin/post-new.php | 2.89 ▼2.99 | 17.54 ▼77.80 |
Media Library /wp-admin/upload.php | 2.90 ▼0.33 | 17.42 ▼19.45 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 10 new options
New WordPress options |
---|
default_template |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Activated_Plugin |
default_subject |
theysaidso_admin_options |
email_crons_roles_chunk |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Email Campaign User Notifications
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲19 | 14.74 ▲0.45 | 1.75 ▼0.48 | 38.87 ▼6.42 |
Dashboard /wp-admin | 2,214 ▲37 | 5.63 ▼0.01 | 90.40 ▼2.72 | 42.52 ▼0.49 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▼0.00 | 39.82 ▲1.59 | 37.39 ▲2.10 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 18.18 ▼5.03 | 628.70 ▼60.07 | 64.77 ▲11.63 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.22 ▲0.12 | 99.40 ▼16.77 | 42.36 ▼5.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/email-campaign-user-notifications/email-crons.php+74
Undefined variable: ecun_page
- Zombie WordPress options were found after uninstall: 9 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- default_subject
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- default_template
- email_crons_roles_chunk
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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 take a closer look at the following
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/email-campaign-user-notifications/includes/settings/class-ecun-config.php
- > /wp-content/plugins/email-campaign-user-notifications/includes/settings/class-ecun-sendemail.php
- > /wp-content/plugins/email-campaign-user-notifications/email-crons.php
- > /wp-content/plugins/email-campaign-user-notifications/includes/tabs/class-ecun-usersselection.php
- > /wp-content/plugins/email-campaign-user-notifications/includes/tabs/class-ecun-emailtest.php
- > /wp-content/plugins/email-campaign-user-notifications/includes/class-ecun-addmenupage.php
- > /wp-content/plugins/email-campaign-user-notifications/includes/tabs/class-ecun-savetemplate.php
- > /wp-content/plugins/email-campaign-user-notifications/includes/tabs/class-ecun-cronssettings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: campaign, plugin, email
email-campaign-user-notifications/email-crons.php 85% from 13 tests
The entry point to "Email Campaign User Notifications" version 1.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("email-campaign-user-notifications.php" instead of "email-crons.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 detected698 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 72 | 222 | 587 |
JavaScript | 2 | 5 | 2 | 74 |
CSS | 2 | 1 | 0 | 37 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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