84% mini-newsletter

Code Review | Mini Newsletter

WordPress plugin Mini Newsletter scored84%from 54 tests.

About plugin

  • Plugin page: mini-newsletter
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 31, 2019
  • Latest release: Aug 1, 2019
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: creativeartbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,754 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼8.73ms] Passed 4 tests

A check of server-side resources used by Mini Newsletter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1845.72 ▼1.63
Dashboard /wp-admin3.52 ▲0.1848.06 ▼3.75
Posts /wp-admin/edit.php3.63 ▲0.2449.13 ▼11.99
Add New Post /wp-admin/post-new.php6.12 ▲0.1986.06 ▼17.55
Media Library /wp-admin/upload.php3.44 ▲0.1738.07 ▲2.89
Email List /wp-admin/admin.php?page=mini-newsletter-list-email3.4136.11
Mini Newsletter /wp-admin/admin.php?page=mini-newsletter3.4136.66
Send Newsletter /wp-admin/admin.php?page=mini-newsletter-send-email3.4635.59

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 60 new files
Database: 1 new table, 6 new options
New tables
wp_mini_nletter_email
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Mini Newsletter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲15313.47 ▼1.007.98 ▲6.3539.57 ▼8.53
Dashboard /wp-admin2,235 ▲585.59 ▼0.0889.32 ▼1.8665.68 ▲29.18
Posts /wp-admin/edit.php2,140 ▲371.99 ▲0.0334.11 ▼6.9930.31 ▼7.36
Add New Post /wp-admin/post-new.php1,560 ▲923.41 ▲5.44701.86 ▲63.0559.14 ▼8.86
Media Library /wp-admin/upload.php1,440 ▲404.24 ▲0.00101.04 ▼8.3574.96 ▲27.10
Email List /wp-admin/admin.php?page=mini-newsletter-list-email8542.1824.6328.63
Mini Newsletter /wp-admin/admin.php?page=mini-newsletter9712.0127.2831.44
Send Newsletter /wp-admin/admin.php?page=mini-newsletter-send-email1,9177.54151.8332.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mini-newsletter/admin/class-mini-newsletter-admin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: email newsletter, min- newsletter, newsletter, send email, simple newsletter

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

The principal PHP file in "Mini Newsletter" v. 1.0.0 is loaded by WordPress automatically on each request
85 characters long description:
Mini 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin10,183 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
SVG8136,179
CSS334122,891
PHP1486109999
JavaScript2194114

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! 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
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods4197.62%
▷ Protected methods00.00%
▷ Private methods12.38%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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/no-image.png3.55KB1.94KB▼ 45.28%
admin/images/newsletter-icon.png1.23KB0.46KB▼ 62.67%