93% biocryptology-login

Code Review | Biocryptology Login

WordPress plugin Biocryptology Login scored 93% from 53 tests.

About plugin

  • Plugin page: biocryptology-login
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.6.0
  • WordPress version: 5.8.1
  • First release: Jun 25, 2018
  • Latest release: Dec 18, 2020
  • Number of updates: 28
  • Update frequency: every 32.5 days
  • Top authors: biocryptology (100%)

Code review

53 tests

User reviews

1 review

Install metrics

20+ active / 1,287 total downloads


Plugin footprint Passed 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.00MB] [CPU: ▼299.76ms] Passed 4 tests

A check of server-side resources used by Biocryptology Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1127.01 ▲3.47
Dashboard /wp-admin3.06 ▲0.0035.03 ▼8.60
Posts /wp-admin/edit.php3.11 ▲0.0042.46 ▲0.73
Add New Post /wp-admin/post-new.php5.42 ▼0.0193.92 ▼1,188.09
Media Library /wp-admin/upload.php3.00 ▼0.0132.32 ▼3.09

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 211 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Biocryptology Login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲9215.89 ▲0.377.85 ▲1.1448.24 ▼0.62
Dashboard /wp-admin2,931 ▲785.89 ▲0.02133.60 ▼23.5692.52 ▼6.80
Posts /wp-admin/edit.php2,706 ▲32.69 ▲0.0162.16 ▼1.3089.68 ▲0.38
Add New Post /wp-admin/post-new.php1,653 ▲16818.87 ▲0.33363.99 ▲9.61113.11 ▲6.79
Media Library /wp-admin/upload.php1,775 ▲35.01 ▼0.00147.73 ▲3.27115.25 ▲5.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 60× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Biocryptology\\GuzzleHttp\\ClientInterface' not found in wp-content/plugins/biocryptology-login/vendor/guzzlehttp/guzzle/src/Client.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Biocryptology\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/biocryptology-login/vendor/guzzlehttp/promises/src/Coroutine.php:43
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/biocryptology-login/vendor/guzzlehttp/psr7/src/Uri.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/biocryptology-login/vendor/guzzlehttp/psr7/src/FnStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Biocryptology\\GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/biocryptology-login/vendor/guzzlehttp/promises/src/TaskQueue.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\OAuth2\\Client\\Provider\\ResourceOwnerInterface' not found in wp-content/plugins/biocryptology-login/vendor/league/oauth2-client/src/Provider/BiocryptologyUser.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Biocryptology\\GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/biocryptology-login/vendor/guzzlehttp/promises/src/EachPromise.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/biocryptology-login/vendor/psr/http-message/src/ServerRequestInterface.php:43
    • > PHP Fatal error
      Uncaught Error: Interface 'Biocryptology\\GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/biocryptology-login/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Biocryptology\\GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/biocryptology-login/vendor/guzzlehttp/psr7/src/ServerRequest.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add an image for screenshot #1 (The Biocryptology plugin for WordPress now appears in the list of installed plugins.)
Please take inspiration from this readme.txt

biocryptology-login/biocryptologyLogin.php 85% from 13 tests

The entry point to "Biocryptology Login" version 1.2.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("biocryptology-login.php" instead of "biocryptologyLogin.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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 detected21,005 lines of code in 184 files:
LanguageFilesBlank linesComment linesLines of code
PO File15660196
Bourne Shell1203

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity11.98
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
▷ Abstract classes22.35%
▷ Concrete classes8397.65%
▷ Final classes89.64%
▷ Static methods798.61%
▷ Public methods66972.88%
▷ Protected methods11212.20%
▷ Private methods13714.92%
▷ Named functions5739.31%
▷ Anonymous functions8860.69%
▷ Global constants00.00%
▷ Class constants96100.00%
▷ Public constants96100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.08MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/assets/img/32px.png19.49KB1.48KB▼ 92.39%
includes/assets/img/clippy.png14.70KB0.87KB▼ 94.11%
includes/assets/img/qr-ios-app.png1.22KB0.49KB▼ 59.81%
includes/assets/img/clippy_18.png15.07KB0.87KB▼ 94.21%
includes/assets/img/16px.png18.19KB0.72KB▼ 96.04%