90% contact-coldform

Code Review | Contact Coldform

WordPress plugin Contact Coldform scored90%from 54 tests.

About plugin

  • Plugin page: contact-coldform
  • Plugin version: 20231019...
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Feb 22, 2011
  • Latest release: Oct 19, 2023
  • Number of updates: 79
  • Update frequency: every 58.5 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

500+ active /60,333 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.19MB] [CPU: ▼3.80ms] Passed 4 tests

Server-side resources used by Contact Coldform
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2042.39 ▲3.49
Dashboard /wp-admin3.50 ▲0.2047.39 ▼3.18
Posts /wp-admin/edit.php3.62 ▲0.2649.45 ▼3.56
Add New Post /wp-admin/post-new.php6.08 ▲0.1982.10 ▼11.94
Media Library /wp-admin/upload.php3.43 ▲0.1941.34 ▲5.68
Contact Coldform /wp-admin/options-general.php?page=contact-coldform/contact-coldform.php3.4233.71

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Contact Coldform
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.31 ▼0.181.76 ▲0.0244.53 ▼1.48
Dashboard /wp-admin2,202 ▲255.59 ▲0.0692.93 ▲7.1940.63 ▲2.35
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0737.08 ▲0.4334.68 ▼0.25
Add New Post /wp-admin/post-new.php1,539 ▲1323.31 ▼0.20666.32 ▼36.0952.57 ▼9.27
Media Library /wp-admin/upload.php1,404 ▲44.18 ▼0.0198.27 ▲6.9342.72 ▼2.12
Contact Coldform /wp-admin/options-general.php?page=contact-coldform/contact-coldform.php1,5761.7024.8244.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: mail, contact, contact form, email, form...

contact-coldform/contact-coldform.php 92% from 13 tests

The main file in "Contact Coldform" v. 20231019... serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "20231019...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,352 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP337590952
PO File1149168363
CSS301237

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
contact-coldform.png18.64KB7.28KB▼ 60.92%