73% qe-fid-id

Code Review | FiD Facial Recognition Admin Login

WordPress plugin FiD Facial Recognition Admin Login scored73%from 54 tests.

About plugin

  • Plugin page: qe-fid-id
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2023
  • Latest release: Nov 24, 2023
  • Number of updates: 12
  • Update frequency: every 26.4 days
  • Top authors: fizzbuzzdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /283 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.29MB] [CPU: ▼16.95ms] Passed 4 tests

A check of server-side resources used by FiD Facial Recognition Admin Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4338.40 ▼4.35
Dashboard /wp-admin3.73 ▲0.3856.20 ▼9.09
Posts /wp-admin/edit.php3.78 ▲0.4255.36 ▲5.97
Add New Post /wp-admin/post-new.php3.58 ▼2.3139.96 ▼56.39
Media Library /wp-admin/upload.php3.59 ▲0.3638.95 ▲2.02

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 9 new options
New WordPress options
qe_fid_plugin_login_guard_state
qe_fid_plugin_nonce
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
qe_fid_id_user_mapping_roster
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

FiD Facial Recognition Admin Login: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲15631.38 ▲17.034.74 ▲3.0539.04 ▼5.28
Dashboard /wp-admin2,204 ▲245.62 ▲0.0194.12 ▼3.7140.70 ▼7.13
Posts /wp-admin/edit.php2,112 ▲91.95 ▼0.0239.12 ▲1.2135.68 ▲1.11
Add New Post /wp-admin/post-new.php1,536 ▲223.63 ▲5.18621.20 ▼18.7148.56 ▼29.91
Media Library /wp-admin/upload.php1,415 ▲154.20 ▲0.0195.69 ▼2.2941.97 ▼2.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/qe-fid-id/uninstall.php+32
    Trying to get property 'user_roster' of non-object
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'QeFid\\ID\\EventPipes\\Pipe' not found in wp-content/plugins/qe-fid-id/includes/EventPipes/DeletePipe.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'QeFid\\ID\\PluginMeta' not found in wp-content/plugins/qe-fid-id/includes/Login.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'QeFid\\ID\\PluginMeta' not found in wp-content/plugins/qe-fid-id/includes/Endpoint/Admin.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'QeFid\\ID\\PluginMeta' not found in wp-content/plugins/qe-fid-id/includes/Endpoint/Gate.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'QeFid\\ID\\PluginMeta' not found in wp-content/plugins/qe-fid-id/includes/Admin.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'QeFid\\ID\\EventPipes\\Pipe' not found in wp-content/plugins/qe-fid-id/includes/EventPipes/LoginPipe.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'QeFid\\ID\\EventPipes\\Pipe' not found in wp-content/plugins/qe-fid-id/includes/EventPipes/RegisterPipe.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'QeFid\\ID\\EventPipes\\Pipe' not found in wp-content/plugins/qe-fid-id/includes/EventPipes/UpdatePipe.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #3 (The Enrollment acceptance terms for enrolling an admin account to FiD protection, requires a 4 digit numeric pin (you decide what it is).), #4 (Managing existing enrolled admins via the actions. You can see the number of admins the license allows in the top left of the table.)
Please take inspiration from this readme.txt

qe-fid-id/qe-fid-plugin.php 62% from 13 tests

Analyzing the main PHP file in "FiD Facial Recognition Admin Login" version 1.2.1
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("qe-fid-id.php" instead of "qe-fid-plugin.php")
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "7.2")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.3" instead of "5.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin12,383 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
CSS21299,269
PHP384731,0722,367
JavaScript2568686
SVG10161

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.30
▷ Minimum class complexity1.00
▷ Maximum class complexity126.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces7
Interfaces1
Traits0
Classes32
▷ Abstract classes00.00%
▷ Concrete classes32100.00%
▷ Final classes39.38%
Methods165
▷ Static methods4929.70%
▷ Public methods14487.27%
▷ Protected methods10.61%
▷ Private methods2012.12%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/fid.png13.68KB7.48KB▼ 45.31%
assets/images/icon.png18.25KB9.82KB▼ 46.20%