Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲3.61MB] [CPU: ▲6.29ms] Passed 4 tests
A check of server-side resources used by Kirki Customizer Framework
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.05 ▲3.59 | 59.80 ▲16.78 |
Dashboard /wp-admin | 6.97 ▲3.62 | 63.08 ▼4.23 |
Posts /wp-admin/edit.php | 6.97 ▲3.61 | 64.04 ▲9.50 |
Add New Post /wp-admin/post-new.php | 9.50 ▲3.61 | 101.67 ▲4.20 |
Media Library /wp-admin/upload.php | 6.97 ▲3.74 | 56.26 ▲15.68 |
Kirki /wp-admin/options-general.php?page=kirki_settings | 6.97 | 52.52 |
Server storage [IO: ▲3.52MB] [DB: ▲0.24MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 561 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Kirki Customizer Framework
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲128 | 13.20 ▼1.09 | 1.84 ▼0.21 | 32.14 ▼11.17 |
Dashboard /wp-admin | 2,239 ▲51 | 4.89 ▼1.00 | 110.86 ▼9.73 | 79.52 ▲36.57 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.17 ▲0.12 | 39.21 ▲4.78 | 36.88 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,573 ▲40 | 23.41 ▲0.10 | 786.63 ▲177.37 | 53.80 ▼1.07 |
Media Library /wp-admin/upload.php | 1,436 ▲48 | 4.13 ▼0.12 | 101.93 ▼8.49 | 91.67 ▲43.13 |
Kirki /wp-admin/options-general.php?page=kirki_settings | 922 | 1.85 | 29.40 | 40.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.24MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/kirki/kirki-packages/settings/templates/metaboxes/clear-font-cache.php
- > /wp-content/plugins/kirki/kirki-packages/settings/templates/metaboxes/documentation.php
- > /wp-content/plugins/kirki/kirki-packages/settings/templates/metaboxes/installation-progress.php
- > /wp-content/plugins/kirki/kirki-packages/settings/templates/settings-template.php
- 85× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Module\\CSS\\Output' not found in wp-content/plugins/kirki/kirki-packages/field-typography/src/Field/CSS/Typography.php:19
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Field\\Select' not found in wp-content/plugins/kirki/kirki-packages/control-select/src/Field/Preset.php:18
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Field' not found in wp-content/plugins/kirki/kirki-packages/control-dashicons/src/Field/Dashicons.php:18
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Field\\ReactSelect' not found in wp-content/plugins/kirki/kirki-packages/control-select/src/Field/Select.php:18
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Control\\Base' not found in wp-content/plugins/kirki/pro-src/packages/kirki-pro-margin-padding/src/Control/Margin.php:21
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Field' not found in wp-content/plugins/kirki/kirki-packages/field-dimensions/src/Dimensions.php:22
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Field' not found in wp-content/plugins/kirki/pro-src/packages/kirki-pro-headline-divider/src/Field/Divider.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/kirki/kirki-packages/control-repeater/src/Settings/Repeater.php:16
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Control\\Base' not found in wp-content/plugins/kirki/kirki-packages/control-repeater/src/Control/Repeater.php:20
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Field' not found in wp-content/plugins/kirki/kirki-packages/control-multicheck/src/Field/Multicheck.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: customizer, gutenberg, toolkit, options framework, theme...
kirki/kirki.php Passed 13 tests
The principal PHP file in "Kirki Customizer Framework" v. 5.0.0 is loaded by WordPress automatically on each request
43 characters long description:
The Ultimate WordPress Customizer Framework
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
Success! There were no dangerous files found in this plugin34,969 lines of code in 389 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 115 | 2,200 | 2,905 | 12,186 |
PHP | 197 | 3,557 | 10,243 | 11,013 |
JSON | 17 | 1 | 0 | 8,693 |
Sass | 28 | 396 | 38 | 2,255 |
TypeScript | 5 | 84 | 5 | 414 |
CSS | 26 | 89 | 48 | 381 |
YAML | 1 | 7 | 0 | 27 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 13.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 175 | |
▷ Abstract classes | 1 | 0.57% |
▷ Concrete classes | 174 | 99.43% |
▷ Final classes | 9 | 5.17% |
Methods | 815 | |
▷ Static methods | 218 | 26.75% |
▷ Public methods | 663 | 81.35% |
▷ Protected methods | 103 | 12.64% |
▷ Private methods | 49 | 6.01% |
Functions | 61 | |
▷ Named functions | 15 | 24.59% |
▷ Anonymous functions | 46 | 75.41% |
Constants | 17 | |
▷ Global constants | 17 | 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
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/3cl.png | 0.91KB | 0.32KB | ▼ 64.26% |
assets/images/3cm.png | 0.91KB | 0.25KB | ▼ 72.00% |
assets/images/2cl.png | 0.85KB | 0.27KB | ▼ 68.48% |
assets/images/1c.png | 0.77KB | 0.15KB | ▼ 80.03% |
assets/images/jquery.fs.stepper-arrows.png | 0.30KB | 0.18KB | ▼ 40.52% |