89% brisko-hooks-display

Code Review | Brisko Hooks Display

WordPress plugin Brisko Hooks Display scored 89% from 54 tests.

About plugin

  • Plugin page: brisko-hooks-display
  • Plugin version: 1.0.17
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.7
  • WordPress version: 6.3.1
  • First release: Jul 11, 2020
  • Latest release: Mar 11, 2021
  • Number of updates: 10
  • Update frequency: every 24.3 days
  • Top authors: icelayer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 568 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: ▼3.49ms] Passed 4 tests

An overview of server-side resources used by Brisko Hooks Display
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0152.69 ▲11.55
Dashboard /wp-admin3.32 ▲0.0151.50 ▲1.11
Posts /wp-admin/edit.php3.37 ▲0.0148.60 ▼2.86
Add New Post /wp-admin/post-new.php5.90 ▲0.01103.48 ▼8.02
Media Library /wp-admin/upload.php3.24 ▲0.0134.65 ▼4.20

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Brisko Hooks Display
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.65 ▼0.732.38 ▲0.6549.29 ▲5.71
Dashboard /wp-admin2,206 ▲214.85 ▼1.10131.74 ▼1.0752.94 ▲9.53
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0435.69 ▼0.3636.87 ▲3.29
Add New Post /wp-admin/post-new.php1,392 ▼14118.40 ▼4.99642.22 ▼69.1457.95 ▲8.42
Media Library /wp-admin/upload.php1,385 ▼34.13 ▼0.0696.95 ▼7.6445.48 ▲0.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Visual display) image required
Please take inspiration from this readme.txt

brisko-hooks-display/brisko-hooks.php 69% from 13 tests

"Brisko Hooks Display" version 1.0.17's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.7" instead of "3.4")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("brisko-hooks-display.php" instead of "brisko-hooks.php")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin72 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2186570
HTML2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods4
▷ Static methods4100.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin