90% form-masks-for-elementor

Code Review | Form Masks for Elementor

WordPress plugin Form Masks for Elementor scored90%from 54 tests.

About plugin

  • Plugin page: form-masks-for-el...
  • Plugin version: 1.6.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2
  • WordPress version: 6.3.1
  • First release: Feb 13, 2020
  • Latest release: Apr 5, 2023
  • Number of updates: 32
  • Update frequency: every 35.8 days
  • Top authors: evcode (93.75%)Otto42 (9.38%)

Code review

54 tests

User reviews

14 reviews

Install metrics

10,000+ active /43,644 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Form Masks for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.73 ▼0.84
Dashboard /wp-admin3.33 ▼0.0247.79 ▼16.89
Posts /wp-admin/edit.php3.38 ▲0.0249.68 ▲1.67
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.91 ▼6.43
Media Library /wp-admin/upload.php3.25 ▲0.0235.92 ▲2.21

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Form Masks for Elementor: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.23 ▼1.531.62 ▲0.0538.86 ▼0.38
Dashboard /wp-admin2,212 ▲205.79 ▲0.6497.90 ▼15.5941.71 ▲0.36
Posts /wp-admin/edit.php2,097 ▲82.01 ▼0.0240.48 ▲5.4036.25 ▲4.15
Add New Post /wp-admin/post-new.php1,542 ▲2823.06 ▲5.36654.83 ▲14.4251.40 ▼12.11
Media Library /wp-admin/upload.php1,397 ▲64.23 ▲0.03101.70 ▲7.9442.52 ▲0.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: mask, form, formulario, elementor, form mask...

form-masks-for-elementor/form-masks-for-elementor.php 92% from 13 tests

The entry point to "Form Masks for Elementor" version 1.6.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)

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 plugin233 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP474191174
JavaScript21259

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.50
▷ Minimum class complexity4.00
▷ Maximum class complexity9.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods12
▷ Static methods18.33%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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 were not PNG files found in your plugin