99% caleb-contact-form

Code Review | Simple Contact Form

WordPress plugin Simple Contact Form scored 99% from 53 tests.

About plugin

  • Plugin page: caleb-contact-form
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Mar 20, 2018
  • Latest release: Mar 20, 2018
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: cmiller734 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 536 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼284.90ms] Passed 4 tests

Server-side resources used by Simple Contact Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1333.01 ▲0.69
Dashboard /wp-admin3.07 ▲0.0239.70 ▼2.96
Posts /wp-admin/edit.php3.13 ▲0.0246.14 ▲8.54
Add New Post /wp-admin/post-new.php5.44 ▲0.0193.20 ▼1,124.07
Media Library /wp-admin/upload.php3.02 ▲0.0128.22 ▼13.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Contact Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲6816.25 ▲0.767.99 ▼2.0850.98 ▼2.66
Dashboard /wp-admin2,931 ▲815.92 ▲0.06139.62 ▼13.95106.14 ▼4.51
Posts /wp-admin/edit.php2,706 ▼02.68 ▼0.0273.67 ▲2.3898.16 ▼0.55
Add New Post /wp-admin/post-new.php1,653 ▼318.87 ▲4.40381.52 ▼40.60115.04 ▼1.48
Media Library /wp-admin/upload.php1,775 ▲34.99 ▼0.02159.69 ▼18.49116.58 ▼9.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt might help

caleb-contact-form/contact-plugin.php 92% from 13 tests

"Simple Contact Form" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("caleb-contact-form.php" instead of "contact-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin174 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

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.58
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin