84% easiest-newsletter

Code Review | Alex Easiest Newsletter

WordPress plugin Alex Easiest Newsletter scored84%from 54 tests.

About plugin

  • Plugin page: easiest-newsletter
  • Plugin version: 8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2011
  • Latest release: May 7, 2013
  • Number of updates: 17
  • Update frequency: every 35.9 days
  • Top authors: Adzbierajewski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,763 total downloads

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.03MB] [CPU: ▼5.58ms] Passed 4 tests

An overview of server-side resources used by Alex Easiest Newsletter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.38 ▲1.82
Dashboard /wp-admin3.33 ▲0.0350.80 ▲1.57
Posts /wp-admin/edit.php3.39 ▲0.0346.03 ▼3.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.79 ▼21.05
Media Library /wp-admin/upload.php3.26 ▲0.0335.24 ▲0.54

Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 267 new files
Database: no new tables, 10 new options
New WordPress options
newsletter_from_name
newsletter_from_subject
newsletter
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
newsletter_from_email

Browser metrics Passed 4 tests

An overview of browser requirements for Alex Easiest Newsletter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.55 ▲0.411.86 ▼0.0543.77 ▲4.19
Dashboard /wp-admin2,199 ▲194.98 ▼0.6899.52 ▲13.9740.34 ▼2.12
Posts /wp-admin/edit.php2,144 ▲442.27 ▲0.2737.70 ▼3.8032.65 ▼6.51
Add New Post /wp-admin/post-new.php1,550 ▲1323.06 ▲4.80645.17 ▲8.5962.80 ▼1.25
Media Library /wp-admin/upload.php1,441 ▲444.60 ▲0.3399.79 ▼1.1844.45 ▲2.50

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 were found after uninstall: 10 options
    • newsletter_from_email
    • widget_recent-comments
    • newsletter_from_subject
    • theysaidso_admin_options
    • widget_recent-posts
    • newsletter_from_name
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • newsletter

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easiest-newsletter/easiest-newsletter.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === easiest-newsletter === )
  • Screenshots: Please add an image for screenshot #1 (Here's a screenshot of it in action)
You can take inspiration from this readme.txt

easiest-newsletter/easiest-newsletter.php Passed 13 tests

"Alex Easiest Newsletter" version 8.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
88 characters long description:
This plugin allows you to send a simple newsletter to all of your users within WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected31,853 lines of code in 212 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1437,0103,22725,478
HTML35470184,835
CSS331931091,396
PHP1817144

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png2.70KB2.49KB▼ 7.95%
screenshot-1.png47.10KB20.25KB▼ 57.02%
jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png0.64KB1.04KB0.00%
jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png2.04KB2.24KB0.00%
jscripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png4.98KB1.48KB▼ 70.33%