90% masks-form-fields

Code Review | Masks Form Fields

WordPress plugin Masks Form Fields scored 90% from 54 tests.

About plugin

  • Plugin page: masks-form-fields
  • Plugin version: 1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.9
  • WordPress version: 6.3.1
  • First release: Nov 8, 2016
  • Latest release: Aug 20, 2023
  • Number of updates: 31
  • Update frequency: every 79.9 days
  • Top authors: ivanpetermann (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

9,000+ active / 36,507 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Masks Form Fields
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.24 ▲1.54
Dashboard /wp-admin3.31 ▲0.0146.09 ▼7.54
Posts /wp-admin/edit.php3.36 ▲0.0147.51 ▼4.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.10 ▼8.57
Media Library /wp-admin/upload.php3.24 ▲0.0138.68 ▲5.89

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Masks Form Fields: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15214.05 ▼0.337.07 ▲5.4138.17 ▼7.11
Dashboard /wp-admin2,206 ▲184.84 ▼0.03107.83 ▼1.8238.35 ▼6.28
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0639.05 ▼2.9033.81 ▼0.84
Add New Post /wp-admin/post-new.php1,534 ▼023.15 ▲0.07671.41 ▲36.2351.75 ▲0.99
Media Library /wp-admin/upload.php1,391 ▲34.25 ▼0.01104.50 ▲3.0446.24 ▲2.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: fields, petermann, form, phone, masks...

masks-form-fields/masks-form-fields.php 92% from 13 tests

This is the main PHP file of "Masks Form Fields" version 1.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected108 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript26262
PHP2223146

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin