79% logintap-api

Code Review | Logintap API

WordPress plugin Logintap API scored 79% from 54 tests.

About plugin

  • Plugin page: logintap-api
  • Plugin version: 1.0.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.18-5.8
  • WordPress version: 6.3.1
  • First release: Nov 11, 2020
  • Latest release: Aug 4, 2021
  • Number of updates: 6
  • Update frequency: every 44.3 days
  • Top authors: pavelsvinarev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 378 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.51MB] [CPU: ▼16.07ms] Passed 4 tests

This is a short check of server-side resources used by Logintap API
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3541.59 ▲5.23
Dashboard /wp-admin3.46 ▲0.1548.72 ▼0.33
Posts /wp-admin/edit.php3.57 ▲0.2150.00 ▼1.19
Add New Post /wp-admin/post-new.php3.33 ▼2.5539.86 ▼64.84
Media Library /wp-admin/upload.php3.38 ▲0.1537.67 ▲2.10
Logintap API /wp-admin/options-general.php?page=logintap_api3.3531.76

Server storage [IO: ▲0.04MB] [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: 16 new files
Database: 1 new table, 10 new options
New tables
wp_lt_auth_sessions
New WordPress options
widget_recent-comments
logintap_api_password
db_upgraded
logintap_api_tenant
logintap_api_login
theysaidso_admin_options
can_compress_scripts
logintap_api_appuuid
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Logintap API
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,717 ▼187.93 ▼6.621.87 ▲0.0344.58 ▲6.38
Dashboard /wp-admin2,217 ▲295.90 ▼0.01103.52 ▼1.1445.79 ▲6.69
Posts /wp-admin/edit.php2,097 ▲52.00 ▼0.0140.69 ▲0.3335.40 ▲1.26
Add New Post /wp-admin/post-new.php1,544 ▲1118.32 ▼4.96599.22 ▼28.6061.60 ▲4.21
Media Library /wp-admin/upload.php1,396 ▲144.24 ▼0.0294.83 ▼2.2440.67 ▼2.31
Logintap API /wp-admin/options-general.php?page=logintap_api8222.0323.3224.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/logintap-api/inc/settings-page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/logintap-api/logintap-api.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=logintap_api
    • > Network (severe)
    https://-admin.logintap.com/front/dist/qrw/mbst-qrw.js?t=1696335998&ver=6.3.1 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration Passed 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
10 plugin tags: 2fa, authentication, webauthn, second factor, faceid auth...

logintap-api/logintap-api.php Passed 13 tests

The entry point to "Logintap API" version 1.0.0.3 is a PHP file that has certain tags in its header comment area
24 characters long description:
Logintap API integration

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
There were no executable files found in this plugin1,075 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP9183233802
CSS292167
JavaScript219071
HTML23035

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions42
▷ Named functions3685.71%
▷ Anonymous functions614.29%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin