84% ma-contact-form-7

Code Review | Master Contact Form 7 - Styler for Elementor

WordPress plugin Master Contact Form 7 - Styler for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: ma-contact-form-7
  • Plugin version: 1.6.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Sep 5, 2019
  • Latest release: Nov 26, 2020
  • Number of updates: 7
  • Update frequency: every 64.2 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,475 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.43MB] [CPU: ▲1.59ms] Passed 4 tests

This is a short check of server-side resources used by Master Contact Form 7 - Styler for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4743.38 ▲3.70
Dashboard /wp-admin3.77 ▲0.4648.14 ▼2.84
Posts /wp-admin/edit.php3.82 ▲0.4651.74 ▲4.79
Add New Post /wp-admin/post-new.php6.29 ▲0.4093.78 ▲0.69
Media Library /wp-admin/upload.php3.63 ▲0.4037.55 ▲5.52

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Master Contact Form 7 - Styler for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8713.30 ▼1.352.08 ▲0.0847.98 ▼3.59
Dashboard /wp-admin2,229 ▲414.86 ▼0.03109.39 ▼5.6941.24 ▼4.53
Posts /wp-admin/edit.php2,108 ▲192.14 ▲0.0840.30 ▲4.4137.11 ▼2.47
Add New Post /wp-admin/post-new.php1,548 ▲2823.43 ▲0.39674.72 ▲17.9255.93 ▲6.40
Media Library /wp-admin/upload.php1,411 ▲204.22 ▲0.04101.34 ▼1.7343.45 ▲0.82

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/ma-contact-form-7/classes/class-tgm-plugin-activation.php:2016

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 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Input Focus Variations Contact Form 7 Style), #2 (Dark Input Variations Contact Form 7 Style), #3 (Rounded Input and Gradient Submit Contact Form 7 Style), #4 (Line bar Inputs and Icons with Submit Button Contact Form 7 Style), #5 (Rounded Inputs with Submit Background Color and Gradient Background Color Contact Form 7 Style)
The official readme.txt might help

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

The principal PHP file in "Master Contact Form 7 - Styler for Elementor" v. 1.6.0 is loaded by WordPress automatically on each request
74 characters long description:
Easily Customizable Contact Form 7 Style for Elementor Page Builder Plugin

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
Everything looks great! No dangerous files found in this plugin2,961 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP67721,6602,710
CSS1145251

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity36.20
▷ Minimum class complexity1.00
▷ Maximum class complexity195.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods132
▷ Static methods96.82%
▷ Public methods10680.30%
▷ Protected methods2619.70%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants850.00%
▷ Class constants850.00%
▷ Public constants8100.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
5 PNG files occupy 0.21MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png38.19KB7.63KB▼ 80.03%
screenshot-2.png42.52KB7.90KB▼ 81.41%
screenshot-5.png51.77KB10.92KB▼ 78.91%
screenshot-4.png40.63KB7.54KB▼ 81.45%
screenshot-3.png45.40KB12.83KB▼ 71.74%