10% a-broad-hint

Code Review | A Broad Hint

WordPress plugin A Broad Hint scored10%from 54 tests.

About plugin

  • Plugin page: a-broad-hint
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • 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,587 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/a-broad-hint/a_broad_hint.php+18
    Undefined variable: HTTP_POST_VARS

Server metrics [RAM: ▼1.92MB] [CPU: ▼55.93ms] Passed 4 tests

An overview of server-side resources used by A Broad Hint
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.17 ▼36.52
Dashboard /wp-admin2.09 ▼1.215.44 ▼45.28
Posts /wp-admin/edit.php2.09 ▼1.265.76 ▼44.57
Add New Post /wp-admin/post-new.php2.09 ▼3.805.36 ▼97.33
Media Library /wp-admin/upload.php2.09 ▼1.145.42 ▼31.80
A Broad Hint /wp-admin/options-general.php?page=a-broad-hint/a_broad_hint.php2.095.69

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
abh_status
abh_field
widget_theysaidso_widget
widget_recent-posts
abh_opti
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for A Broad Hint
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.031.79 ▲0.1643.56 ▼2.76
Dashboard /wp-admin2,202 ▲315.62 ▼0.1691.46 ▲0.9645.53 ▲5.95
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0337.04 ▼4.1135.66 ▼4.63
Add New Post /wp-admin/post-new.php1,534 ▲823.12 ▼0.02674.76 ▲27.1655.64 ▼23.00
Media Library /wp-admin/upload.php1,398 ▼54.18 ▲0.04104.77 ▲0.8047.53 ▲1.51
A Broad Hint /wp-admin/options-general.php?page=a-broad-hint/a_broad_hint.php1,0042.7675.8031.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/a-broad-hint/a_broad_hint.php+18
    Undefined variable: HTTP_POST_VARS
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 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+5737
    Function 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > 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 32
    • > 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 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
    • > PHP Notice
      Undefined variable: HTTP_POST_VARS in wp-content/plugins/a-broad-hint/a_broad_hint.php on line 18

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > 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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
There were no plugin tags found

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

The main PHP script in "A Broad Hint" version 2.5 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 297 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("a-broad-hint.php" instead of "a_broad_hint.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
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 logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin