Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼9.68ms] Passed 4 tests
Server-side resources used by Browsers Need to be Updated
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▼0.58 | 20.16 ▼21.25 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.60 ▼1.26 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 46.32 ▼2.92 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 86.37 ▼13.28 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.42 ▲3.83 |
Browsers Need to be Updated /wp-admin/plugins.php?page=BNU | 3.23 | 28.01 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
BNU_options |
Browser metrics Passed 4 tests
Checking browser requirements for Browsers Need to be Updated
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.23 ▼1.22 | 1.77 ▼0.12 | 43.78 ▼2.44 |
Dashboard /wp-admin | 2,210 ▲19 | 5.90 ▲0.98 | 109.20 ▲4.80 | 41.78 ▼1.41 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.02 | 34.59 ▼0.70 | 36.03 ▲4.88 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.34 ▲5.71 | 672.86 ▼12.74 | 47.16 ▼6.11 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.28 ▲0.08 | 94.46 ▼18.25 | 42.31 ▼6.50 |
Browsers Need to be Updated /wp-admin/plugins.php?page=BNU | 706 | 1.14 | 6.66 | 21.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- recovery_mode_email_last_sent
- BNU_options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/plugins.php?page=BNU
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/plugins.php?page=BNU
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/plugins.php?page=BNU
- > Deprecated in wp-content/plugins/browsers-need-to-be-updated/classes/sf-class-settings.php+453
Non-static method SF_Format_Options::settings_options_format() should not be called statically
- > GET request to /wp-admin/plugins.php?page=BNU
- > Error in wp-content/plugins/browsers-need-to-be-updated/classes/sf-class-format-options.php+27
Uncaught Error: Using $this when not in object context in wp-content/plugins/browsers-need-to-be-updated/classes/sf-class-format-options.php:27
Stack trace:
#0 wp-content/plugins/browsers-need-to-be-updated/classes/sf-class-settings.php(453): SF_Format_Options::settings_options_format()
#1 wp-content/plugins/browsers-need-to-be-updated/classes/sf-class-settings.php(486): SF_Settings_API->template_body()
#2 wp-includes/class-wp-hook.php(310): SF_Settings_API->init_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/plugins.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
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 take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'SF_Settings_API' not found in wp-content/plugins/browsers-need-to-be-updated/classes/sf-class-format-options.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/browsers-need-to-be-updated/options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/browsers-need-to-be-updated/update_browser.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/browsers-need-to-be-updated/BNU.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/plugins.php?page=BNU
- > Network (severe)
wp-content/plugins/var/www/wordpress/wp-content/plugins/browsers-need-to-be-updated/classes/js/bootstrap-tooltip.js?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/plugins.php?page=BNU
- > Network (severe)
wp-content/plugins/var/www/wordpress/wp-content/plugins/browsers-need-to-be-updated/classes/js/select2/select2.min.js?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/plugins.php?page=BNU
- > Network (severe)
wp-content/plugins/var/www/wordpress/wp-content/plugins/browsers-need-to-be-updated/classes/js/sf-jquery.js?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
browsers-need-to-be-updated/BNU.php 92% from 13 tests
This is the main PHP file of "Browsers Need to be Updated" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("browsers-need-to-be-updated.php" instead of "BNU.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin4,391 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 410 | 690 | 1,847 |
JavaScript | 4 | 394 | 330 | 1,741 |
CSS | 5 | 145 | 202 | 803 |
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.44 |
Average class complexity | 67.60 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 203.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 43 | 41.75% |
▷ Protected methods | 46 | 44.66% |
▷ Private methods | 14 | 13.59% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 55 | |
▷ Global constants | 1 | 1.82% |
▷ Class constants | 54 | 98.18% |
▷ Public constants | 54 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/google_chrome.png | 9.61KB | 3.41KB | ▼ 64.50% |
assets/images/opera.png | 2.81KB | 2.60KB | ▼ 7.41% |
assets/images/apple_safari.png | 16.71KB | 5.14KB | ▼ 69.23% |
assets/images/microsoft_internet_explorer.png | 20.24KB | 6.47KB | ▼ 68.02% |
assets/images/mozilla_firefox.png | 26.83KB | 8.71KB | ▼ 67.54% |