78% nonaki-email-template-customizer

Code Review | Nonaki – Drag and Drop Email Template builder and Newsletter plugin for WordPress

WordPress plugin Nonaki – Drag and Drop Email Template builder and Newsletter plugin for WordPress scored 78% from 54 tests.

About plugin

  • Plugin page: nonaki-email-temp...
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Mar 22, 2023
  • Latest release: Jun 1, 2023
  • Number of updates: 17
  • Update frequency: every 4.2 days
  • Top authors: prappo_p (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 278 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.38MB] [CPU: ▼2.75ms] Passed 4 tests

Server-side resources used by Nonaki – Drag and Drop Email Template builder and Newsletter plugin for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3144.94 ▼2.37
Dashboard /wp-admin3.70 ▲0.4047.05 ▼1.87
Posts /wp-admin/edit.php3.75 ▲0.3951.51 ▲3.10
Add New Post /wp-admin/post-new.php6.39 ▲0.5081.95 ▼9.85
Media Library /wp-admin/upload.php3.65 ▲0.4236.35 ▲5.31
Settings /wp-admin/admin.php?page=nonaki-settings3.5134.17
Dashboard /wp-admin/admin.php?page=wpnonaki3.5233.46
Add-ons /wp-admin/admin.php?page=nonaki-addons3.5531.51
Contacts /wp-admin/edit.php?post_type=nonaki_contact3.6637.30
List /wp-admin/edit-tags.php?taxonomy=list&post_type=nonaki_contact3.6032.95
New Template /wp-admin/admin.php?page=nonaki-choice-type3.5633.97
Templates /wp-admin/edit.php?post_type=nonaki3.6533.66

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

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

Browser metrics Passed 4 tests

Nonaki – Drag and Drop Email Template builder and Newsletter plugin for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲17015.59 ▲0.841.61 ▼0.3638.56 ▼4.16
Dashboard /wp-admin2,344 ▲1626.20 ▲1.32151.31 ▲41.0641.55 ▼1.44
Posts /wp-admin/edit.php2,232 ▲1403.41 ▲1.3783.04 ▲41.3335.99 ▼2.93
Add New Post /wp-admin/post-new.php1,566 ▲3318.89 ▼4.46679.42 ▲86.1852.67 ▼1.83
Media Library /wp-admin/upload.php1,526 ▲1355.08 ▲0.84127.13 ▲23.1541.54 ▼7.69
Settings /wp-admin/admin.php?page=nonaki-settings1,0233.6775.8229.84
Dashboard /wp-admin/admin.php?page=wpnonaki9273.1937.6926.56
Add-ons /wp-admin/admin.php?page=nonaki-addons1,0433.0638.4932.57
Contacts /wp-admin/edit.php?post_type=nonaki_contact1,2923.3445.0432.55
List /wp-admin/edit-tags.php?taxonomy=list&post_type=nonaki_contact1,3843.4942.5328.62
New Template /wp-admin/admin.php?page=nonaki-choice-type1,1703.1036.3328.67
Templates /wp-admin/edit.php?post_type=nonaki1,2243.2645.9331.22

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
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/nonaki-email-template-customizer/modules/templates/email-presets/general3/content.php
    • > /wp-content/plugins/nonaki-email-template-customizer/modules/templates/email-presets/password1/content.php
    • > /wp-content/plugins/nonaki-email-template-customizer/modules/templates/email-presets/general1/content.php
    • > /wp-content/plugins/nonaki-email-template-customizer/modules/templates/email-presets/general2/content.php
    • > /wp-content/plugins/nonaki-email-template-customizer/modules/templates/email-presets/password2/content.php
    • > /wp-content/plugins/nonaki-email-template-customizer/modules/templates/email-presets/general/content.php
  • 20× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Nonaki\\Base' not found in wp-content/plugins/nonaki-email-template-customizer/includes/render.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Nonaki\\Base' not found in wp-content/plugins/nonaki-email-template-customizer/includes/settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/nonaki-email-template-customizer/editor/template.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_nonaki_email_preset() in wp-content/plugins/nonaki-email-template-customizer/modules/templates/email-presets/general3/general.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_nonaki_email_preset() in wp-content/plugins/nonaki-email-template-customizer/modules/templates/email-presets/general/general.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_nonaki_email_preset() in wp-content/plugins/nonaki-email-template-customizer/modules/templates/email-presets/general1/general.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_nonaki_email_preset() in wp-content/plugins/nonaki-email-template-customizer/modules/templates/email-presets/password1/general.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Nonaki\\Base' not found in wp-content/plugins/nonaki-email-template-customizer/includes/metabox.php:5
    • > PHP Fatal error
      Trait 'Nonaki\\BaseTrait' not found in wp-content/plugins/nonaki-email-template-customizer/includes/menu.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'Nonaki\\Base' not found in wp-content/plugins/nonaki-email-template-customizer/includes/cpt.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

nonaki-email-template-customizer/nonaki.php 85% from 13 tests

Analyzing the main PHP file in "Nonaki – Drag and Drop Email Template builder and Newsletter plugin for WordPress" version 1.0.11
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nonaki-email-template-customizer.php" instead of "nonaki.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
Good job! No executable or dangerous file extensions detected7,813 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
PHP529243124,977
JavaScript366542,579
CSS4706250
SVG7007

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.72
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces6
Interfaces1
Traits2
Classes26
▷ Abstract classes27.69%
▷ Concrete classes2492.31%
▷ Final classes14.17%
Methods163
▷ Static methods159.20%
▷ Public methods15092.02%
▷ Protected methods00.00%
▷ Private methods137.98%
Functions53
▷ Named functions3260.38%
▷ Anonymous functions2139.62%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin