89% fingerlogin

Code Review | Fingerlogin

WordPress plugin Fingerlogin scored89%from 54 tests.

About plugin

  • Plugin page: fingerlogin
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2
  • WordPress version: 6.3.1
  • First release: Nov 28, 2019
  • Latest release: Jul 6, 2020
  • Number of updates: 6
  • Update frequency: every 37.2 days
  • Top authors: fingerlogin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /794 total downloads


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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.28ms] Passed 4 tests

Analyzing server-side resources used by Fingerlogin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.74 ▼0.60
Dashboard /wp-admin3.31 ▲0.0151.85 ▼1.68
Posts /wp-admin/edit.php3.37 ▲0.0147.98 ▼4.96
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.69 ▼13.88
Media Library /wp-admin/upload.php3.24 ▲0.0137.63 ▲0.17

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fingerlogin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1814.39 ▼0.261.85 ▼0.2544.19 ▼0.51
Dashboard /wp-admin2,198 ▲215.59 ▼0.1191.46 ▼11.3569.81 ▲24.71
Posts /wp-admin/edit.php2,112 ▲122.02 ▲0.0034.24 ▼3.2533.05 ▼4.71
Add New Post /wp-admin/post-new.php1,692 ▲16622.10 ▲4.62744.66 ▲70.7850.13 ▼1.11
Media Library /wp-admin/upload.php1,418 ▲154.22 ▲0.03100.39 ▼2.0069.12 ▲21.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #2, #3 in fingerlogin/assets to your readme.txt
You can take inspiration from this readme.txt

fingerlogin/index.php 92% from 13 tests

The main PHP script in "Fingerlogin" version 2.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fingerlogin.php" instead of "index.php")

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 plugin473 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity17.50
▷ Minimum class complexity2.00
▷ Maximum class complexity33.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo.png44.13KB11.10KB▼ 74.85%
logo28.png12.11KB1.55KB▼ 87.20%
loginbtn.png6.65KB2.98KB▼ 55.13%