10% loginbycall

Code Review | LoginByCall

WordPress plugin LoginByCall scored 10% from 54 tests.

About plugin

  • Plugin page: loginbycall
  • Plugin version: 4.12
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Jan 28, 2014
  • Latest release: Aug 3, 2018
  • Number of updates: 95
  • Update frequency: every 17.4 days
  • Top authors: 0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,614 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/loginbycall/function.php+22
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known

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

Analyzing server-side resources used by LoginByCall
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.67 ▲2.72
Dashboard /wp-admin3.34 ▲0.0348.01 ▲2.90
Posts /wp-admin/edit.php3.39 ▲0.0348.54 ▲4.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.70 ▲2.36
Media Library /wp-admin/upload.php3.26 ▲0.0334.14 ▼3.03

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
loginbycall_credential_active
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for LoginByCall
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲5314.41 ▲1.141.88 ▲0.2343.53 ▲2.34
Dashboard /wp-admin2,224 ▲215.88 ▲0.02100.64 ▲4.5972.67 ▲34.09
Posts /wp-admin/edit.php2,122 ▲332.01 ▼0.0239.48 ▲3.8034.21 ▲1.64
Add New Post /wp-admin/post-new.php1,551 ▲1818.21 ▼5.36622.61 ▼23.5861.30 ▲0.32
Media Library /wp-admin/upload.php1,418 ▲274.14 ▼0.0796.57 ▼6.5078.77 ▲33.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loginbycall/loginbycall.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function loginbycall_create_link() in wp-content/plugins/loginbycall/template/form-state.tpl.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/loginbycall/template/delete-info.tpl.php:4
    • > PHP Notice
      Undefined index: prev_url in wp-content/plugins/loginbycall/template/page-loginbycall-redirect-uri.php on line 30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function loginbycall_oauth_render() in wp-content/plugins/loginbycall/template/page-loginbycall-redirect-uri.php:40
    • > PHP Notice
      Undefined index: error_description in wp-content/plugins/loginbycall/template/page-loginbycall-redirect-uri.php on line 21

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
Please take inspiration from this readme.txt

loginbycall/loginbycall.php Passed 13 tests

The main PHP script in "LoginByCall" version 4.12 is automatically included on every request by WordPress
60 characters long description:
LoginByCall - easy sign-in & sign-up with call on your phone

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin26,939 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
SVG31325,427
PHP5167931,150
JavaScript1283151
PO File1506113
CSS18093
Markdown1205

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
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%
Functions54
▷ Named functions54100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/close-icon.png1.10KB0.19KB▼ 82.92%