84% genesis-visual-hook-guide

Code Review | Genesis Visual Hook Guide

WordPress plugin Genesis Visual Hook Guide scored84%from 54 tests.

About plugin

  • Plugin page: genesis-visual-ho...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.7.3
  • WordPress version: 6.3.1
  • First release: Nov 6, 2011
  • Latest release: Apr 9, 2017
  • Number of updates: 21
  • Update frequency: every 94.4 days
  • Top authors: cochran (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

1,000+ active /140,590 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.44ms] Passed 4 tests

This is a short check of server-side resources used by Genesis Visual Hook Guide
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.76 ▼10.45
Dashboard /wp-admin3.31 ▼0.0447.12 ▼12.68
Posts /wp-admin/edit.php3.36 ▲0.0044.98 ▼1.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.45 ▼20.89
Media Library /wp-admin/upload.php3.23 ▲0.0038.33 ▲6.34

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 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

An overview of browser requirements for Genesis Visual Hook Guide
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.73 ▲0.341.77 ▲0.0144.55 ▲0.50
Dashboard /wp-admin2,209 ▲185.84 ▼0.01104.08 ▼3.3144.43 ▼3.15
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0334.71 ▼2.3033.87 ▲1.23
Add New Post /wp-admin/post-new.php1,535 ▲1323.13 ▼0.20670.89 ▲81.9560.64 ▲9.82
Media Library /wp-admin/upload.php1,388 ▲64.20 ▼0.0093.26 ▼3.5441.62 ▼1.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/genesis-visual-hook-guide/genesis-visual-hook-guide.php:15

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: genesiswp, hooks, guide, genesis, filters...

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

The main file in "Genesis Visual Hook Guide" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
113 characters long description:
Find Genesis hooks (action and filter hooks) quick and easily by seeing their actual locations inside your theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected357 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15714219
CSS2470138

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected