78% awesome-newsletter

Code Review | Awesome Newsletter

WordPress plugin Awesome Newsletter scored 78% from 54 tests.

About plugin

  • Plugin page: awesome-newsletter
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.2
  • WordPress version: 6.3.1
  • First release: Oct 28, 2019
  • Latest release: Oct 29, 2019
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: awesomecoders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 489 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1842.44 ▲3.86
Dashboard /wp-admin3.48 ▲0.1847.35 ▲0.72
Posts /wp-admin/edit.php3.59 ▲0.2448.15 ▲3.11
Add New Post /wp-admin/post-new.php6.08 ▲0.2087.12 ▼7.18
Media Library /wp-admin/upload.php3.40 ▲0.1836.19 ▲1.65
Email List /wp-admin/admin.php?page=awesome-newsletter-list-email3.3733.71
awesome Newsletter /wp-admin/admin.php?page=awesome-newsletter3.3734.01
Send Newsletter /wp-admin/admin.php?page=awesome-newsletter-send-email3.4227.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
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Awesome Newsletter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲19013.61 ▼0.696.16 ▲4.4546.11 ▲4.11
Dashboard /wp-admin2,228 ▲424.88 ▼0.0699.15 ▼14.4081.50 ▲42.45
Posts /wp-admin/edit.php2,129 ▲372.05 ▲0.0441.42 ▲1.5936.62 ▼1.36
Add New Post /wp-admin/post-new.php1,699 ▲16621.23 ▼2.02682.70 ▲6.9847.63 ▼6.71
Media Library /wp-admin/upload.php1,425 ▲404.16 ▼0.0796.64 ▼20.3080.96 ▲33.54
Email List /wp-admin/admin.php?page=awesome-newsletter-list-email8422.1627.2332.44
awesome Newsletter /wp-admin/admin.php?page=awesome-newsletter9651.6826.0432.71
Send Newsletter /wp-admin/admin.php?page=awesome-newsletter-send-email1,9137.55174.1933.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)


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)
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.29
Average class complexity11.33
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
▷ Static methods24.76%
▷ Public methods4197.62%
▷ Protected methods00.00%
▷ Private methods12.38%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/images/mn_default_template.png1.87KB0.86KB▼ 54.15%
admin/images/newsletter-icon.png1.23KB0.46KB▼ 62.67%
admin/images/no-image.png3.55KB1.94KB▼ 45.28%