89% visual-hook-guide-for-kadence

Code Review | Visual Hook Guide for Kadence

WordPress plugin Visual Hook Guide for Kadence scored89%from 54 tests.

About plugin

  • Plugin page: visual-hook-guide...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 25, 2020
  • Latest release: Jul 24, 2023
  • Number of updates: 3
  • Update frequency: every 354.3 days
  • Top authors: srikat (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /5,025 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.01MB] [CPU: ▼8.43ms] Passed 4 tests

An overview of server-side resources used by Visual Hook Guide for Kadence
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.22 ▲1.55
Dashboard /wp-admin3.31 ▼0.0441.95 ▼18.65
Posts /wp-admin/edit.php3.36 ▲0.0048.03 ▼0.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.70 ▼12.59
Media Library /wp-admin/upload.php3.23 ▲0.0032.28 ▼2.17

Server storage [IO: ▲0.02MB] [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, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Visual Hook Guide for Kadence
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.34 ▼0.311.65 ▼0.0237.73 ▼2.94
Dashboard /wp-admin2,198 ▲245.62 ▲0.0295.29 ▲10.7843.11 ▼1.57
Posts /wp-admin/edit.php2,097 ▲152.01 ▼0.0139.09 ▲2.3134.95 ▼1.41
Add New Post /wp-admin/post-new.php1,537 ▲1118.33 ▼4.78610.16 ▼62.3772.75 ▲17.36
Media Library /wp-admin/upload.php1,403 ▼04.17 ▲0.0195.66 ▼0.8441.12 ▲1.04

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: action hooks, kadence, hooks, hook guide, visual hooks

visual-hook-guide-for-kadence/visual-hook-guide-kadence.php 85% from 13 tests

The main PHP file in "Visual Hook Guide for Kadence" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("visual-hook-guide-for-kadence.php" instead of "visual-hook-guide-kadence.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected119 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1173980
JavaScript15520
CSS12019

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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