89% ht-newsletter-for-elementor

Code Review | HT Newsletter for Elementor

WordPress plugin HT Newsletter for Elementor scored89%from 54 tests.

About plugin

  • Plugin page: ht-newsletter-for...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 22, 2019
  • Latest release: Aug 3, 2023
  • Number of updates: 19
  • Update frequency: every 84.0 days
  • Top authors: htplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /11,415 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.62ms] Passed 4 tests

A check of server-side resources used by HT Newsletter for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.13 ▼9.17
Dashboard /wp-admin3.31 ▲0.0145.10 ▲2.42
Posts /wp-admin/edit.php3.36 ▲0.0143.84 ▼8.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.58 ▼11.22
Media Library /wp-admin/upload.php3.23 ▲0.0134.56 ▲2.80

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

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

Browser metrics Passed 4 tests

Checking browser requirements for HT Newsletter for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.26 ▼1.354.16 ▲2.3441.14 ▼1.84
Dashboard /wp-admin2,212 ▲245.84 ▲0.96100.77 ▲1.0939.09 ▲0.09
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0235.22 ▼4.4335.62 ▼1.49
Add New Post /wp-admin/post-new.php1,523 ▼1017.69 ▼5.66657.98 ▲9.8357.20 ▲3.54
Media Library /wp-admin/upload.php1,400 ▲124.20 ▲0.0298.08 ▲0.7043.54 ▼2.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: elementor, elementor addons, newsletter, widgets, mailchimp

ht-newsletter-for-elementor/mailchimp-for-wp-widget-elementor.php 77% from 13 tests

"HT Newsletter for Elementor" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ht-newsletter-for-elementor.php" instead of "mailchimp-for-wp-widget-elementor.php")

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
Good job! No executable or dangerous file extensions detected499 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP37625496
CSS1003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods233.33%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin