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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼0.42ms] Passed 4 tests
This is a short check of server-side resources used by Awesome Newsletter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 42.44 ▲3.86 |
Dashboard /wp-admin | 3.48 ▲0.18 | 47.35 ▲0.72 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 48.15 ▲3.11 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 87.12 ▼7.18 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 36.19 ▲1.65 |
Email List /wp-admin/admin.php?page=awesome-newsletter-list-email | 3.37 | 33.71 |
awesome Newsletter /wp-admin/admin.php?page=awesome-newsletter | 3.37 | 34.01 |
Send Newsletter /wp-admin/admin.php?page=awesome-newsletter-send-email | 3.42 | 27.29 |
Server storage [IO: ▲9.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 59 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_awesome_nletter_email |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Awesome Newsletter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲190 | 13.61 ▼0.69 | 6.16 ▲4.45 | 46.11 ▲4.11 |
Dashboard /wp-admin | 2,228 ▲42 | 4.88 ▼0.06 | 99.15 ▼14.40 | 81.50 ▲42.45 |
Posts /wp-admin/edit.php | 2,129 ▲37 | 2.05 ▲0.04 | 41.42 ▲1.59 | 36.62 ▼1.36 |
Add New Post /wp-admin/post-new.php | 1,699 ▲166 | 21.23 ▼2.02 | 682.70 ▲6.98 | 47.63 ▼6.71 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.16 ▼0.07 | 96.64 ▼20.30 | 80.96 ▲33.54 |
Email List /wp-admin/admin.php?page=awesome-newsletter-list-email | 842 | 2.16 | 27.23 | 32.44 |
awesome Newsletter /wp-admin/admin.php?page=awesome-newsletter | 965 | 1.68 | 26.04 | 32.71 |
Send Newsletter /wp-admin/admin.php?page=awesome-newsletter-send-email | 1,913 | 7.55 | 174.19 | 33.91 |
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_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/awesome-newsletter/admin/class-awesome-newsletter-admin.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=awesome-newsletter-send-email
- > Network (severe)
wp-content/plugins/awesome-newsletter/admin/images/aw_default_template.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds), #2 (This is the second screen shot)
awesome-newsletter/awesome-newsletter.php Passed 13 tests
The principal PHP file in "Awesome Newsletter" v. 1.0.0 is loaded by WordPress automatically on each request
88 characters long description:
Awesome Newsletter, where you can send custom email or latest posts to your subscribers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin10,183 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 8 | 1 | 3 | 6,179 |
CSS | 3 | 34 | 12 | 2,891 |
PHP | 14 | 86 | 109 | 999 |
JavaScript | 2 | 19 | 4 | 114 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 41 | 97.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.38% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/mn_default_template.png | 1.87KB | 0.86KB | ▼ 54.15% |
admin/images/newsletter-icon.png | 1.23KB | 0.46KB | ▼ 62.67% |
admin/images/no-image.png | 3.55KB | 1.94KB | ▼ 45.28% |