78% authentiq

Code Review | Authentiq

WordPress plugin Authentiq scored 78% from 54 tests.

About plugin

  • Plugin page: authentiq
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.4
  • WordPress version: 6.3.1
  • First release: Oct 29, 2017
  • Latest release: Oct 17, 2019
  • Number of updates: 35
  • Update frequency: every 20.5 days
  • Top authors: authentiq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,813 total downloads

Benchmarks

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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.40ms] Passed 4 tests

A check of server-side resources used by Authentiq
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.24 ▼4.57
Dashboard /wp-admin3.38 ▲0.0744.44 ▼6.35
Posts /wp-admin/edit.php3.49 ▲0.1347.14 ▲1.95
Add New Post /wp-admin/post-new.php5.96 ▲0.0794.43 ▲2.25
Media Library /wp-admin/upload.php3.30 ▲0.0734.15 ▼4.61
Authentiq /wp-admin/options-general.php?page=authentiq3.4932.77

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_wp_authentiq_widget
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Authentiq
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.75 ▼0.631.73 ▼0.2341.73 ▼3.91
Dashboard /wp-admin2,210 ▲224.85 ▼0.03108.30 ▼6.7342.54 ▼2.06
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0139.38 ▲2.3334.64 ▲0.91
Add New Post /wp-admin/post-new.php1,536 ▲1722.92 ▼0.39584.56 ▼103.8151.19 ▼7.68
Media Library /wp-admin/upload.php1,392 ▲74.18 ▼0.0596.66 ▼2.3143.35 ▼1.57
Authentiq /wp-admin/options-general.php?page=authentiq1,2922.0723.9629.94

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_wp_authentiq_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/authentiq/admin/partials/authentiq-user-profile.php
  • 24× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: button_color_scheme in wp-content/plugins/authentiq/public/partials/logged-in-state.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/authentiq/includes/personal-data-handler.php:7
    • > PHP Warning
      require(AUTHENTIQ_PLUGIN_DIRpublic/partials/authentiq-button.php): failed to open stream: No such file or directory in wp-content/plugins/authentiq/public/partials/woocommerce-checkout.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/authentiq/public/partials/logged-in-state.php:3
    • > PHP Warning
      Use of undefined constant AUTHENTIQ_PLUGIN_DIR - assumed 'AUTHENTIQ_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/authentiq/public/partials/woocommerce-checkout.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/authentiq/public/partials/authentiq-button.php:2
    • > PHP Notice
      Undefined variable: authorize_url in wp-content/plugins/authentiq/public/partials/authentiq-button.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/authentiq/includes/class-authentiq-widget.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_query_arg() in wp-content/plugins/authentiq/public/partials/render-back-to-authentiq.php:2
    • > PHP Warning
      require(AUTHENTIQ_PLUGIN_DIRpublic/partials/authentiq-button.php): failed to open stream: No such file or directory in wp-content/plugins/authentiq/public/partials/woocommerce-account.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 require attention:
  • Tags: Please delete some tags, you are using 38 tag instead of maximum 10
The official readme.txt is a good inspiration

authentiq/authentiq.php Passed 13 tests

The main file in "Authentiq" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
114 characters long description:
Sign in (and sign up) to WordPress sites using the Authentiq ID app. Strong authentication, without the passwords.

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 plugin3,066 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP337081,0262,469
PO File1108143258
Sass23228156
CSS452105
JSON10041
JavaScript398037

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity16.86
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods118
▷ Static methods4134.75%
▷ Public methods10387.29%
▷ Protected methods21.69%
▷ Private methods1311.02%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants1386.67%
▷ Class constants213.33%
▷ Public constants2100.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
No PNG files were detected