94% mymail-contact-form-7

Code Review | Contact Form 7 for MyMail

WordPress plugin Contact Form 7 for MyMail scored 94% from 54 tests.

About plugin

  • Plugin page: mymail-contact-fo...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7.1
  • WordPress version: 5.9.2
  • First release: Nov 27, 2015
  • Latest release: Jan 12, 2021
  • Number of updates: 26
  • Update frequency: every 72.0 days
  • Top authors: revaxarts (92.31%)everpress (11.54%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 5,250 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼304.57ms] Passed 4 tests

A check of server-side resources used by Contact Form 7 for MyMail
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.4655.84 ▲28.85
Dashboard /wp-admin3.47 ▲0.0734.99 ▲0.14
Posts /wp-admin/edit.php3.70 ▲0.0636.53 ▼6.83
Add New Post /wp-admin/post-new.php6.94 ▼0.0393.44 ▼1,210.09
Media Library /wp-admin/upload.php3.35 ▲0.0624.07 ▼1.51

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form 7 for MyMail
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.85 ▲0.756.12 ▲0.312.61 ▼0.16
Dashboard /wp-admin2,892 ▲316.12 ▼0.07124.34 ▼20.30151.31 ▼34.37
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0164.46 ▲2.97145.74 ▲3.77
Add New Post /wp-admin/post-new.php1,661 ▼13917.67 ▲0.91398.93 ▼79.29165.73 ▼22.38
Media Library /wp-admin/upload.php1,698 ▲45.53 ▲0.02136.87 ▼36.86214.80 ▲6.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mymail-contact-form-7/mymail-contact-form-7.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: signup form, mymail, newsletter, contact form 7

mymail-contact-form-7/mymail-contact-form-7.php Passed 13 tests

The main PHP file in "Contact Form 7 for MyMail" ver. 0.3 adds more information about the plugin and also serves as the entry point for this plugin
89 characters long description:
Create your Signup Forms with Contact Form 7 and allow users to signup to your newsletter

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected288 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP19877267
JavaScript27014
CSS2007

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin