84% customize-kirki-variants

Code Review | Customize Kirki Variants

WordPress plugin Customize Kirki Variants scored84%from 54 tests.

About plugin

  • Plugin page: customize-kirki-v...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.2-5.2
  • WordPress version: 6.3.1
  • First release: Apr 20, 2018
  • Latest release: May 18, 2019
  • Number of updates: 6
  • Update frequency: every 65.7 days
  • Top authors: Khoapq (66.67%)tomiup (50%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,868 total downloads

Benchmarks

Plugin footprint 83% from 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.06MB] [CPU: ▼2.01ms] Passed 4 tests

Analyzing server-side resources used by Customize Kirki Variants
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.39 ▼12.65
Dashboard /wp-admin3.36 ▲0.0646.39 ▲0.53
Posts /wp-admin/edit.php3.41 ▲0.0646.86 ▲2.82
Add New Post /wp-admin/post-new.php5.94 ▲0.0689.41 ▲9.82
Media Library /wp-admin/upload.php3.29 ▲0.0637.09 ▲1.27
Customize Kirki Variants /wp-admin/options-general.php?page=ckv_settings3.2530.87

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Customize Kirki Variants: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.37 ▲0.011.68 ▼0.0137.84 ▼4.79
Dashboard /wp-admin2,201 ▲245.48 ▼0.2182.11 ▼9.9238.33 ▼1.51
Posts /wp-admin/edit.php2,106 ▲61.98 ▲0.0339.71 ▲3.3340.32 ▲2.12
Add New Post /wp-admin/post-new.php1,533 ▲723.14 ▼0.30638.60 ▼82.8153.99 ▼16.25
Media Library /wp-admin/upload.php1,403 ▲94.17 ▲0.0897.25 ▼7.4742.68 ▼2.32
Customize Kirki Variants /wp-admin/options-general.php?page=ckv_settings9461.9825.2142.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/customize-kirki-variants/customize-kirki-variants.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: variants, kirki, font weight, font, customize kirki variants

customize-kirki-variants/customize-kirki-variants.php 92% from 13 tests

"Customize Kirki Variants" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected278 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15463228
CSS110050

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.81MB with 0.54MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/step2.png280.04KB91.35KB▼ 67.38%
assets/images/step1.png286.09KB97.36KB▼ 65.97%
assets/images/step3.png267.54KB90.83KB▼ 66.05%