84% ienterprise-crm

Code Review | iEnterprise CRM Lead Capture

WordPress plugin iEnterprise CRM Lead Capture scored84%from 54 tests.

About plugin

  • Plugin page: ienterprise-crm
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 21, 2018
  • Latest release: May 14, 2021
  • Number of updates: 46
  • Update frequency: every 22.4 days
  • Top authors: ienterprises (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /655 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.07MB] [CPU: ▼6.72ms] Passed 4 tests

A check of server-side resources used by iEnterprise CRM Lead Capture
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.56 ▲0.28
Dashboard /wp-admin3.39 ▲0.0452.06 ▼10.88
Posts /wp-admin/edit.php3.50 ▲0.1451.06 ▲3.01
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.87 ▼19.28
Media Library /wp-admin/upload.php3.31 ▲0.0838.84 ▲3.65
iEnterprise CRM /wp-admin/options-general.php?page=ienterprisecrm3.2834.61

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options
ienterprisecrm_endpoint
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
ienterprisecrm_submitbtn

Browser metrics Passed 4 tests

iEnterprise CRM Lead Capture: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.28 ▼1.101.82 ▲0.1441.10 ▲2.94
Dashboard /wp-admin2,225 ▲225.80 ▲0.89124.65 ▲15.5240.66 ▼6.68
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0538.39 ▲0.2036.44 ▲2.05
Add New Post /wp-admin/post-new.php1,548 ▲1523.21 ▲0.05662.59 ▲4.7064.49 ▲12.44
Media Library /wp-admin/upload.php1,407 ▲74.22 ▼0.0198.98 ▼6.2144.86 ▼0.77
iEnterprise CRM /wp-admin/options-general.php?page=ienterprisecrm9192.0524.8032.51

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/ienterprise-crm/views/custom.php
    • > /wp-content/plugins/ienterprise-crm/views/fields.php

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: lead capture, crm

ienterprise-crm/ienterprisecrm-leads.php 92% from 13 tests

The primary PHP file in "iEnterprise CRM Lead Capture" version 1.0.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ienterprise-crm.php" instead of "ienterprisecrm-leads.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
Good job! No executable or dangerous file extensions detected3,309 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP96028502
CSS3171996
JavaScript110431
XML1009

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions2191.30%
▷ Anonymous functions28.70%
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
No PNG files were detected