99% acceptto-multi-factor-authentication

Code Review | Acceptto Multi Factor Authentication

WordPress plugin Acceptto Multi Factor Authentication scored 99% from 54 tests.

About plugin

  • Plugin page: acceptto-multi-fa...
  • Plugin version: 1.9.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.3
  • WordPress version: 5.9.2
  • First release: Feb 28, 2015
  • Latest release: Feb 22, 2019
  • Number of updates: 46
  • Update frequency: every 31.7 days
  • Top authors: Acceptto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,161 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼294.64ms] Passed 4 tests

This is a short check of server-side resources used by Acceptto Multi Factor Authentication
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0252.75 ▲3.79
Dashboard /wp-admin3.44 ▲0.0332.40 ▼0.56
Posts /wp-admin/edit.php3.66 ▲0.0235.10 ▼1.73
Add New Post /wp-admin/post-new.php6.90 ▼0.0790.12 ▼1,179.23
Media Library /wp-admin/upload.php3.32 ▲0.0225.33 ▲2.97

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Acceptto Multi Factor Authentication
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,803 ▲4915.81 ▼0.155.73 ▲0.012.01 ▼0.68
Dashboard /wp-admin2,912 ▲586.16 ▲0.00114.98 ▼16.23150.39 ▼12.89
Posts /wp-admin/edit.php2,708 ▲143.24 ▼0.0161.66 ▼1.68139.98 ▲1.25
Add New Post /wp-admin/post-new.php1,765 ▲10421.46 ▲4.78428.84 ▲1.40149.70 ▲0.98
Media Library /wp-admin/upload.php1,715 ▲145.53 ▼0.02133.06 ▲1.04183.67 ▲1.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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 no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === acceptto-multi-factor-authentication === )
The official readme.txt might help

acceptto-multi-factor-authentication/acceptto_wordpress.php 85% from 13 tests

The primary PHP file in "Acceptto Multi Factor Authentication" version 1.9.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("acceptto-multi-factor-authentication.php" instead of "acceptto_wordpress.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected425 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21844425

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin