78% contact-form-with-mailman

Code Review | Contact Form with Mailman

WordPress plugin Contact Form with Mailman scored78%from 54 tests.

About plugin

  • Plugin page: contact-form-with...
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Jul 17, 2015
  • Latest release: Mar 9, 2016
  • Number of updates: 17
  • Update frequency: every 15.9 days
  • Top authors: grumpytoaster (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,542 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.50ms] Passed 4 tests

A check of server-side resources used by Contact Form with Mailman
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.67 ▼5.06
Dashboard /wp-admin3.31 ▲0.0154.44 ▼0.59
Posts /wp-admin/edit.php3.36 ▲0.0149.69 ▲1.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.60 ▼12.21
Media Library /wp-admin/upload.php3.24 ▲0.0136.48 ▼4.13
Mailman Settings /wp-admin/options-general.php?page=contact-form-with-mailman3.1831.14

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Contact Form with Mailman
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.72 ▲0.352.17 ▲0.4744.29 ▼0.30
Dashboard /wp-admin2,199 ▲225.51 ▼0.2899.43 ▲9.5742.52 ▼4.40
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0235.17 ▼1.5734.71 ▼2.31
Add New Post /wp-admin/post-new.php1,531 ▲523.20 ▲0.05669.52 ▼26.3956.46 ▲3.29
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.06101.00 ▼7.6048.58 ▼2.37
Mailman Settings /wp-admin/options-general.php?page=contact-form-with-mailman8291.9929.5728.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=contact-form-with-mailman
    • > Notice in wp-content/plugins/contact-form-with-mailman/mailman-contact.php+45
    Trying to access array offset on value of type bool

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-with-mailman/mailman-contact.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: Screenshot #1 (This is what the output looks like.) image required
The official readme.txt is a good inspiration

contact-form-with-mailman/mailman-contact.php 92% from 13 tests

"Contact Form with Mailman" version 2.1.2'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: Please rename the main PHP file in this plugin to the plugin slug ("contact-form-with-mailman.php" instead of "mailman-contact.php")

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
No dangerous file extensions were detected125 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22517125

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin