79% woo-visual-hook-guide

Code Review | Woo Visual Hook Guide

WordPress plugin Woo Visual Hook Guide scored79%from 54 tests.

About plugin

  • Plugin page: woo-visual-hook-g...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.8
  • WordPress version: 6.3.1
  • First release: Jan 9, 2017
  • Latest release: Jun 26, 2017
  • Number of updates: 11
  • Update frequency: every 15.0 days
  • Top authors: ayush.malakar (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /9,427 total downloads

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.96ms] Passed 4 tests

A check of server-side resources used by Woo Visual Hook Guide
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.57 ▼3.60
Dashboard /wp-admin3.31 ▲0.0067.05 ▲8.03
Posts /wp-admin/edit.php3.36 ▲0.0051.68 ▼3.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.16 ▼17.36
Media Library /wp-admin/upload.php3.23 ▲0.0035.81 ▼3.83

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Visual Hook Guide
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▼0.231.64 ▲0.0544.31 ▼4.63
Dashboard /wp-admin2,192 ▲155.51 ▼0.1587.65 ▼0.2539.86 ▼8.98
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0639.11 ▼6.6334.83 ▼6.09
Add New Post /wp-admin/post-new.php1,535 ▲718.21 ▼4.84640.71 ▲17.4965.03 ▲11.97
Media Library /wp-admin/upload.php1,400 ▼04.28 ▲0.11100.23 ▼5.2143.55 ▼10.78

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/woo-visual-hook-guide/woo-visual-hook-guide.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-visual-hook-guide/inc/show-hooks.php:195

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce addons, woo visual hook guide, visual, woocommerce, hook guide

woo-visual-hook-guide/woo-visual-hook-guide.php Passed 13 tests

The main PHP file in "Woo Visual Hook Guide" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
Visual hook guide for WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,058 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP412157532
CSS2616506
JavaScript23320

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity19.00
▷ Minimum class complexity4.00
▷ Maximum class complexity43.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods1352.00%
▷ Public methods2392.00%
▷ Protected methods00.00%
▷ Private methods28.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin