Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼6.87ms] Passed 4 tests
A check of server-side resources used by Comment Mail
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 35.76 ▼8.53 |
Dashboard /wp-admin | 3.67 ▲0.32 | 56.12 ▼13.96 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 58.18 ▲8.25 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 93.97 ▼11.77 |
Media Library /wp-admin/upload.php | 3.51 ▲0.29 | 43.95 ▲6.80 |
꜖ Site Templates /wp-admin/admin.php?page=comment_mail_site_templates | 7.27 | 64.11 |
Subscriptions /wp-admin/admin.php?page=comment_mail_subs | 4.51 | 50.49 |
꜖ Event Log /wp-admin/admin.php?page=comment_mail_queue_event_log | 3.69 | 44.19 |
Config. Options /wp-admin/admin.php?page=comment_mail | 3.49 | 40.22 |
꜖ Email Templates /wp-admin/admin.php?page=comment_mail_email_templates | 3.49 | 37.63 |
꜖ Event Log /wp-admin/admin.php?page=comment_mail_sub_event_log | 3.72 | 49.46 |
Mail Queue /wp-admin/admin.php?page=comment_mail_queue | 3.60 | 41.22 |
Server storage [IO: ▲4.03MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 230 new files
Database: 4 new tables, 9 new options
New tables |
---|
wp_comment_mail_subs |
wp_comment_mail_queue_event_log |
wp_comment_mail_sub_event_log |
wp_comment_mail_queue |
New WordPress options |
---|
comment_mail_options |
widget_theysaidso_widget |
can_compress_scripts |
comment_mail_notices |
widget_recent-posts |
comment_mail_install_time |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Comment Mail
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲122 | 14.26 ▼0.10 | 1.57 ▼0.57 | 41.64 ▼0.67 |
Dashboard /wp-admin | 2,287 ▲107 | 5.60 ▲0.02 | 87.86 ▼10.96 | 52.17 ▲6.46 |
Posts /wp-admin/edit.php | 2,192 ▲92 | 2.02 ▼0.00 | 39.29 ▲4.78 | 53.39 ▲17.62 |
Add New Post /wp-admin/post-new.php | 1,591 ▲58 | 23.17 ▲0.40 | 667.84 ▲9.16 | 71.78 ▲8.31 |
Media Library /wp-admin/upload.php | 1,492 ▲92 | 4.24 ▲0.12 | 102.73 ▲0.38 | 53.82 ▲4.69 |
꜖ Site Templates /wp-admin/admin.php?page=comment_mail_site_templates | 1,997 | 3.57 | 58.47 | 101.80 |
Subscriptions /wp-admin/admin.php?page=comment_mail_subs | 1,431 | 2.93 | 45.60 | 58.48 |
꜖ Event Log /wp-admin/admin.php?page=comment_mail_queue_event_log | 1,439 | 2.89 | 45.42 | 58.56 |
Config. Options /wp-admin/admin.php?page=comment_mail | 2,814 | 3.61 | 61.68 | 76.30 |
꜖ Email Templates /wp-admin/admin.php?page=comment_mail_email_templates | 2,131 | 3.64 | 59.68 | 76.40 |
꜖ Event Log /wp-admin/admin.php?page=comment_mail_sub_event_log | 1,734 | 2.89 | 46.68 | 60.52 |
Mail Queue /wp-admin/admin.php?page=comment_mail_queue | 1,279 | 2.88 | 45.25 | 58.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 4 tables
- wp_comment_mail_queue
- wp_comment_mail_subs
- wp_comment_mail_queue_event_log
- wp_comment_mail_sub_event_log
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- comment_mail_install_time
- widget_theysaidso_widget
- comment_mail_notices
- comment_mail_options
- widget_recent-comments
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 64 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=comment_mail_email_templates
- > Deprecated in wp-content/plugins/comment-mail/src/includes/classes/UtilsFs.php+103
strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
- > GET request to /wp-admin/admin.php?page=comment_mail
- > User deprecated in wp-includes/functions.php+5737
Function get_option was called with an argument that is deprecated since version 5.5.0! The "comment_whitelist" option key has been renamed to "comment_previously_approved".
SRP 0% 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
Please fix the following items
- 33× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/comment-mail/src/includes/templates/type-s/site/comment-form/snippet/sso-ops.php
- > /wp-content/plugins/comment-mail/src/includes/templates/type-s/email/sub-confirmation/snippet/message.php
- > /wp-content/plugins/comment-mail/src/includes/templates/type-s/email/snippet/footer-tag.php
- > /wp-content/plugins/comment-mail/src/includes/templates/type-s/email/comment-notification/snippet/message-comment-from.php
- > /wp-content/plugins/comment-mail/plugin.php
- > /wp-content/plugins/comment-mail/src/includes/stcr.php
- > /wp-content/plugins/comment-mail/src/vendor/websharks/wp-php-rv/src/includes/check.php
- > /wp-content/plugins/comment-mail/src/includes/templates/type-s/site/login-form/snippet/sso-ops.php
- > /wp-content/plugins/comment-mail/src/includes/templates/type-s/site/snippet/footer-tag.php
- > /wp-content/plugins/comment-mail/src/includes/templates/type-s/email/header-scripts.php
- 129× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CommentMail\\AbsBase' not found in wp-content/plugins/comment-mail/src/includes/classes/UtilsIp.php:17
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CommentMail\\AbsBase' not found in wp-content/plugins/comment-mail/src/includes/classes/PostSmallMetaBox.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function WebSharks\\CommentMail\\__() in wp-content/plugins/comment-mail/src/includes/templates/type-s/site/sub-actions/manage-sub-form.php:62
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CommentMail\\AbsBase' not found in wp-content/plugins/comment-mail/src/includes/classes/Template.php:17
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CommentMail\\AbsBase' not found in wp-content/plugins/comment-mail/src/includes/classes/UserDelete.php:17
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CommentMail\\AbsBase' not found in wp-content/plugins/comment-mail/src/includes/classes/MenuPage.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function WebSharks\\CommentMail\\__() in wp-content/plugins/comment-mail/src/includes/templates/type-s/site/sub-actions/confirmed.php:28
- > PHP Notice
Undefined variable: sso_services in wp-content/plugins/comment-mail/src/includes/templates/type-s/site/comment-form/sso-ops.php on line 73
- > PHP Fatal error
Uncaught Error: Call to undefined function WebSharks\\CommentMail\\esc_attr() in wp-content/plugins/comment-mail/src/includes/templates/type-s/site/comment-form/sub-ops.php:100
- > PHP Fatal error
Uncaught Error: Class 'WebSharks\\CommentMail\\AbsBase' not found in wp-content/plugins/comment-mail/src/includes/classes/UtilsPhp.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=comment_mail_queue
- > Javascript (severe) in unknown
http://www.google.com/jsapi?autoload=%7B%27modules%27%3A%5B%7B%27name%27%3A%27visualization%27%2C%27version%27%3A%271%27%2C%27packages%27%3A%5B%27geochart%27%5D%7D%5D%7D 150:139 Uncaught Error: Autoload failed with: SyntaxError: Expected proper…me or '}' in JSON at position 1 (line 1 column 2)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
comment-mail/plugin.php 85% from 13 tests
The main PHP script in "Comment Mail" version 161213... is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("comment-mail.php" instead of "plugin.php")
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "161213...")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin28,435 lines of code in 186 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 154 | 4,992 | 11,929 | 23,738 |
JavaScript | 4 | 298 | 62 | 2,284 |
SVG | 2 | 0 | 0 | 784 |
CSS | 5 | 72 | 17 | 466 |
JSON | 4 | 0 | 0 | 450 |
Markdown | 9 | 166 | 0 | 402 |
HTML | 2 | 18 | 1 | 202 |
SQL | 4 | 0 | 0 | 93 |
XML | 2 | 0 | 0 | 16 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 380)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 40.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 477.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 380.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 87 | |
▷ Abstract classes | 3 | 3.45% |
▷ Concrete classes | 84 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 891 | |
▷ Static methods | 49 | 5.50% |
▷ Public methods | 568 | 63.75% |
▷ Protected methods | 321 | 36.03% |
▷ Private methods | 2 | 0.22% |
Functions | 61 | |
▷ Named functions | 14 | 22.95% |
▷ Anonymous functions | 47 | 77.05% |
Constants | 12 | |
▷ Global constants | 10 | 83.33% |
▷ Class constants | 2 | 16.67% |
▷ Public constants | 2 | 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
24 PNG files occupy 0.49MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/vendor/package/datetimepicker/screen/4.png | 12.29KB | 5.50KB | ▼ 55.26% |
src/client-s/images/sub-ops-ss.png | 17.34KB | 6.50KB | ▼ 62.53% |
src/client-s/images/aws-ses-rec.png | 32.59KB | 11.91KB | ▼ 63.45% |
src/client-s/images/sso-linkedin.png | 1.63KB | 1.00KB | ▼ 38.26% |
src/client-s/images/trans-bg.png | 0.09KB | 0.12KB | 0.00% |