Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 26.48 ▲5.90 |
Dashboard /wp-admin | 3.09 ▲0.03 | 39.83 ▲1.48 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 35.38 ▼9.20 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 88.22 ▼557.13 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 32.34 ▼2.31 |
DKO OpenID Settings /wp-admin/options-general.php?page=dkoopenid_settings_page | 2.98 | 28.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 |
---|
dkoopenid_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DKO OpenID Delegate
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲102 | 15.84 ▲0.29 | 12.02 ▲2.92 | 49.58 ▼3.25 |
Dashboard /wp-admin | 2,978 ▲47 | 5.89 ▼0.11 | 141.67 ▼2.84 | 112.09 ▲0.31 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 62.15 ▼2.92 | 86.07 ▼5.98 |
Add New Post /wp-admin/post-new.php | 1,503 ▲5 | 18.40 ▼0.41 | 350.46 ▼36.85 | 113.02 ▲2.47 |
Media Library /wp-admin/upload.php | 1,815 ▲11 | 5.04 ▲0.03 | 151.59 ▲4.49 | 117.50 ▲2.64 |
DKO OpenID Settings /wp-admin/options-general.php?page=dkoopenid_settings_page | 1,050 | 2.09 | 53.96 | 80.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
- > PHP Fatal error
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 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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 14 | 104 |
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 code | 0.14 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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