83% free-sms-verification-for-gravity-forms

Code Review | Free SMS OTP Verification for Gravity Forms By Firebase

WordPress plugin Free SMS OTP Verification for Gravity Forms By Firebase scored83%from 54 tests.

About plugin

  • Plugin page: free-sms-verifica...
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.1
  • WordPress version: 6.3.1
  • First release: Jun 17, 2020
  • Latest release: Mar 10, 2021
  • Number of updates: 49
  • Update frequency: every 5.4 days
  • Top authors: wisersteps (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active /7,754 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼11.20ms] Passed 4 tests

Server-side resources used by Free SMS OTP Verification for Gravity Forms By Firebase
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.20 ▼5.29
Dashboard /wp-admin3.31 ▲0.0047.02 ▼3.80
Posts /wp-admin/edit.php3.36 ▲0.0047.72 ▼7.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.30 ▼28.28
Media Library /wp-admin/upload.php3.23 ▲0.0034.98 ▼1.16

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Free SMS OTP Verification for Gravity Forms By Firebase
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.201.73 ▼0.1039.73 ▼3.95
Dashboard /wp-admin2,206 ▲184.83 ▼0.98109.46 ▲7.9838.47 ▼8.39
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0140.08 ▼5.0433.98 ▼4.00
Add New Post /wp-admin/post-new.php1,514 ▼2017.69 ▼5.81672.58 ▲73.2658.93 ▲2.71
Media Library /wp-admin/upload.php1,391 ▼04.33 ▲0.1395.73 ▼4.0740.37 ▼2.35

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
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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

SRP 50% from 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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Unterminated comment starting line 1 in wp-content/plugins/free-sms-verification-for-gravity-forms/index.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/free-sms-verification-for-gravity-forms/app/partials/class-gf-sms-addon.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: gravity forms firebase, graivty forms otp, gravity forms verification, form sms otp, gravity forms sms

free-sms-verification-for-gravity-forms/gf-free-sms-verification.php 77% from 13 tests

The primary PHP file in "Free SMS OTP Verification for Gravity Forms By Firebase" version 1.0.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("free-sms-verification-for-gravity-forms.php" instead of "gf-free-sms-verification.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected942 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP5120254436
JSON200288
JavaScript514689
CSS38487
PO File1111142

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity13.33
▷ Minimum class complexity9.00
▷ Maximum class complexity16.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2896.55%
▷ Protected methods00.00%
▷ Private methods13.45%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin