90% login-with-mobile-number-for-woocommerce

Code Review | Login With Mobile Number for Woocommerce

WordPress plugin Login With Mobile Number for Woocommerce scored90%from 54 tests.

About plugin

  • Plugin page: login-with-mobile...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 10, 2021
  • Latest release: Apr 25, 2023
  • Number of updates: 9
  • Update frequency: every 89.4 days
  • Top authors: sunarc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,549 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.19ms] Passed 4 tests

Server-side resources used by Login With Mobile Number for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.98 ▼6.45
Dashboard /wp-admin3.33 ▲0.0347.20 ▼1.66
Posts /wp-admin/edit.php3.38 ▲0.0348.78 ▲3.79
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.71 ▼0.57
Media Library /wp-admin/upload.php3.26 ▲0.0335.47 ▼0.09

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Login With Mobile Number for Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.53 ▼1.091.66 ▼0.1939.73 ▼2.89
Dashboard /wp-admin2,209 ▲215.85 ▼0.00108.64 ▲1.5043.29 ▼0.23
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0439.48 ▲4.0235.50 ▼1.01
Add New Post /wp-admin/post-new.php1,533 ▲1922.90 ▲5.17596.80 ▼61.3852.94 ▲2.05
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0298.47 ▲3.3842.29 ▲1.19

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: woocommerce

login-with-mobile-number-for-woocommerce/login-with-mobile-number-for-wooocommerce.php 92% from 13 tests

The main PHP file in "Login With Mobile Number for Woocommerce" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("login-with-mobile-number-for-woocommerce.php" instead of "login-with-mobile-number-for-wooocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin151 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13329151

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.76
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%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.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