78% dko-openid-delegation

Code Review | DKO OpenID Delegate

WordPress plugin DKO OpenID Delegate scored 78% from 54 tests.

About plugin

  • Plugin page: dko-openid-delega...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 5.8.1
  • First release: Jan 24, 2013
  • Latest release: Feb 11, 2013
  • Number of updates: 23
  • Update frequency: every 0.8 days
  • Top authors: davidosomething (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 709 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼141.79ms] Passed 4 tests

A check of server-side resources used by DKO OpenID Delegate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1326.48 ▲5.90
Dashboard /wp-admin3.09 ▲0.0339.83 ▲1.48
Posts /wp-admin/edit.php3.14 ▲0.0335.38 ▼9.20
Add New Post /wp-admin/post-new.php5.45 ▲0.0188.22 ▼557.13
Media Library /wp-admin/upload.php3.03 ▲0.0332.34 ▼2.31
DKO OpenID Settings /wp-admin/options-general.php?page=dkoopenid_settings_page2.9828.13

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for DKO OpenID Delegate
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲10215.84 ▲0.2912.02 ▲2.9249.58 ▼3.25
Dashboard /wp-admin2,978 ▲475.89 ▼0.11141.67 ▼2.84112.09 ▲0.31
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0162.15 ▼2.9286.07 ▼5.98
Add New Post /wp-admin/post-new.php1,503 ▲518.40 ▼0.41350.46 ▼36.85113.02 ▲2.47
Media Library /wp-admin/upload.php1,815 ▲115.04 ▲0.03151.59 ▲4.49117.50 ▲2.64
DKO OpenID Settings /wp-admin/options-general.php?page=dkoopenid_settings_page1,0502.0953.9680.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • dkoopenid_settings

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=dkoopenid_settings_page
    • > Notice in wp-content/plugins/dko-openid-delegation/dkoopenid.php+126
    Undefined index: dkoopenid_

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/dko-openid-delegation/dkoopenid.php:13

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === dko-openid-delegation === )
You can take inspiration from this readme.txt

dko-openid-delegation/dkoopenid.php 92% from 13 tests

The main PHP file in "DKO OpenID Delegate" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dko-openid-delegation.php" instead of "dkoopenid.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin104 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin