89% crm-for-contact-form-7

Code Review | Contact Form 7 CRM - Lead, Client Database Back-up & Management

WordPress plugin Contact Form 7 CRM - Lead, Client Database Back-up & Management scored89%from 54 tests.

About plugin

  • Plugin page: crm-for-contact-f...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 25, 2022
  • Latest release: Aug 7, 2023
  • Number of updates: 10
  • Update frequency: every 25.5 days
  • Top authors: cloodoteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /818 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.07MB] [CPU: ▼2.90ms] Passed 4 tests

Analyzing server-side resources used by Contact Form 7 CRM - Lead, Client Database Back-up & Management
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.45 ▲0.98
Dashboard /wp-admin3.39 ▲0.0444.46 ▼15.11
Posts /wp-admin/edit.php3.50 ▲0.1545.83 ▲2.61
Add New Post /wp-admin/post-new.php5.97 ▲0.0893.05 ▲1.89
Media Library /wp-admin/upload.php3.31 ▲0.0834.91 ▲0.63

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form 7 CRM - Lead, Client Database Back-up & Management
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.25 ▲0.071.65 ▲0.0338.80 ▼3.02
Dashboard /wp-admin2,223 ▲435.51 ▼0.1081.75 ▼5.2738.77 ▼4.09
Posts /wp-admin/edit.php2,128 ▲282.00 ▲0.0136.89 ▲3.1236.15 ▼2.17
Add New Post /wp-admin/post-new.php1,557 ▲3118.20 ▼4.98587.05 ▼77.2763.54 ▲15.29
Media Library /wp-admin/upload.php1,428 ▲314.24 ▲0.03104.26 ▼12.2748.54 ▲2.26

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #3, #4, #5, #6, #7, #8, #9 in crm-for-contact-form-7/assets to your readme.txt
The official readme.txt might help

crm-for-contact-form-7/crm-4-cf7.php 69% from 13 tests

"Contact Form 7 CRM - Lead, Client Database Back-up & Management" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("crm-for-contact-form-7.php" instead of "crm-4-cf7.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "5.2")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • 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 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin54,765 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS97,32013050,156
JavaScript43145913,643
PHP510856966

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
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 functions1669.57%
▷ Anonymous functions730.43%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.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
admin/images/icons8-user-groups-50.png1.44KB1.44KB0.00%