84% lenix-elementor-leads-addon

Code Review | Lenix Elementor Leads addon

WordPress plugin Lenix Elementor Leads addon scored 84% from 54 tests.

About plugin

  • Plugin page: lenix-elementor-l...
  • Plugin version: 1.8.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9.4
  • WordPress version: 6.3.1
  • First release: Sep 27, 2017
  • Latest release: May 21, 2022
  • Number of updates: 52
  • Update frequency: every 32.6 days
  • Top authors: yonifre (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

20,000+ active / 125,027 total downloads

Benchmarks

Plugin footprint 83% 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.02MB] [CPU: ▼7.75ms] Passed 4 tests

A check of server-side resources used by Lenix Elementor Leads addon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.29 ▼5.71
Dashboard /wp-admin3.32 ▲0.0243.62 ▼4.43
Posts /wp-admin/edit.php3.37 ▲0.0246.97 ▼3.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.16 ▼17.39
Media Library /wp-admin/upload.php3.24 ▲0.0234.44 ▲2.55

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Lenix Elementor Leads addon
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5513.34 ▼1.061.67 ▼0.4740.31 ▼9.98
Dashboard /wp-admin2,218 ▲274.89 ▲0.02103.91 ▲1.9440.14 ▼0.95
Posts /wp-admin/edit.php2,103 ▲142.05 ▼0.0040.12 ▼0.9636.28 ▲0.76
Add New Post /wp-admin/post-new.php1,546 ▲2723.24 ▼0.04644.63 ▲0.5157.28 ▲7.56
Media Library /wp-admin/upload.php1,394 ▲94.26 ▲0.0796.67 ▼0.3941.12 ▼1.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lenix-elementor-leads-addon/inc/functions.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lenix-elementor-leads-addon/inc/meta-boxes.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lenix-elementor-leads-addon/inc/class-lenix-elementor-forms.php:584

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 Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: elementor, leads, lenix, elemntor form db, contact form db...

lenix-elementor-leads-addon/elementor-leads.php 85% from 13 tests

"Lenix Elementor Leads addon" version 1.8.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("lenix-elementor-leads-addon.php" instead of "elementor-leads.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin962 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP622227718
PO File2106106244

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity57.50
▷ Minimum class complexity5.00
▷ Maximum class complexity110.00
Average method complexity7.65
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1376.47%
▷ Protected methods211.76%
▷ Private methods211.76%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin