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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.86ms] Passed 4 tests
Analyzing server-side resources used by AY Update Mailer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.53 ▼3.69 |
Dashboard /wp-admin | 3.41 ▲0.06 | 44.93 ▼9.68 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 51.68 ▲2.00 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 93.14 ▼14.24 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.60 ▼3.81 |
Update Mailer /wp-admin/options-general.php?page=updatemailer | 3.30 | 31.12 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AY Update Mailer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.55 ▼1.09 | 1.72 ▼0.18 | 40.37 ▼2.01 |
Dashboard /wp-admin | 2,207 ▲22 | 5.83 ▲0.01 | 95.62 ▼6.51 | 36.78 ▼5.51 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.00 | 39.71 ▼1.64 | 36.33 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.50 ▲0.34 | 681.27 ▲17.35 | 57.38 ▲5.52 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▲0.07 | 97.62 ▼17.90 | 42.14 ▼6.58 |
Update Mailer /wp-admin/options-general.php?page=updatemailer | 939 | 2.15 | 22.57 | 25.24 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/updatemailer/ay-updatemailer.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/updatemailer/mail.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: maintenance, mail, update
updatemailer/ay-updatemailer.php 92% from 13 tests
The entry point to "AY Update Mailer" version 0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("updatemailer.php" instead of "ay-updatemailer.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
There were no executable files found in this plugin690 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 108 | 100 | 687 |
Markdown | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
Analyzing 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.49 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 7.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 26.67% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo-ayctor.png | 2.73KB | 1.67KB | ▼ 39.07% |