78% contact-form-manager

Code Review | Contact Form Manager

WordPress plugin Contact Form Manager scored78%from 54 tests.

About plugin

  • Plugin page: contact-form-manager
  • Plugin version: 1.6
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.4.1
  • WordPress version: 6.3.1
  • First release: May 4, 2012
  • Latest release: Nov 16, 2023
  • Number of updates: 91
  • Update frequency: every 46.3 days
  • Top authors: f1logic (100%)

Code review

54 tests

User reviews

38 reviews

Install metrics

3,000+ active /275,211 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.58MB] [CPU: ▲0.66ms] Passed 4 tests

This is a short check of server-side resources used by Contact Form Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5745.25 ▲2.58
Dashboard /wp-admin3.88 ▲0.5753.93 ▲1.13
Posts /wp-admin/edit.php3.99 ▲0.6347.81 ▲1.22
Add New Post /wp-admin/post-new.php6.48 ▲0.5995.89 ▼2.29
Media Library /wp-admin/upload.php3.80 ▲0.5741.06 ▲9.19
Settings /wp-admin/admin.php?page=contact-form-manager-manage3.8335.53
Contact Forms /wp-admin/admin.php?page=contact-form-manager-managecontactforms3.8238.17
Suggest a Feature /wp-admin/admin.php?page=contact-form-manager-feature3.7934.29
SMTP Settings /wp-admin/admin.php?page=contact-form-manager-manage-smtp3.8436.08
About /wp-admin/admin.php?page=contact-form-manager-about3.8739.49
Theme CSS /wp-admin/admin.php?page=contact-form-manager-theme3.8135.97

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 88 new files
Database: 4 new tables, 18 new options
New tables
wp_xyz_cfm_theme_details
wp_xyz_cfm_form
wp_xyz_cfm_form_elements
wp_xyz_cfm_sender_email_address
New WordPress options
theysaidso_admin_options
widget_recent-comments
xyz_cfm_DateFormat
xyz_cfm_paging_limit
xyz_cfm_mandatory_sign
xyz_cfm_tinymce_filter
xyz_cfm_layout_setting
xyz_cfm_sendViaSmtp
widget_recent-posts
can_compress_scripts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Contact Form Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,992 ▲23013.52 ▼0.729.66 ▲7.9244.01 ▼1.64
Dashboard /wp-admin2,249 ▲695.74 ▲0.1085.46 ▼3.2486.16 ▲42.00
Posts /wp-admin/edit.php2,169 ▲662.20 ▲0.2634.31 ▼4.5935.52 ▼0.05
Add New Post /wp-admin/post-new.php1,740 ▲21422.69 ▼0.83664.62 ▼32.4233.84 ▼21.35
Media Library /wp-admin/upload.php1,460 ▲634.20 ▲0.02103.24 ▲0.2281.79 ▲40.24
Settings /wp-admin/admin.php?page=contact-form-manager-manage1,4731.9230.4949.48
Contact Forms /wp-admin/admin.php?page=contact-form-manager-managecontactforms1,1981.9125.1040.56
Suggest a Feature /wp-admin/admin.php?page=contact-form-manager-feature1,1711.7825.0837.46
SMTP Settings /wp-admin/admin.php?page=contact-form-manager-manage-smtp1,1831.8025.1440.09
About /wp-admin/admin.php?page=contact-form-manager-about2,0851.9328.4742.01
Theme CSS /wp-admin/admin.php?page=contact-form-manager-theme1,2411.7827.5445.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_theysaidso_widget
    • xyz_credit_link
    • can_compress_scripts
    • widget_recent-comments
    • xyz_cfm_recaptcha_type
    • db_upgraded
    • xyz_cfm_hidepmAds
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/contact-form-manager/captcha/random.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined index: formId in wp-content/plugins/contact-form-manager/captcha/random.php on line 3
    • > PHP Notice
      Undefined index: formName in wp-content/plugins/contact-form-manager/captcha/random.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

contact-form-manager/contact-form-manager.php 92% from 13 tests

The primary PHP file in "Contact Form Manager" version 1.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 358 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected10,470 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP321,6942138,621
CSS3207771,003
JavaScript3912123790
PO File1192856

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
31 PNG files occupy 0.80MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/theme/light-coffee.png7.75KB4.03KB▼ 48.00%
images/theme/blue-n-white.png7.48KB3.73KB▼ 50.10%
images/orange_buynow.png5.08KB2.84KB▼ 44.03%
images/contact.png1.26KB1.34KB0.00%
images/help.png2.50KB1.35KB▼ 45.96%