93% wolkenkraftcom-krumo

Code Review | wolkenkraft.com Krumo Debug Plugin

WordPress plugin wolkenkraft.com Krumo Debug Plugin scored 93% from 54 tests.

About plugin

  • Plugin page: wolkenkraftcom-krumo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.8
  • WordPress version: 5.8.1
  • First release: Sep 15, 2013
  • Latest release: Dec 13, 2013
  • Number of updates: 13
  • Update frequency: every 6.9 days
  • Top authors: wolkenkraft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 914 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼140.40ms] Passed 4 tests

A check of server-side resources used by wolkenkraft.com Krumo Debug Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.10 ▲13.93
Dashboard /wp-admin3.06 ▲0.0147.43 ▲1.87
Posts /wp-admin/edit.php3.11 ▲0.0044.63 ▼1.72
Add New Post /wp-admin/post-new.php5.42 ▼0.0290.57 ▼556.20
Media Library /wp-admin/upload.php3.00 ▲0.0032.35 ▼5.54

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by wolkenkraft.com Krumo Debug Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,748 ▲15215.82 ▲0.1810.40 ▲0.6350.05 ▲5.57
Dashboard /wp-admin2,973 ▲426.03 ▼0.01136.39 ▼10.55106.52 ▼8.49
Posts /wp-admin/edit.php2,768 ▲322.72 ▼0.0063.15 ▲0.3789.63 ▼1.56
Add New Post /wp-admin/post-new.php1,503 ▼16718.44 ▼0.71276.99 ▼89.37117.13 ▲9.98
Media Library /wp-admin/upload.php1,835 ▲255.02 ▼0.07143.62 ▼1.23104.03 ▼14.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wolkenkraftcom-krumo/wolkenkraft-krumo.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Example debug output for krumo($_SERVER);), #2 (Example debug output for a DateTime Object)
  • Plugin Name: Please specify the plugin name on the first line ( === wolkenkraftcom-krumo === )
The official readme.txt might help

wolkenkraftcom-krumo/wolkenkraft-krumo.php 85% from 13 tests

Analyzing the main PHP file in "wolkenkraft.com Krumo Debug Plugin" version 1.0
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 303 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("wolkenkraftcom-krumo.php" instead of "wolkenkraft-krumo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,313 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS58465648
PHP2215531628
JavaScript1155033
INI12144

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity79.00
▷ Minimum class complexity79.00
▷ Maximum class complexity79.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods39
▷ Static methods39100.00%
▷ Public methods2358.97%
▷ Protected methods00.00%
▷ Private methods1641.03%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
4 PNG files occupy 0.38MB with 0.22MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png67.56KB23.39KB▼ 65.38%
assets/screenshot-2.png10.66KB5.79KB▼ 45.66%
assets/banner-1544x500.png216.62KB83.63KB▼ 61.39%
assets/banner-772x250.png92.69KB36.77KB▼ 60.33%