Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼4.98ms] Passed 4 tests
A check of server-side resources used by Email
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 34.70 ▼6.21 |
Dashboard /wp-admin | 3.44 ▲0.14 | 44.54 ▼1.89 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 48.57 ▲2.02 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 91.42 ▼13.82 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 34.66 ▲3.72 |
Add New /wp-admin/edit.php?post_type=email&page=email/emails.php | 3.31 | 30.31 |
Emails /wp-admin/edit.php?post_type=email | 3.41 | 35.22 |
Logs /wp-admin/edit.php?post_type=email_log | 3.41 | 35.25 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Email
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲125 | 13.36 ▼0.92 | 1.80 ▼0.05 | 40.33 ▼11.14 |
Dashboard /wp-admin | 2,257 ▲69 | 5.12 ▼0.69 | 110.35 ▼6.05 | 39.62 ▼3.98 |
Posts /wp-admin/edit.php | 2,149 ▲63 | 2.23 ▲0.20 | 37.73 ▲2.37 | 33.81 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 23.41 ▲0.23 | 587.29 ▼96.69 | 49.87 ▼3.01 |
Media Library /wp-admin/upload.php | 1,442 ▲54 | 4.37 ▲0.16 | 96.93 ▲0.32 | 40.48 ▼1.41 |
Add New /wp-admin/edit.php?post_type=email&page=email/emails.php | 1,453 | 2.26 | 39.69 | 34.46 |
Emails /wp-admin/edit.php?post_type=email | 1,116 | 2.18 | 32.90 | 27.27 |
Logs /wp-admin/edit.php?post_type=email_log | 1,113 | 2.20 | 33.30 | 27.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?post_type=email&page=email/emails.php
- > Notice in wp-content/plugins/email/admin.php+181
Undefined variable: email_fromPname
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/email/email.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=email_log
- > Network (severe)
wp-content/plugins/email/assets/jquery-ui-1.9.2.custom.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=email_log
- > Network (severe)
wp-content/plugins/email/assets/jquery.timepicker.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: wp_mail, mail, email log, e-mail, email...
email/email.php Passed 13 tests
The main file in "Email" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
123 characters long description:
Email users with custom templates when certain actions happen, such as new posts, updated custom post types, deleted users.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,156 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 122 | 9 | 1,059 |
PHP | 5 | 168 | 36 | 675 |
CSS | 2 | 8 | 17 | 408 |
Markdown | 1 | 10 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/mail.png | 1.59KB | 0.70KB | ▼ 55.90% |
assets/chosen/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
assets/chosen/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |