84% everlytic

Code Review | Everlytic for WooCommerce

WordPress plugin Everlytic for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: everlytic
  • Plugin version: 1.8.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0
  • WordPress version: 6.3.1
  • First release: May 26, 2020
  • Latest release: Feb 7, 2023
  • Number of updates: 42
  • Update frequency: every 23.9 days
  • Top authors: everlytic (69.05%)ade1705 (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,739 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
Installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼5.42ms] Passed 4 tests

An overview of server-side resources used by Everlytic for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3237.38 ▼1.98
Dashboard /wp-admin3.63 ▲0.2845.87 ▼15.05
Posts /wp-admin/edit.php3.68 ▲0.3248.95 ▲0.95
Add New Post /wp-admin/post-new.php6.15 ▲0.2683.09 ▼5.58
Media Library /wp-admin/upload.php3.55 ▲0.3250.87 ▲17.18

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 44 new files
Database: 2 new tables, 7 new options
New tables
wp_ev_cart_log
wp_ev_product_tracking
New WordPress options
widget_theysaidso_widget
ev_db_version
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Everlytic for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.27 ▼1.111.76 ▼0.1841.89 ▼1.85
Dashboard /wp-admin2,206 ▲154.84 ▼1.13102.20 ▼5.5039.43 ▼4.50
Posts /wp-admin/edit.php2,068 ▼182.02 ▼0.0437.32 ▲2.0932.82 ▲1.08
Add New Post /wp-admin/post-new.php1,533 ▲423.39 ▲5.26675.20 ▲54.0355.65 ▲4.45
Media Library /wp-admin/upload.php1,391 ▲34.29 ▲0.07106.03 ▲7.6246.11 ▲2.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/EvPluginDeactivator.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/Coupons/EvCouponRepository.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/Product/EvProducts.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/EvPluginActivator.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/Coupons/EvCoupons.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/index.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/Product/EvFeaturedProducts.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/Events/AbandonedCart/EvCart.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: ecommerce, email, evelytic, workflows

everlytic/index.php 85% from 13 tests

"Everlytic for WooCommerce" version 1.8.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • 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: The principal plugin file should be the same as the plugin slug ("everlytic.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin2,088 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP363034331,887
SVG20286
CSS29959
YAML11051
JSON1005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.09
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes34
▷ Abstract classes00.00%
▷ Concrete classes34100.00%
▷ Final classes00.00%
Methods141
▷ Static methods107.09%
▷ Public methods10977.30%
▷ Protected methods00.00%
▷ Private methods3222.70%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/img/logo.png2.88KB2.93KB0.00%