84% contactformpro

Code Review | ContactForm.Pro - Floating Contact Form Widget - No Coding, No Servers & Messages To Your Email

WordPress plugin ContactForm.Pro - Floating Contact Form Widget - No Coding, No Servers & Messages To Your Email scored84%from 54 tests.

About plugin

  • Plugin page: contactformpro
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Jun 9, 2023
  • Latest release: Jul 31, 2023
  • Number of updates: 4
  • Update frequency: every 13.3 days
  • Top authors: contactformpro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /104 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: ▼5.93ms] Passed 4 tests

An overview of server-side resources used by ContactForm.Pro - Floating Contact Form Widget - No Coding, No Servers & Messages To Your Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.91 ▼1.52
Dashboard /wp-admin3.33 ▲0.0372.58 ▲13.62
Posts /wp-admin/edit.php3.38 ▲0.0248.31 ▼4.87
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.08 ▼15.15
Media Library /wp-admin/upload.php3.25 ▲0.0337.22 ▼2.17
ContactForm.Pro /wp-admin/options-general.php?page=contactformpro3.2228.93

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for ContactForm.Pro - Floating Contact Form Widget - No Coding, No Servers & Messages To Your Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.52 ▲0.171.68 ▼0.4642.38 ▼1.19
Dashboard /wp-admin2,202 ▲285.61 ▲0.0397.09 ▼3.5343.06 ▼2.07
Posts /wp-admin/edit.php2,104 ▲221.98 ▼0.0343.34 ▲4.1933.97 ▼4.40
Add New Post /wp-admin/post-new.php1,531 ▲223.12 ▲0.24671.55 ▲69.3656.10 ▲4.69
Media Library /wp-admin/upload.php1,407 ▲104.22 ▲0.0398.53 ▼10.5342.33 ▼4.03
ContactForm.Pro /wp-admin/options-general.php?page=contactformpro8731.9922.9130.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× 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/contactformpro/contactformpro.php:21

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)
No browser errors were detected

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4 in contactformpro/assets to your readme.txt
Please take inspiration from this readme.txt

contactformpro/contactformpro.php 92% from 13 tests

The main file in "ContactForm.Pro - Floating Contact Form Widget - No Coding, No Servers & Messages To Your Email" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 95 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected113 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11711113

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png6.21KB3.56KB▼ 42.67%