10% hookie

Code Review | Hookie (Visual Hook Reference)

WordPress plugin Hookie (Visual Hook Reference) scored 10% from 54 tests.

About plugin

  • Plugin page: hookie
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2015
  • Latest release: Apr 11, 2016
  • Number of updates: 3
  • Update frequency: every 94.3 days
  • Top authors: mirkolofio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 796 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/hookie/hookie.php+32
    Undefined variable: pagenow

Server metrics [RAM: ▼1.90MB] [CPU: ▼51.76ms] Passed 4 tests

Server-side resources used by Hookie (Visual Hook Reference)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.96 ▼38.29
Dashboard /wp-admin2.10 ▼1.205.56 ▼49.25
Posts /wp-admin/edit.php2.10 ▼1.256.79 ▼41.53
Add New Post /wp-admin/post-new.php2.10 ▼3.788.47 ▼77.98
Media Library /wp-admin/upload.php2.10 ▼1.137.13 ▼25.41

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Hookie (Visual Hook Reference): an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.18 ▼1.251.62 ▼0.4937.61 ▼7.19
Dashboard /wp-admin2,209 ▲215.76 ▲0.78108.49 ▼4.7242.55 ▼5.80
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0140.32 ▲4.7236.25 ▲0.90
Add New Post /wp-admin/post-new.php1,520 ▼1717.64 ▼5.76595.64 ▼79.0652.49 ▼5.32
Media Library /wp-admin/upload.php1,385 ▼64.18 ▲0.0797.59 ▼15.5743.57 ▼8.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/hookie/hookie.php+54
    include(wp-content/plugins/hookie/base-hooks.php): failed to open stream: No such file or directory
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: woocommerce, filter hooks, buddypress, developer, action hooks

hookie/hookie.php 92% from 13 tests

The main file in "Hookie (Visual Hook Reference)" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected128 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14553128

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin