84% newsletter-chat

Code Review | Newsletter Chat

WordPress plugin Newsletter Chat scored84%from 54 tests.

About plugin

  • Plugin page: newsletter-chat
  • Plugin version: 1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4
  • WordPress version: 6.3.1
  • First release: Jul 11, 2020
  • Latest release: Jul 18, 2020
  • Number of updates: 17
  • Update frequency: every 0.5 days
  • Top authors: johnvictor82 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /540 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.96ms] Passed 4 tests

This is a short check of server-side resources used by Newsletter Chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.74 ▼6.21
Dashboard /wp-admin3.35 ▲0.0547.96 ▼4.69
Posts /wp-admin/edit.php3.41 ▲0.0550.31 ▼0.37
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.53 ▼4.57
Media Library /wp-admin/upload.php3.28 ▲0.0536.95 ▲1.01
Newsletter Chat /wp-admin/admin.php?page=newschat-settings3.2536.58
Headlines /wp-admin/admin.php?page=newschat_headlines3.2536.52
Support /wp-admin/admin.php?page=newschat_support3.2431.36

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Newsletter Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.34 ▼0.021.76 ▼0.5143.31 ▲1.02
Dashboard /wp-admin2,228 ▲545.64 ▼0.0292.50 ▼11.1937.84 ▼7.20
Posts /wp-admin/edit.php2,137 ▲371.99 ▲0.0139.14 ▲2.1034.76 ▼1.49
Add New Post /wp-admin/post-new.php1,554 ▲1723.16 ▲4.78630.23 ▼31.2854.53 ▼9.97
Media Library /wp-admin/upload.php1,433 ▲334.20 ▼0.0297.13 ▼11.3944.01 ▼0.28
Newsletter Chat /wp-admin/admin.php?page=newschat-settings8172.0029.3740.09
Headlines /wp-admin/admin.php?page=newschat_headlines8032.0223.4629.91
Support /wp-admin/admin.php?page=newschat_support8052.0324.5145.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newsletter-chat/newsletter-chat.php:15

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2 in newsletter-chat/assets to your readme.txt
The official readme.txt might help

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

This is the main PHP file of "Newsletter Chat" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
74 characters long description:
A lite plugin to generate today's posts as Newsletter to share on WhatsApp

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 plugin350 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16216230
CSS1350120

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/whatsappicon.png3.01KB2.38KB▼ 20.97%