88% sb-elementor-contact-form-db

Code Review | Contact Form DB - Elementor

WordPress plugin Contact Form DB - Elementor scored88%from 54 tests.

About plugin

  • Plugin page: sb-elementor-cont...
  • Plugin version: 1.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: May 13, 2019
  • Latest release: Sep 13, 2023
  • Number of updates: 16
  • Update frequency: every 146.1 days
  • Top authors: seanbarton (68.75%)webacetechs (37.5%)

Code review

54 tests

User reviews

17 reviews

Install metrics

40,000+ active /241,095 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▲0.97ms] Passed 4 tests

A check of server-side resources used by Contact Form DB - Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2047.12 ▲5.98
Dashboard /wp-admin3.50 ▲0.2048.64 ▲1.96
Posts /wp-admin/edit.php3.61 ▲0.2648.91 ▲2.54
Add New Post /wp-admin/post-new.php6.08 ▲0.2083.25 ▼4.68
Media Library /wp-admin/upload.php3.42 ▲0.1936.11 ▲4.05
Settings /wp-admin/edit.php?post_type=elementor_cf_db&page=sb_elem_cfd_settings3.3932.01
Export /wp-admin/edit.php?post_type=elementor_cf_db&page=sb_elem_cfd3.3938.44
All Elementor DB /wp-admin/edit.php?post_type=elementor_cf_db3.4735.63

Server storage [IO: ▲1.38MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form DB - Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.73 ▼0.011.77 ▲0.1742.80 ▼1.87
Dashboard /wp-admin2,226 ▲495.56 ▼0.0190.13 ▼15.8138.15 ▼3.05
Posts /wp-admin/edit.php2,134 ▲312.02 ▲0.0535.58 ▼0.1331.56 ▼4.93
Add New Post /wp-admin/post-new.php1,552 ▲2623.77 ▲0.16677.27 ▼32.0260.17 ▲4.38
Media Library /wp-admin/upload.php1,431 ▲314.42 ▲0.2694.53 ▼0.1543.28 ▼4.12
Settings /wp-admin/edit.php?post_type=elementor_cf_db&page=sb_elem_cfd_settings8901.9921.7425.95
Export /wp-admin/edit.php?post_type=elementor_cf_db&page=sb_elem_cfd8261.9924.2624.15
All Elementor DB /wp-admin/edit.php?post_type=elementor_cf_db1,1011.9130.8828.22

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === sb-elementor-contact-form-db === )
  • Requires php: The plugin version is formatted incorrectly
  • Screenshots: These screenshots do not have images: #1 (Submission List), #2 (Individual Submission), #3 (Copy to post type options), #4 (Settings Page), #5 (Export Page), #6 (Interface)
Please take inspiration from this readme.txt

sb-elementor-contact-form-db/sb_elementor_contact_form_db.php 85% from 13 tests

Analyzing the main PHP file in "Contact Form DB - Elementor" version 1.8.1
Please make the necessary changes and fix the following:
  • 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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sb-elementor-contact-form-db.php" instead of "sb_elementor_contact_form_db.php")

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
Everything looks great! No dangerous files found in this plugin767 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP222422761
JavaScript1406

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
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 functions23100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 1.34MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png431.76KB121.07KB▼ 71.96%
cat.png181.43KB184.78KB0.00%
screenshot-3.png155.97KB45.31KB▼ 70.95%
screenshot-4.png136.49KB38.63KB▼ 71.70%
screenshot-6.png20.17KB5.78KB▼ 71.33%