78% woo-checkout-multistep

Code Review | Email Template Builder

WordPress plugin Email Template Builder scored78%from 54 tests.

About plugin

  • Plugin page: woo-checkout-mult...
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.3
  • WordPress version: 6.3.1
  • First release: May 18, 2017
  • Latest release: Aug 28, 2023
  • Number of updates: 8
  • Update frequency: every 286.6 days
  • Top authors: rednumber (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,563 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼4.26ms] 75% from 4 tests

Server-side resources used by Email Template Builder
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 504.84ms on /wp-admin/post-new.php?post_type=email_template)
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2940.49 ▲0.80
Dashboard /wp-admin3.60 ▲0.2952.79 ▼9.58
Posts /wp-admin/edit.php3.72 ▲0.3646.82 ▼0.61
Add New Post /wp-admin/post-new.php6.26 ▲0.3783.11 ▼7.65
Media Library /wp-admin/upload.php3.52 ▲0.2937.40 ▲2.91
Settings /wp-admin/edit.php?post_type=email_template&page=wpbuilder-email-settings3.5036.83
Email Templates /wp-admin/edit.php?post_type=email_template3.5736.50
Add New /wp-admin/post-new.php?post_type=email_template4.11504.84

Server storage [IO: ▲1.32MB] [DB: ▲0.05MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 122 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Email Template Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,416 ▲65515.29 ▲0.921.73 ▼0.1945.24 ▼4.25
Dashboard /wp-admin2,804 ▲6275.95 ▲0.28119.47 ▲32.69104.61 ▲60.00
Posts /wp-admin/edit.php2,739 ▲6363.50 ▲1.5248.74 ▲8.8580.82 ▲44.10
Add New Post /wp-admin/post-new.php2,149 ▲59923.31 ▲4.90645.53 ▲45.3499.93 ▲33.55
Media Library /wp-admin/upload.php2,039 ▲6365.27 ▲1.07101.72 ▼0.07104.04 ▲58.80
Settings /wp-admin/edit.php?post_type=email_template&page=wpbuilder-email-settings1,4653.2541.1552.05
Email Templates /wp-admin/edit.php?post_type=email_template1,7143.4145.3374.31
Add New /wp-admin/post-new.php?post_type=email_template3,9397.47163.95115.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following items
  • 10× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woo-checkout-multistep/backend/templates/index.php
    • > /wp-content/plugins/woo-checkout-multistep/backend/shortcode.php
    • > /wp-content/plugins/woo-checkout-multistep/index.php
    • > /wp-content/plugins/woo-checkout-multistep/email-templates/footer.php
    • > /wp-content/plugins/woo-checkout-multistep/preview-inner.php
    • > /wp-content/plugins/woo-checkout-multistep/frontend/index.php
    • > /wp-content/plugins/woo-checkout-multistep/rednumber/check_purchase_code.php
    • > /wp-content/plugins/woo-checkout-multistep/backend/ajax.php
    • > /wp-content/plugins/woo-checkout-multistep/backend/settings.php
    • > /wp-content/plugins/woo-checkout-multistep/backend/index.php
  • 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Use of undefined constant BUIDER_EMAIL_PRO_PLUGIN_URL - assumed 'BUIDER_EMAIL_PRO_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-checkout-multistep/preview.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-multistep/backend/templates/button.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Settings_Builder_Email_Backend' not found in wp-content/plugins/woo-checkout-multistep/email-templates/header.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-multistep/backend/demo/templates_demo.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-multistep/backend/templates/video.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-multistep/backend/templates/text.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-multistep/backend/templates/image.php:2
    • > PHP Warning
      Use of undefined constant BUIDER_EMAIL_PRO_PLUGIN_URL - assumed 'BUIDER_EMAIL_PRO_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-checkout-multistep/preview.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-multistep/backend/templates/row.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-multistep/backend/templates/social.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: You can look at the official readme.txt

woo-checkout-multistep/index.php 92% from 13 tests

The main file in "Email Template Builder" v. 1.2.8 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:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-checkout-multistep.php" instead of "index.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
No dangerous file extensions were detected9,300 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
CSS177691175,655
PHP2468421,803
JavaScript8203461,792
SVG122034
JSON160016

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity7.33
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods46
▷ Static methods48.70%
▷ Public methods46100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.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
50 PNG files occupy 0.46MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/social/whatsapp.png6.33KB2.50KB▼ 60.47%
images/social/yt_1.png2.05KB1.38KB▼ 33.08%
images/youtube-thumb.png5.06KB1.43KB▼ 71.81%
images/social/sk_2.png2.50KB1.49KB▼ 40.44%
images/smartphone.png0.85KB0.60KB▼ 29.46%