100% mobilize-contact-form-7

Code Review | Mobilize Contact Form 7

WordPress plugin Mobilize Contact Form 7 scored 100% from 54 tests.

About plugin

  • Plugin page: mobilize-contact-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7
  • WordPress version: 5.8.1
  • First release: Nov 4, 2020
  • Latest release: Apr 1, 2021
  • Number of updates: 7
  • Update frequency: every 21.1 days
  • Top authors: ptmbg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 143 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼140.82ms] Passed 4 tests

Analyzing server-side resources used by Mobilize Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0634.25 ▼3.01
Dashboard /wp-admin3.13 ▲0.0845.69 ▼1.13
Posts /wp-admin/edit.php3.18 ▲0.0746.73 ▲1.02
Add New Post /wp-admin/post-new.php5.49 ▲0.0590.10 ▼560.17
Media Library /wp-admin/upload.php3.07 ▲0.0738.90 ▲5.13
Mobilize Contact Form 7 /wp-admin/options-general.php?page=ptmbg_mobilize_cf73.0434.32

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
ptmbg_mobilize_cf7_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mobilize Contact Form 7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,733 ▲13715.93 ▲0.198.98 ▲0.0846.29 ▼8.43
Dashboard /wp-admin3,015 ▲785.91 ▼0.26146.68 ▼17.25123.61 ▲19.99
Posts /wp-admin/edit.php2,787 ▲482.71 ▼0.0167.34 ▼0.4897.61 ▲12.79
Add New Post /wp-admin/post-new.php1,523 ▲2318.59 ▼0.03389.89 ▼9.81101.47 ▼6.84
Media Library /wp-admin/upload.php1,856 ▲1085.04 ▲0.04155.14 ▲6.66121.06 ▲4.61
Mobilize Contact Form 7 /wp-admin/options-general.php?page=ptmbg_mobilize_cf71,2822.0559.0163.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: forms, cf7, form, contact form 7

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

"Mobilize Contact Form 7" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("mobilize-contact-form-7.php" instead of "index.php")

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
There were no executable files found in this plugin713 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27917713

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity6.60
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin