89% newsletter-block-by-gutena

Code Review | Gutena Newsletter - Subscriber Block & Connect Mailchimp

WordPress plugin Gutena Newsletter - Subscriber Block & Connect Mailchimp scored89%from 54 tests.

About plugin

  • Plugin page: newsletter-block-...
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Jul 26, 2022
  • Latest release: Apr 5, 2023
  • Number of updates: 28
  • Update frequency: every 9.0 days
  • Top authors: expresstech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /7,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼0.58ms] Passed 4 tests

A check of server-side resources used by Gutena Newsletter - Subscriber Block & Connect Mailchimp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1348.70 ▲7.48
Dashboard /wp-admin3.40 ▲0.1050.01 ▲0.03
Posts /wp-admin/edit.php3.52 ▲0.1651.48 ▼1.64
Add New Post /wp-admin/post-new.php6.00 ▲0.1298.90 ▼1.63
Media Library /wp-admin/upload.php3.33 ▲0.1037.37 ▲0.92

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Gutena Newsletter - Subscriber Block & Connect Mailchimp
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.62 ▲0.252.39 ▲0.2946.85 ▲5.84
Dashboard /wp-admin2,192 ▲125.48 ▼0.0986.37 ▼9.8540.11 ▼2.13
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0340.96 ▲4.1735.72 ▼2.61
Add New Post /wp-admin/post-new.php6,392 ▲4,86428.72 ▲7.80873.01 ▲211.5337.40 ▼16.38
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0099.63 ▼7.0343.16 ▼5.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% 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
These attributes need to be fixed: You can take inspiration from this readme.txt

newsletter-block-by-gutena/newsletter-block-gutena.php 77% from 13 tests

The main file in "Gutena Newsletter - Subscriber Block & Connect Mailchimp" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 158 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("newsletter-block-by-gutena.php" instead of "newsletter-block-gutena.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin526 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP865122287
JSON300208
SVG50020
JavaScript6017
CSS4004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.50
▷ Minimum class complexity9.00
▷ Maximum class complexity22.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/gutena/gutena-ecosys-onboard/assets/cta/bg.png6.31KB3.12KB▼ 50.59%
build/images/image.c7f425bc.png2.48KB1.77KB▼ 28.36%