78% bitid-authentication

Code Review | Bitid Authentication

WordPress plugin Bitid Authentication scored78%from 54 tests.

About plugin

  • Plugin page: bitid-authentication
  • Plugin version: 1.0.1-20180505...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.5
  • WordPress version: 6.3.1
  • First release: Jul 9, 2014
  • Latest release: May 5, 2018
  • Number of updates: 15
  • Update frequency: every 93.1 days
  • Top authors: puggan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,067 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by Bitid Authentication
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.96 ▼5.67
Dashboard /wp-admin3.31 ▼0.0443.66 ▼11.34
Posts /wp-admin/edit.php3.36 ▲0.0047.41 ▼0.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.00 ▼2.30
Media Library /wp-admin/upload.php3.23 ▲0.0032.90 ▼1.19

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 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 Bitid Authentication
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.72 ▲0.161.74 ▲0.0538.18 ▼6.33
Dashboard /wp-admin2,198 ▲205.62 ▼0.0590.24 ▼18.8742.25 ▲1.55
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0738.88 ▼3.2635.26 ▲1.04
Add New Post /wp-admin/post-new.php1,531 ▲223.23 ▲0.04627.60 ▲26.8252.90 ▼6.18
Media Library /wp-admin/upload.php1,403 ▲64.13 ▼0.0597.71 ▲0.5041.06 ▼1.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bitid-authentication/bitid-authentication.php
    • > /wp-content/plugins/bitid-authentication/bitid/BitID.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'CurveFpInterface' not found in wp-content/plugins/bitid-authentication/bitid/CurveFp.php:31
    • > PHP Fatal error
      Uncaught Error: Interface 'PointInterface' not found in wp-content/plugins/bitid-authentication/bitid/Point.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/bitid-authentication/BitidAuthentication.php:847
    • > PHP Fatal error
      Uncaught Error: Interface 'PublicKeyInterface' not found in wp-content/plugins/bitid-authentication/bitid/PublicKey.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'SignatureInterface' not found in wp-content/plugins/bitid-authentication/bitid/Signature.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: authentication

bitid-authentication/bitid-authentication.php 92% from 13 tests

The main PHP script in "Bitid Authentication" version 1.0.1-20180505... is automatically included on every request by WordPress
The following require your attention:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1.0.1-20180505...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,171 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity27.67
▷ Minimum class complexity1.00
▷ Maximum class complexity233.00
Average method complexity6.20
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
▷ Static methods4537.82%
▷ Public methods11495.80%
▷ Protected methods00.00%
▷ Private methods54.20%
▷ Named functions00.00%
▷ Anonymous functions2100.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin