10% orion-login-with-sms

Code Review | Orion Login with SMS

WordPress plugin Orion Login with SMS scored 10% from 54 tests.

About plugin

  • Plugin page: orion-login-with-sms
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: Jun 29, 2019
  • Latest release: Dec 25, 2020
  • Number of updates: 9
  • Update frequency: every 60.6 days
  • Top authors: gsayed786 (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

200+ active / 11,523 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/orion-login-with-sms/inc/class-olws-handle-messaging.php+32
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.25ms] Passed 4 tests

A check of server-side resources used by Orion Login with SMS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.26 ▼40.74
Dashboard /wp-admin2.05 ▼1.266.26 ▼43.96
Posts /wp-admin/edit.php2.05 ▼1.317.30 ▼37.84
Add New Post /wp-admin/post-new.php2.05 ▼3.847.55 ▼86.46
Media Library /wp-admin/upload.php2.05 ▼1.185.56 ▼27.51

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Orion Login with SMS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.27 ▼1.311.64 ▼0.2639.95 ▼4.69
Dashboard /wp-admin2,222 ▲334.85 ▼0.10103.04 ▼11.5338.34 ▼6.31
Posts /wp-admin/edit.php2,105 ▲191.99 ▼0.0239.89 ▲5.7936.44 ▲0.54
Add New Post /wp-admin/post-new.php1,547 ▲1423.45 ▲0.21653.17 ▲7.1954.90 ▲0.25
Media Library /wp-admin/upload.php1,404 ▲194.24 ▲0.0897.13 ▼1.2541.85 ▲0.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/orion-login-with-sms/inc/class-olws-handle-messaging.php+32
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/orion-login-with-sms/orion-login-with-sms.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orion-login-with-sms/inc/class-olws-add-settings-page.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orion-login-with-sms/inc/class-olws-enqueue-scripts.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orion-login-with-sms/inc/class-olws-get-user-data.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'OLWS_Authenticate_User' not found in wp-content/plugins/orion-login-with-sms/inc/class-olws-ajax-request-handler.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orion-login-with-sms/inc/class-olws-wp-footer.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/orion-login-with-sms/templates/settings-form-template.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/orion-login-with-sms/inc/class-olws-authenticate-user.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in orion-login-with-sms/assets to your readme.txt
The official readme.txt might help

orion-login-with-sms/orion-login-with-sms.php 85% from 13 tests

The main PHP script in "Orion Login with SMS" version 1.0.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,082 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP173596151,642
CSS3617309
JavaScript32535126
SVG5005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.64
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods47
▷ Static methods00.00%
▷ Public methods4187.23%
▷ Protected methods00.00%
▷ Private methods612.77%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
3 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/features.png144.13KB45.36KB▼ 68.53%
images/signon.png3.88KB2.38KB▼ 38.70%
images/supported-sms-gateways.png64.95KB19.26KB▼ 70.34%