Benchmarks
Plugin footprint 83% 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 gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.65ms] Passed 4 tests
An overview of server-side resources used by Custom User Email
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.10 ▼3.62 |
Dashboard /wp-admin | 3.36 ▲0.02 | 50.79 ▼18.78 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 50.07 ▼3.27 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 97.58 ▼0.93 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 41.66 ▲7.04 |
Custom User Emails /wp-admin/admin.php?page=cpp_cue | 3.31 | 35.16 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mailer_templates |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Custom User Email
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.38 ▲0.00 | 1.67 ▼0.07 | 43.39 ▲5.11 |
Dashboard /wp-admin | 2,221 ▲47 | 5.63 ▼0.03 | 93.03 ▼5.80 | 38.73 ▼5.78 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.02 ▲0.04 | 40.98 ▼2.37 | 36.96 ▲2.39 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 18.22 ▼4.85 | 632.35 ▲5.96 | 71.20 ▲25.83 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.15 ▼0.10 | 100.64 ▼7.93 | 42.57 ▼0.06 |
Custom User Emails /wp-admin/admin.php?page=cpp_cue | 1,523 | 6.01 | 124.12 | 61.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/custom-user-emails/includes/password-reminder.php:47
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/custom-user-emails/includes/welcome-email.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-user-emails/useremails.php:16
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/custom-user-emails/includes/password-reminder.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-user-emails/includes/shortcodes.php:44
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/custom-user-emails/includes/welcome-email.php on line 7
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
4 plugin tags: email, welcome email, creativepixelpress, custom email
custom-user-emails/useremails.php 92% from 13 tests
Analyzing the main PHP file in "Custom User Email" version 1.1.1
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-user-emails.php" instead of "useremails.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected460 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 309 | 100 | 460 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected