83% include-klaviyo-for-elementor-pro

Code Review | Include Klaviyo for Elementor pro

WordPress plugin Include Klaviyo for Elementor pro scored83%from 54 tests.

About plugin

  • Plugin page: include-klaviyo-f...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 19, 2020
  • Latest release: Nov 18, 2023
  • Number of updates: 35
  • Update frequency: every 33.0 days
  • Top authors: thongnguyenminh (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /11,199 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.20ms] Passed 4 tests

Analyzing server-side resources used by Include Klaviyo for Elementor pro
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.30 ▼7.56
Dashboard /wp-admin3.33 ▲0.0345.45 ▼2.09
Posts /wp-admin/edit.php3.38 ▲0.0345.20 ▼4.44
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.09 ▲12.84
Media Library /wp-admin/upload.php3.25 ▲0.0334.78 ▲1.29

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Include Klaviyo for Elementor pro
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4514.11 ▼0.251.94 ▲0.3545.22 ▼0.63
Dashboard /wp-admin2,212 ▲375.57 ▼0.0992.37 ▼22.7139.59 ▼3.13
Posts /wp-admin/edit.php2,117 ▲141.98 ▼0.0341.30 ▼5.3637.94 ▲1.26
Add New Post /wp-admin/post-new.php1,547 ▲2118.74 ▼4.43602.42 ▼82.6950.91 ▼7.37
Media Library /wp-admin/upload.php1,420 ▲204.18 ▼0.0499.31 ▼12.0141.65 ▼5.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Classes\\Integration_Base' not found in wp-content/plugins/include-klaviyo-for-elementor-pro/include-klaviyo.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 75% 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
Attributes that need to be fixed:
  • Contributors: Contributors not specified
  • Donate link: Please fix this invalid URI: "paypal.me/nguyenminhthong"
  • Stable tag: Empty value
  • Contributors: Please add at least on tag
You can look at the official readme.txt

include-klaviyo-for-elementor-pro/include-elementor-klaviyo.php 92% from 13 tests

This is the main PHP file of "Include Klaviyo for Elementor pro" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("include-klaviyo-for-elementor-pro.php" instead of "include-elementor-klaviyo.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 plugin349 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2153189349

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.50
▷ Minimum class complexity10.00
▷ Maximum class complexity19.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods17
▷ Static methods15.88%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected