84% another-show-hooks

Code Review | Another Show Hooks

WordPress plugin Another Show Hooks scored84%from 54 tests.

About plugin

  • Plugin page: another-show-hooks
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Jul 26, 2022
  • Latest release: Oct 8, 2022
  • Number of updates: 7
  • Update frequency: every 10.6 days
  • Top authors: exlac (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /3,760 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by Another Show Hooks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.83 ▲1.40
Dashboard /wp-admin3.32 ▼0.0250.37 ▼14.23
Posts /wp-admin/edit.php3.37 ▲0.0252.84 ▲5.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0498.42 ▲3.00
Media Library /wp-admin/upload.php3.25 ▲0.0240.07 ▲2.79

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Another Show Hooks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,985 ▲19913.60 ▼1.025.26 ▲2.9441.19 ▼2.17
Dashboard /wp-admin2,254 ▲514.90 ▲0.06109.27 ▼6.9944.03 ▼3.17
Posts /wp-admin/edit.php2,133 ▲332.05 ▲0.0539.72 ▲6.1538.57 ▲4.78
Add New Post /wp-admin/post-new.php1,555 ▲2423.19 ▲0.12650.51 ▼41.9557.07 ▲2.50
Media Library /wp-admin/upload.php1,433 ▲334.21 ▼0.07101.70 ▼6.7946.88 ▲2.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/another-show-hooks/another-show-hooks.php

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 is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: hook sequence, debug, hooks, action, filter

another-show-hooks/another-show-hooks.php Passed 13 tests

The principal PHP file in "Another Show Hooks" v. 1.0.2 is loaded by WordPress automatically on each request
96 characters long description:
Debug your code quickly by showing the origin of action and filter hooks sequentially on a page.

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
Everything looks great! No dangerous files found in this plugin991 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS13941588
PHP234132367
JavaScript17136

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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