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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.17 ▼36.52 |
Dashboard /wp-admin | 2.09 ▼1.21 | 5.44 ▼45.28 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 5.76 ▼44.57 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.36 ▼97.33 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.42 ▼31.80 |
A Broad Hint /wp-admin/options-general.php?page=a-broad-hint/a_broad_hint.php | 2.09 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.03 | 1.79 ▲0.16 | 43.56 ▼2.76 |
Dashboard /wp-admin | 2,202 ▲31 | 5.62 ▼0.16 | 91.46 ▲0.96 | 45.53 ▲5.95 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.03 | 37.04 ▼4.11 | 35.66 ▼4.63 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.12 ▼0.02 | 674.76 ▲27.16 | 55.64 ▼23.00 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.18 ▲0.04 | 104.77 ▲0.80 | 47.53 ▲1.51 |
A Broad Hint /wp-admin/options-general.php?page=a-broad-hint/a_broad_hint.php | 1,004 | 2.76 | 75.80 | 31.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 19 | 134 |
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 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin