89% acceptto-multi-factor-authentication

Code Review | Acceptto Multi Factor Authentication

WordPress plugin Acceptto Multi Factor Authentication scored89%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: 6.3.1
  • 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,387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.12ms] Passed 4 tests

A check of server-side resources used by Acceptto Multi Factor Authentication
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.56 ▼6.37
Dashboard /wp-admin3.39 ▲0.0447.44 ▼14.48
Posts /wp-admin/edit.php3.50 ▲0.1549.86 ▲0.65
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.63 ▼4.29
Media Library /wp-admin/upload.php3.31 ▲0.0836.52 ▲1.93

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Acceptto Multi Factor Authentication
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲5914.22 ▼0.132.05 ▲0.0946.28 ▼0.05
Dashboard /wp-admin2,211 ▲305.62 ▼0.0590.99 ▼23.8243.24 ▲0.74
Posts /wp-admin/edit.php2,116 ▲161.98 ▲0.0339.31 ▲5.3336.57 ▼1.31
Add New Post /wp-admin/post-new.php1,549 ▲2318.39 ▼5.12717.24 ▲3.6873.01 ▲12.74
Media Library /wp-admin/upload.php1,416 ▲134.17 ▼0.1396.32 ▼10.7142.00 ▼8.45

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 did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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 === )
Please take inspiration from this readme.txt

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

The entry point to "Acceptto Multi Factor Authentication" version 1.9.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("acceptto-multi-factor-authentication.php" instead of "acceptto_wordpress.php")
  • 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 | 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 cyclomatic complexity and code structure
No cyclomatic complexity issues were 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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin