10% a-broad-hint

Code Review | A Broad Hint

WordPress plugin A Broad Hint scored 10% from 54 tests.

About plugin

  • Plugin page: a-broad-hint
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Mar 6, 2011
  • Latest release: Aug 22, 2015
  • Number of updates: 24
  • Update frequency: every 67.9 days
  • Top authors: Annubis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,296 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/a-broad-hint/a_broad_hint.php+18
    Undefined variable: HTTP_POST_VARS

Server metrics [RAM: ▼2.48MB] [CPU: ▼346.98ms] Passed 4 tests

This is a short check of server-side resources used by A Broad Hint
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.89 ▼1.6320.79 ▼33.39
Dashboard /wp-admin1.91 ▼1.503.47 ▼46.40
Posts /wp-admin/edit.php1.91 ▼1.734.13 ▼39.77
Add New Post /wp-admin/post-new.php1.91 ▼5.065.80 ▼1,268.37
Media Library /wp-admin/upload.php1.91 ▼1.393.60 ▼26.15
A Broad Hint /wp-admin/options-general.php?page=a-broad-hint/a_broad_hint.php1.913.45

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 3 new options
New WordPress options
abh_opti
abh_field
abh_status

Browser metrics Passed 4 tests

A check of browser resources used by A Broad Hint
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,799 ▲4516.19 ▲0.506.03 ▲0.032.29 ▼0.59
Dashboard /wp-admin2,897 ▲366.14 ▼0.18127.50 ▼5.62152.92 ▼9.01
Posts /wp-admin/edit.php2,696 ▲23.24 ▼0.0063.86 ▼20.91138.61 ▼6.05
Add New Post /wp-admin/post-new.php1,671 ▼4020.47 ▼1.14376.51 ▼64.86215.94 ▲54.00
Media Library /wp-admin/upload.php1,700 ▲25.45 ▼0.06143.80 ▲2.81192.01 ▲7.06
A Broad Hint /wp-admin/options-general.php?page=a-broad-hint/a_broad_hint.php1,2633.3999.03134.19

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
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/a-broad-hint/a_broad_hint.php+18
    Undefined variable: HTTP_POST_VARS

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=a-broad-hint/a_broad_hint.php
    • > Notice in wp-content/plugins/a-broad-hint/a_broad_hint.php+36
    Undefined variable: HTTP_POST_VARS
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=a-broad-hint/a_broad_hint.php
    • > Notice in wp-content/plugins/a-broad-hint/a_broad_hint.php+36
    Trying to access array offset on value of type null
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=a-broad-hint/a_broad_hint.php
    • > User deprecated in wp-includes/functions.php+5600
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=a-broad-hint/a_broad_hint.php
    • > Notice in wp-content/plugins/a-broad-hint/a_broad_hint.php+118
    Undefined variable: location

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 fix the following items
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/a-broad-hint/a_broad_hint.php:79
    • > PHP Notice
      Undefined variable: HTTP_POST_VARS in wp-content/plugins/a-broad-hint/a_broad_hint.php on line 18
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/a-broad-hint/a_broad_hint.php on line 36
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/a-broad-hint/a_broad_hint.php on line 32
    • > PHP Notice
      Undefined variable: HTTP_POST_VARS in wp-content/plugins/a-broad-hint/a_broad_hint.php on line 32
    • > PHP Notice
      Undefined variable: HTTP_POST_VARS in wp-content/plugins/a-broad-hint/a_broad_hint.php on line 36
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/a-broad-hint/a_broad_hint.php on line 18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=a-broad-hint/a_broad_hint.php
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'deny'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
No tags were detected

a-broad-hint/a_broad_hint.php 85% from 13 tests

The entry point to "A Broad Hint" version 2.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("a-broad-hint.php" instead of "a_broad_hint.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 297 characters long)

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
Success! There were no dangerous files found in this plugin134 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15719134

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin