74% footer-contact-form

Code Review | Footer Contact Form

WordPress plugin Footer Contact Form scored74%from 54 tests.

About plugin

  • Plugin page: footer-contact-form
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 5, 2018
  • Latest release: Feb 5, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: pawnesh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /595 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.45ms] Passed 4 tests

This is a short check of server-side resources used by Footer Contact Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.21 ▲0.35
Dashboard /wp-admin3.34 ▲0.0347.31 ▼7.11
Posts /wp-admin/edit.php3.39 ▲0.0350.12 ▼3.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.18 ▼11.34
Media Library /wp-admin/upload.php3.26 ▲0.0341.02 ▲1.38
Footer Enquiry /wp-admin/options-general.php?page=fcfh-enquiry-setting3.2233.57
Footer Enquiry /wp-admin/tools.php?page=fcfh-enquiry-report3.2233.76

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables
wp_fcfh_enquiry
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Footer Contact Form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲11713.29 ▼1.011.79 ▲0.1245.51 ▲5.85
Dashboard /wp-admin2,214 ▲265.88 ▲1.02108.95 ▲0.7343.88 ▲2.25
Posts /wp-admin/edit.php2,097 ▲52.04 ▲0.0438.96 ▼1.3635.32 ▼2.86
Add New Post /wp-admin/post-new.php1,541 ▲2223.36 ▲0.41656.67 ▼20.3650.10 ▼7.18
Media Library /wp-admin/upload.php1,390 ▼14.19 ▲0.08105.78 ▼13.6444.24 ▼3.90
Footer Enquiry /wp-admin/options-general.php?page=fcfh-enquiry-setting8002.0625.0325.57
Footer Enquiry /wp-admin/tools.php?page=fcfh-enquiry-report7592.0524.6625.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_fcfh_enquiry
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/footer-contact-form/index.php
    • > /wp-content/plugins/footer-contact-form/admin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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: You can look at the official readme.txt

footer-contact-form/index.php 92% from 13 tests

The primary PHP file in "Footer Contact Form" version 1.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("footer-contact-form.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected197 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2229197

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin