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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.89 ▼1.63 | 20.79 ▼33.39 |
Dashboard /wp-admin | 1.91 ▼1.50 | 3.47 ▼46.40 |
Posts /wp-admin/edit.php | 1.91 ▼1.73 | 4.13 ▼39.77 |
Add New Post /wp-admin/post-new.php | 1.91 ▼5.06 | 5.80 ▼1,268.37 |
Media Library /wp-admin/upload.php | 1.91 ▼1.39 | 3.60 ▼26.15 |
A Broad Hint /wp-admin/options-general.php?page=a-broad-hint/a_broad_hint.php | 1.91 | 3.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,799 ▲45 | 16.19 ▲0.50 | 6.03 ▲0.03 | 2.29 ▼0.59 |
Dashboard /wp-admin | 2,897 ▲36 | 6.14 ▼0.18 | 127.50 ▼5.62 | 152.92 ▼9.01 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.24 ▼0.00 | 63.86 ▼20.91 | 138.61 ▼6.05 |
Add New Post /wp-admin/post-new.php | 1,671 ▼40 | 20.47 ▼1.14 | 376.51 ▼64.86 | 215.94 ▲54.00 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.45 ▼0.06 | 143.80 ▲2.81 | 192.01 ▲7.06 |
A Broad Hint /wp-admin/options-general.php?page=a-broad-hint/a_broad_hint.php | 1,263 | 3.39 | 99.03 | 134.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 19 | 134 |
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 code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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