82% privy-crm-integration

Code Review | Privyr CRM - Instant Lead Alerts for Contact Forms

WordPress plugin Privyr CRM - Instant Lead Alerts for Contact Forms scored82%from 54 tests.

About plugin

  • Plugin page: privy-crm-integra...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 26, 2021
  • Latest release: Aug 28, 2023
  • Number of updates: 20
  • Update frequency: every 47.3 days
  • Top authors: shivammani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /14,577 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.25MB] [CPU: ▼3.00ms] Passed 4 tests

Server-side resources used by Privyr CRM - Instant Lead Alerts for Contact Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2843.57 ▲2.57
Dashboard /wp-admin3.59 ▲0.2950.61 ▲1.69
Posts /wp-admin/edit.php3.65 ▲0.2951.35 ▲1.45
Add New Post /wp-admin/post-new.php6.11 ▲0.2386.35 ▼14.15
Media Library /wp-admin/upload.php3.46 ▲0.2334.53 ▼1.00

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options
privyr_version
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Privyr CRM - Instant Lead Alerts for Contact Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.39 ▼0.231.94 ▼0.6740.70 ▼2.57
Dashboard /wp-admin2,211 ▲345.55 ▲0.0186.55 ▼16.2943.10 ▼0.25
Posts /wp-admin/edit.php2,116 ▲131.98 ▼0.0536.19 ▲0.3136.74 ▲3.65
Add New Post /wp-admin/post-new.php1,539 ▲1323.00 ▼0.48661.75 ▲23.9866.03 ▲13.89
Media Library /wp-admin/upload.php1,413 ▲134.20 ▲0.06104.06 ▼0.9847.88 ▲1.77

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

Smoke tests 75% 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 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
  • 14× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/privy-crm-integration/includes/integrations/class-privyr-elementor-form.php
    • > /wp-content/plugins/privy-crm-integration/includes/integrations/class-privyr-forminator-form.php
    • > /wp-content/plugins/privy-crm-integration/includes/integrations/class-privyr-houzez.php
    • > /wp-content/plugins/privy-crm-integration/includes/integrations/class-privyr-formidable.php
    • > /wp-content/plugins/privy-crm-integration/includes/integrations/class-privyr-gravity-form.php
    • > /wp-content/plugins/privy-crm-integration/includes/integrations/class-privyr-fluent-form.php
    • > /wp-content/plugins/privy-crm-integration/includes/integrations/class-privyr-ninja-form.php
    • > /wp-content/plugins/privy-crm-integration/includes/integrations/class-privyr-wpcf7.php
    • > /wp-content/plugins/privy-crm-integration/includes/integrations/class-privyr-wpforms.php
    • > /wp-content/plugins/privy-crm-integration/includes/integrations/class-privyr-everest-form.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in privy-crm-integration/assets to your readme.txt
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

privy-crm-integration/privyr-crm-wp-plugin.php 69% from 13 tests

The main PHP script in "Privyr CRM - Instant Lead Alerts for Contact Forms" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("privy-crm-integration.php" instead of "privyr-crm-wp-plugin.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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 plugin1,588 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP252438081,382
Markdown1810118
CSS219887
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.64
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods81
▷ Static methods1822.22%
▷ Public methods4454.32%
▷ Protected methods00.00%
▷ Private methods3745.68%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants17
▷ Global constants211.76%
▷ Class constants1588.24%
▷ Public constants15100.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 1.10MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/plugins/houzez-logo.png8.57KB3.69KB▼ 57.00%
admin/images/plugins/cf7-logo.png29.11KB8.95KB▼ 69.24%
admin/images/plugins/ninja-form-logo.png4.62KB3.78KB▼ 18.04%
admin/images/onboarding-logo.png10.62KB10.62KB0.00%
(invalid) admin/images/plugins/elementor-form-logo.png4.00KB0.00KB▼ 100.00%