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

Benchmarks

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.70ms] 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.0042.27 ▲1.98
Dashboard /wp-admin3.31 ▼0.0444.55 ▼14.58
Posts /wp-admin/edit.php3.36 ▲0.0045.39 ▼0.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.37 ▼6.97
Media Library /wp-admin/upload.php3.23 ▲0.0030.00 ▼0.87

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
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

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 ▲2814.69 ▼0.071.68 ▲0.0539.17 ▼5.60
Dashboard /wp-admin2,195 ▲155.58 ▼0.07103.95 ▲7.4149.71 ▲7.46
Posts /wp-admin/edit.php2,100 ▼32.02 ▼0.0039.25 ▲3.6836.80 ▲1.53
Add New Post /wp-admin/post-new.php1,528 ▼223.01 ▼0.10665.70 ▼11.4164.87 ▲8.31
Media Library /wp-admin/upload.php1,394 ▼34.22 ▲0.0496.60 ▼2.5640.99 ▲0.83

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
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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 'PointInterface' not found in wp-content/plugins/bitid-authentication/bitid/Point.php:36
    • > 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
    • > 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 'CurveFpInterface' not found in wp-content/plugins/bitid-authentication/bitid/CurveFp.php:31

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

Optimizations

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
PHP135465532,171

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
Namespaces1
Interfaces4
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods119
▷ Static methods4537.82%
▷ Public methods11495.80%
▷ Protected methods00.00%
▷ Private methods54.20%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants2
▷ 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