Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▲1.54ms] Passed 4 tests
An overview of server-side resources used by Browser-Update-Notify
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.20 ▼2.00 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.20 ▲2.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.94 ▲4.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.51 ▲6.05 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.63 ▲1.28 |
Browser-Update-Notify /wp-admin/options-general.php?page=my-unique-identifier | 3.25 | 28.23 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
bun_dbff |
bun_dbie |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
bun_dbs |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Browser-Update-Notify
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.35 ▼1.31 | 7.85 ▲6.06 | 42.87 ▼1.27 |
Dashboard /wp-admin | 2,213 ▲30 | 4.89 ▼0.09 | 104.59 ▼6.30 | 39.29 ▲0.14 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.03 | 40.35 ▲7.70 | 34.72 ▲2.78 |
Add New Post /wp-admin/post-new.php | 1,523 ▲4 | 23.10 ▼0.17 | 600.76 ▼64.15 | 63.62 ▲9.46 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.02 | 92.53 ▼1.41 | 42.25 ▲0.82 |
Browser-Update-Notify /wp-admin/options-general.php?page=my-unique-identifier | 871 | 2.02 | 26.87 | 26.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- bun_dbs
- can_compress_scripts
- bun_dbff
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- bun_dbie
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=my-unique-identifier
- > Notice in wp-content/plugins/browser-update-notify/bun_admin.php+2
Undefined index: bun_hidden
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
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/browser-update-notify/bun_admin.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/browser-update-notify/Browser-Update-Notify.php:46
- > PHP Notice
Undefined index: bun_hidden in wp-content/plugins/browser-update-notify/bun_admin.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: update browser, html5, modernizer, browser, modern browser...
browser-update-notify/Browser-Update-Notify.php 92% from 13 tests
"Browser-Update-Notify" version 0.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("browser-update-notify.php" instead of "Browser-Update-Notify.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
No dangerous file extensions were detected142 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 11 | 142 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected