83% simply-show-hooks

Code Review | Simply Show Hooks

WordPress plugin Simply Show Hooks scored83%from 54 tests.

About plugin

  • Plugin page: simply-show-hooks
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 31, 2015
  • Latest release: Oct 27, 2016
  • Number of updates: 39
  • Update frequency: every 14.8 days
  • Top authors: stuartobrien (100%)

Code review

54 tests

User reviews

62 reviews

Install metrics

4,000+ active /65,431 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.43ms] Passed 4 tests

A check of server-side resources used by Simply Show Hooks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.43 ▼4.24
Dashboard /wp-admin3.37 ▲0.0751.45 ▼0.30
Posts /wp-admin/edit.php3.48 ▲0.1349.06 ▼2.10
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.31 ▼17.82
Media Library /wp-admin/upload.php3.29 ▲0.0637.67 ▼1.56

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Simply Show Hooks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲7613.27 ▼1.481.83 ▼0.0645.60 ▲3.62
Dashboard /wp-admin2,249 ▲525.85 ▲0.90109.95 ▲5.7546.14 ▲3.72
Posts /wp-admin/edit.php2,125 ▲282.00 ▼0.0337.39 ▲1.1835.75 ▼3.19
Add New Post /wp-admin/post-new.php1,547 ▲223.13 ▼0.13635.32 ▼34.8755.53 ▼5.42
Media Library /wp-admin/upload.php1,422 ▲254.22 ▲0.1097.11 ▼9.8442.05 ▼5.00

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simply-show-hooks/index.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)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Here you can see Simply Show Hooks doing it's thing on any page of your website.) image not found
  • Requires at least: Invalid version format
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can look at the official readme.txt

simply-show-hooks/index.php 92% from 13 tests

Analyzing the main PHP file in "Simply Show Hooks" version 1.2.1
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simply-show-hooks.php" instead of "index.php")

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
No dangerous file extensions were detected686 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS12522353
PHP1120126327
JavaScript1506

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity23.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
2 PNG files occupy 0.23MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png90.05KB39.25KB▼ 56.41%
screenshot-1.png147.80KB60.25KB▼ 59.23%