72% mail-next

Code Review | Newsletters, Email marketing et formulaires par Mail Next

WordPress plugin Newsletters, Email marketing et formulaires par Mail Next scored72%from 54 tests.

About plugin

  • Plugin page: mail-next
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2021
  • Latest release: Jul 10, 2021
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: cycy47 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /959 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Newsletters, Email marketing et formulaires par Mail Next
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.70 ▲1.59
Dashboard /wp-admin3.32 ▲0.0158.48 ▲8.74
Posts /wp-admin/edit.php3.37 ▲0.0147.54 ▼1.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.10 ▼12.65
Media Library /wp-admin/upload.php3.24 ▲0.0135.23 ▲2.80
Marketing Automation /wp-admin/admin.php?page=mail-next/includes/mfp-market-acp-page.php3.2231.73
Mail Next Emailing /wp-admin/admin.php?page=mail-next/includes/mfp-first-acp-page.php3.2230.99
Formulaires /wp-admin/admin.php?page=mail-next/includes/mfp-form-acp-page.php3.2228.23

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Newsletters, Email marketing et formulaires par Mail Next
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.27 ▼1.294.63 ▲2.7945.29 ▲4.21
Dashboard /wp-admin2,228 ▲375.81 ▲0.7498.79 ▼2.9438.85 ▼0.43
Posts /wp-admin/edit.php2,120 ▲282.05 ▲0.0436.61 ▼17.3533.78 ▼3.79
Add New Post /wp-admin/post-new.php1,558 ▲2523.24 ▲0.23595.56 ▼13.3353.65 ▼0.35
Media Library /wp-admin/upload.php1,419 ▲374.22 ▲0.0099.12 ▲0.6743.68 ▲0.63
Marketing Automation /wp-admin/admin.php?page=mail-next/includes/mfp-market-acp-page.php9912.1422.8426.99
Mail Next Emailing /wp-admin/admin.php?page=mail-next/includes/mfp-first-acp-page.php9962.0222.9631.65
Formulaires /wp-admin/admin.php?page=mail-next/includes/mfp-form-acp-page.php9952.0222.7731.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mail-next/includes/resultat.php
    • > /wp-content/plugins/mail-next/includes/synchronise.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      unlink(cache//.): Is a directory in wp-content/plugins/mail-next/includes/logout.php on line 8
    • > PHP Notice
      Undefined index: vericode in wp-content/plugins/mail-next/includes/resultat.php on line 13

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mail-next/includes/mfp-form-acp-page.php
    • > Network (severe)
    ../css/admin.css?ver=all - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 90% 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 need to be fixed:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
You can look at the official readme.txt

mail-next/mailnext.php 85% from 13 tests

The entry point to "Newsletters, Email marketing et formulaires par Mail Next" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mail-next.php" instead of "mailnext.php")

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
There were no executable files found in this plugin939 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP819262574
CSS4414364
JavaScript1011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions4
▷ Named functions4100.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
5 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/logo.png8.42KB3.50KB▼ 58.48%
images/logo.png8.42KB3.50KB▼ 58.48%
screenshot-1.png75.35KB31.23KB▼ 58.56%
screenshot-2.png62.34KB30.88KB▼ 50.47%
screenshot-3.png41.92KB17.76KB▼ 57.62%