89% georgian-sms-2-step-authorization

Code Review | Georgian SMS 2-step login (authorization)

WordPress plugin Georgian SMS 2-step login (authorization) scored 89% from 54 tests.

About plugin

  • Plugin page: georgian-sms-2-st...
  • Plugin version: 2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7
  • WordPress version: 6.3.1
  • First release: May 18, 2016
  • Latest release: Feb 27, 2017
  • Number of updates: 50
  • Update frequency: every 6.1 days
  • Top authors: tazotodua (98%)selnomeria (4%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 828 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.02MB] [CPU: ▼4.42ms] Passed 4 tests

An overview of server-side resources used by Georgian SMS 2-step login (authorization)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.21 ▼8.99
Dashboard /wp-admin3.32 ▲0.0245.01 ▼2.44
Posts /wp-admin/edit.php3.37 ▲0.0251.56 ▲6.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.22 ▼4.08
Media Library /wp-admin/upload.php3.25 ▲0.0234.86 ▼2.18
GEO 2-step auth /wp-admin/options-general.php?page=gstsa-pg3.2233.33

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Georgian SMS 2-step login (authorization)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲10413.54 ▼1.081.82 ▼0.6935.49 ▼8.71
Dashboard /wp-admin2,216 ▲254.81 ▼1.09111.43 ▲6.6046.49 ▼0.99
Posts /wp-admin/edit.php2,098 ▲62.15 ▲0.1639.98 ▼0.9740.17 ▲4.75
Add New Post /wp-admin/post-new.php1,555 ▲1318.21 ▼0.10624.81 ▼33.1962.52 ▲5.95
Media Library /wp-admin/upload.php1,395 ▲104.21 ▼0.0297.63 ▼4.0948.28 ▲3.55
GEO 2-step auth /wp-admin/options-general.php?page=gstsa-pg9482.0624.3098.82

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

georgian-sms-2-step-authorization/index.php 85% from 13 tests

This is the main PHP file of "Georgian SMS 2-step login (authorization)" version 2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("georgian-sms-2-step-authorization.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 613 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected526 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP115097526

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions37
▷ Named functions3491.89%
▷ Anonymous functions38.11%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin