90% storefront-visual-guide

Code Review | Storefront Visual Hook Guide

WordPress plugin Storefront Visual Hook Guide scored90%from 54 tests.

About plugin

  • Plugin page: storefront-visual...
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-5.6
  • WordPress version: 6.3.1
  • First release: Jul 21, 2018
  • Latest release: Feb 19, 2021
  • Number of updates: 24
  • Update frequency: every 39.4 days
  • Top authors: archtkt (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /7,680 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
Install script ran successfully

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

A check of server-side resources used by Storefront Visual Hook Guide
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.71 ▲1.45
Dashboard /wp-admin3.31 ▲0.0059.03 ▲2.62
Posts /wp-admin/edit.php3.36 ▲0.0044.72 ▼13.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.96 ▼22.52
Media Library /wp-admin/upload.php3.23 ▲0.0036.62 ▲0.24

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Storefront Visual Hook Guide
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.19 ▼0.181.93 ▲0.3343.91 ▼0.72
Dashboard /wp-admin2,198 ▲185.64 ▼0.0386.03 ▼1.7442.96 ▼3.85
Posts /wp-admin/edit.php2,097 ▼32.00 ▲0.0235.40 ▼9.3539.40 ▲4.25
Add New Post /wp-admin/post-new.php1,535 ▼218.13 ▼0.25659.42 ▲5.9263.71 ▼6.12
Media Library /wp-admin/upload.php1,397 ▼34.22 ▲0.11102.77 ▼3.5843.36 ▼1.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP 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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: filters, storefront, theme, markup, woocommerce

storefront-visual-guide/storefront-visual-guide.php 92% from 13 tests

"Storefront Visual Hook Guide" version 2.0.1'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:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "2.0")

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
Success! There were no dangerous files found in this plugin1,037 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP595160744
CSS2478236
JavaScript211057

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity16.67
▷ Minimum class complexity4.00
▷ Maximum class complexity33.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods31
▷ Static methods516.13%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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