83% wp-okta-authentication

Code Review | Okta Authentication

WordPress plugin Okta Authentication scored83%from 54 tests.

About plugin

  • Plugin page: wp-okta-authentic...
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Aug 16, 2018
  • Latest release: Nov 26, 2018
  • Number of updates: 8
  • Update frequency: every 17.3 days
  • Top authors: zillowgroup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,682 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.61MB] [CPU: ▼13.22ms] Passed 4 tests

An overview of server-side resources used by Okta Authentication
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.38 ▲1.27
Dashboard /wp-admin3.37 ▲0.0647.64 ▼2.47
Posts /wp-admin/edit.php3.42 ▲0.0652.18 ▲2.54
Add New Post /wp-admin/post-new.php3.24 ▼2.6438.41 ▼54.21
Media Library /wp-admin/upload.php3.29 ▲0.0636.98 ▲2.62

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Okta Authentication
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲8213.63 ▼0.751.70 ▼0.1340.04 ▲0.49
Dashboard /wp-admin2,219 ▲315.84 ▲0.9998.72 ▼6.8139.65 ▼5.74
Posts /wp-admin/edit.php2,105 ▲132.02 ▲0.0240.96 ▲3.8334.44 ▼1.62
Add New Post /wp-admin/post-new.php1,535 ▲2223.49 ▲5.91591.10 ▼24.5753.74 ▲3.53
Media Library /wp-admin/upload.php1,404 ▲134.27 ▲0.0995.44 ▼1.4541.01 ▼3.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-okta-authentication/okta.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
2 plugin tags: okta, authentication

wp-okta-authentication/okta.php 77% from 13 tests

The principal PHP file in "Okta Authentication" v. 0.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-okta-authentication.php" instead of "okta.php")

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
Good job! No executable or dangerous file extensions detected296 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1116118296

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin