68% zesty-emails-custom-template-designer-for-woocommerce

Code Review | Zesty Emails Custom Template Designer for WooCommerce

WordPress plugin Zesty Emails Custom Template Designer for WooCommerce scored68%from 54 tests.

About plugin

  • Plugin page: zesty-emails-cust...
  • Plugin version: 1.0.01
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: May 3, 2022
  • Latest release: Jun 20, 2022
  • Number of updates: 8
  • Update frequency: every 6.0 days
  • Top authors: Bijingus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /242 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▲0.93ms] Passed 4 tests

Server-side resources used by Zesty Emails Custom Template Designer for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2647.28 ▲1.81
Dashboard /wp-admin3.66 ▲0.3255.49 ▼11.85
Posts /wp-admin/edit.php3.71 ▲0.3561.46 ▲10.45
Add New Post /wp-admin/post-new.php6.17 ▲0.29102.44 ▲3.29
Media Library /wp-admin/upload.php3.50 ▲0.2749.24 ▲12.41
Help /wp-admin/admin.php?page=zefw_help3.5041.20
Contact /wp-admin/admin.php?page=zefw_contact3.4939.25
Options /wp-admin/admin.php?page=zefw_options3.4940.28
Zesty Emails for WooCommerce /wp-admin/admin.php?page=zefw_emails3.5036.62

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 151 new files
Database: 1 new table, 8 new options
New tables
wp_zefw_custom_emails
New WordPress options
zefw_element_id_counter
widget_recent-posts
zefw_custom_emails_table_version
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Zesty Emails Custom Template Designer for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,056 ▲28516.41 ▲1.821.75 ▼0.2543.04 ▼2.63
Dashboard /wp-admin2,447 ▲2767.55 ▲1.94129.25 ▲28.5399.15 ▲55.84
Posts /wp-admin/edit.php2,387 ▲2874.93 ▲2.9169.88 ▲33.9591.11 ▲53.44
Add New Post /wp-admin/post-new.php1,799 ▲27323.04 ▼0.44651.46 ▼55.9440.62 ▼23.29
Media Library /wp-admin/upload.php1,533 ▲1335.11 ▲1.0095.41 ▼16.4591.43 ▲42.62
Help /wp-admin/admin.php?page=zefw_help1,4114.9462.9899.57
Contact /wp-admin/admin.php?page=zefw_contact1,1614.8849.7670.63
Options /wp-admin/admin.php?page=zefw_options1,1624.8753.4675.50
Zesty Emails for WooCommerce /wp-admin/admin.php?page=zefw_emails1,3364.8751.0861.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_zefw_custom_emails
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • zefw_element_id_counter
    • db_upgraded
    • zefw_custom_emails_table_version
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/zesty-emails-custom-template-designer-for-woocommerce/templates/email_styles.php
    • > /wp-content/plugins/zesty-emails-custom-template-designer-for-woocommerce/plugin.php
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zesty-emails-custom-template-designer-for-woocommerce/admin/admin-side-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zesty-emails-custom-template-designer-for-woocommerce/admin/test-emails.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/zesty-emails-custom-template-designer-for-woocommerce/admin/admin-nav-menu.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/zesty-emails-custom-template-designer-for-woocommerce/admin/admin-nav-menu.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/zesty-emails-custom-template-designer-for-woocommerce/admin/admin-nav-menu.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/zesty-emails-custom-template-designer-for-woocommerce/admin/BLD_Config.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/zesty-emails-custom-template-designer-for-woocommerce/admin/admin-nav-menu.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/zesty-emails-custom-template-designer-for-woocommerce/admin/edit_single_template.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zesty-emails-custom-template-designer-for-woocommerce/ajax/ZBLDR_Ajax.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/zesty-emails-custom-template-designer-for-woocommerce/admin/ZBLDR_Config.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: email, templates, customize, design, woocommerce

zesty-emails-custom-template-designer-for-woocommerce/plugin.php 85% from 13 tests

The entry point to "Zesty Emails Custom Template Designer for WooCommerce" version 1.0.01 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zesty-emails-custom-template-designer-for-woocommerce.php" instead of "plugin.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 plugin15,416 lines of code in 98 files:
LanguageFilesBlank linesComment linesLines of code
SVG3212126,040
JavaScript136092134,250
PO File81,0561,1682,293
PHP22441811,660
CSS11224411,075
Markdown136087
JSON110011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity95.00
▷ Minimum class complexity95.00
▷ Maximum class complexity95.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods1765.38%
▷ Protected methods00.00%
▷ Private methods934.62%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.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
32 compressed PNG files occupy 1.46MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icons/pinterest_icon_light.png10.41KB11.71KB0.00%
images/icons/facebook_icon_light.png3.10KB3.07KB▼ 1.20%
images/icons/youtube_icon_light.png5.28KB5.47KB0.00%
images/icons/tiktok_icon_light.png5.71KB5.73KB0.00%
images/icons/facebook_icon.png3.11KB3.07KB▼ 1.29%