Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.79ms] Passed 4 tests
Analyzing server-side resources used by Digi-ID Authentication
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.90 ▼5.97 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.78 ▼14.04 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.06 ▼2.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.99 ▼5.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.65 ▲2.88 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Digi-ID Authentication: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.20 ▼1.41 | 4.78 ▲2.55 | 39.71 ▼8.74 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.99 | 106.16 ▼9.80 | 42.26 ▼0.75 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▲0.04 | 40.66 ▲4.22 | 35.51 ▲2.52 |
Add New Post /wp-admin/post-new.php | 1,529 ▼13 | 18.16 ▼0.12 | 627.61 ▼2.08 | 65.39 ▲15.25 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.28 ▲0.01 | 93.92 ▼3.15 | 42.10 ▲0.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- 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
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/digi-id-authentication/classes/DigiIDAddress.php:11
- > PHP Fatal error
Uncaught Error: Interface 'DigiIdAuthentication\\classes\\PublicKeyInterface' not found in wp-content/plugins/digi-id-authentication/classes/PublicKey.php:32
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/digi-id-authentication/classes/MyDigiIdAddresses.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: digibyte, digiid, digi-id, authentication
digi-id-authentication/digiid-wp-authentication.php 92% from 13 tests
The principal PHP file in "Digi-ID Authentication" v. 1.0.15 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("digi-id-authentication.php" instead of "digiid-wp-authentication.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,517 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 594 | 621 | 1,955 |
JavaScript | 2 | 85 | 62 | 338 |
CSS | 1 | 26 | 13 | 169 |
HTML | 6 | 15 | 1 | 55 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 19.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 28 | 21.37% |
▷ Public methods | 125 | 95.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 4.58% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 48.48KB | 13.34KB | ▼ 72.48% |
assets/completed-qr.png | 17.60KB | 6.42KB | ▼ 63.55% |
assets/icon-256x256.png | 34.61KB | 12.76KB | ▼ 63.12% |
assets/show-qr.png | 14.38KB | 5.48KB | ▼ 61.91% |
assets/banner-772x250.png | 38.65KB | 12.97KB | ▼ 66.44% |