Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/mail-newsletter/mail-newsletter.php+57
Function create_function() is deprecated
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.11ms] Passed 4 tests
Analyzing server-side resources used by Mail NewsLetter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 33.64 ▼7.88 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.34 ▼5.89 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.75 ▲1.68 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.42 ▼12.33 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.35 ▲2.77 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mail_newsletter |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Mail NewsLetter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲103 | 13.33 ▼1.28 | 2.21 ▲0.38 | 40.83 ▼2.94 |
Dashboard /wp-admin | 2,226 ▲38 | 6.02 ▲1.00 | 99.98 ▼19.33 | 38.07 ▼4.87 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.04 ▼0.01 | 39.78 ▲2.04 | 34.83 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 18.34 ▼4.78 | 617.35 ▼46.43 | 58.36 ▲3.95 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.24 ▲0.05 | 97.20 ▲2.30 | 43.14 ▲0.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Mail_Newsletter_Class::mn_deactivation_hook() should not be called statically
- Zombie tables detected upon uninstall: 1 table
- wp_mail_newsletter
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (Admin back end to send email newsletter screenshot.) image not found
mail-newsletter/mail-newsletter.php Passed 13 tests
The main PHP script in "Mail NewsLetter" version 1.0 is automatically included on every request by WordPress
93 characters long description:
This plugin generate leads from website and allow admin to send email them using admin panel.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin286 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 59 | 57 | 182 |
CSS | 1 | 9 | 3 | 81 |
JavaScript | 1 | 5 | 2 | 23 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
5 PNG files occupy 0.26MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 32.87KB | 12.69KB | ▼ 61.41% |
assets/banner-772x250.png | 103.14KB | 44.21KB | ▼ 57.14% |
assets/icon-256x256.png | 36.88KB | 15.10KB | ▼ 59.04% |
assets/screenshot-2.png | 75.18KB | 19.61KB | ▼ 73.92% |
assets/icon-128x128.png | 15.45KB | 7.39KB | ▼ 52.14% |