84% eliot-pro

Code Review | ElIoT Pro Passwordless Login

WordPress plugin ElIoT Pro Passwordless Login scored84%from 54 tests.

About plugin

  • Plugin page: eliot-pro
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 30, 2023
  • Latest release: Mar 30, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: piotrwolski1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /277 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.55MB] [CPU: ▼22.97ms] Passed 4 tests

Analyzing server-side resources used by ElIoT Pro Passwordless Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1234.50 ▼2.93
Dashboard /wp-admin3.45 ▲0.1044.76 ▼18.59
Posts /wp-admin/edit.php3.50 ▲0.1447.84 ▲0.49
Add New Post /wp-admin/post-new.php3.32 ▼2.5738.14 ▼70.85
Media Library /wp-admin/upload.php3.37 ▲0.1439.00 ▲2.68
ElIoT Pro key settings /wp-admin/admin.php?page=eliotpro_settings3.3332.39

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by ElIoT Pro Passwordless Login
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.33 ▼1.051.56 ▼0.1439.01 ▼5.17
Dashboard /wp-admin2,209 ▲544.82 ▼0.88101.29 ▼6.6340.73 ▼1.90
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0636.12 ▼6.5635.52 ▼0.02
Add New Post /wp-admin/post-new.php1,533 ▲1422.97 ▼0.22663.73 ▼7.2254.58 ▼1.21
Media Library /wp-admin/upload.php1,385 ▼34.22 ▼0.01112.48 ▲5.0847.34 ▼0.41
ElIoT Pro key settings /wp-admin/admin.php?page=eliotpro_settings8422.0625.2329.06

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× 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/eliot-pro/inc/eliotpro-login.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eliot-pro/inc/eliotpro-scripts.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eliot-pro/inc/eliotpro-class.php:7

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: cybersecurity, authentication, sonic authentication, passwordless, 2fa

eliot-pro/eliotpro-main.php 92% from 13 tests

This is the main PHP file of "ElIoT Pro Passwordless Login" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("eliot-pro.php" instead of "eliotpro-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin629 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5135181567
JavaScript26148
CSS16514

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity21.67
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity4.26
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1052.63%
▷ Public methods1684.21%
▷ Protected methods00.00%
▷ Private methods315.79%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
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 were not PNG files found in your plugin