Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼4.45ms] Passed 4 tests
Server-side resources used by Front-end javascript error monitoring with Bugsnag
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 40.58 ▼0.57 |
Dashboard /wp-admin | 3.52 ▲0.21 | 48.88 ▼9.87 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 54.48 ▲4.42 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 95.17 ▼11.79 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 41.40 ▲5.46 |
Front-end javascript error monitoring with Bugsnag /wp-admin/options-general.php?page=front-end-error-monitoring-with-bugsnag | 3.37 | 43.76 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Front-end javascript error monitoring with Bugsnag
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.35 ▼0.27 | 2.22 ▲0.37 | 42.40 ▲0.28 |
Dashboard /wp-admin | 2,204 ▲36 | 5.64 ▲0.10 | 91.83 ▲0.70 | 41.15 ▼0.65 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.99 ▲0.01 | 39.56 ▲3.76 | 36.44 ▲1.69 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.22 ▲0.31 | 626.92 ▼67.51 | 48.48 ▼12.04 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.20 ▼0.01 | 100.74 ▼4.90 | 45.38 ▲3.15 |
Front-end javascript error monitoring with Bugsnag /wp-admin/options-general.php?page=front-end-error-monitoring-with-bugsnag | 851 | 1.99 | 21.42 | 31.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/front-end-error-monitoring-with-bugsnag/config/container.php:13
- > PHP Fatal error
Uncaught Error: Class 'Sanderdekroon\\BugsnagJs\\ServiceProvider' not found in wp-content/plugins/front-end-error-monitoring-with-bugsnag/src/SettingsServiceProvider.php:10
- > PHP Fatal error
Uncaught Error: Class 'Sanderdekroon\\BugsnagJs\\ServiceProvider' not found in wp-content/plugins/front-end-error-monitoring-with-bugsnag/src/ScriptServiceProvider.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/front-end-error-monitoring-with-bugsnag/assets/views/admin.configuration.php:1
- > PHP Fatal error
Uncaught Error: Class 'Sanderdekroon\\BugsnagJs\\Utility\\ParameterBag' not found in wp-content/plugins/front-end-error-monitoring-with-bugsnag/src/Utility/Request.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Sanderdekroon\\BugsnagJs\\Storage\\StorageInterface' not found in wp-content/plugins/front-end-error-monitoring-with-bugsnag/src/Storage/OptionStorage.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Sanderdekroon\\BugsnagJs\\ServiceProviderContract' not found in wp-content/plugins/front-end-error-monitoring-with-bugsnag/src/ServiceProvider.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/front-end-error-monitoring-with-bugsnag/config/container.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
6 plugin tags: javascript, exception, error, monitoring, bugsnag...
front-end-error-monitoring-with-bugsnag/index.php 85% from 13 tests
"Front-end javascript error monitoring with Bugsnag" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("front-end-error-monitoring-with-bugsnag.php" instead of "index.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 plugin1,212 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 293 | 380 | 1,160 |
JavaScript | 2 | 2 | 4 | 46 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 2 | 1 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 8.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 19 | 17.92% |
▷ Public methods | 99 | 93.40% |
▷ Protected methods | 5 | 4.72% |
▷ Private methods | 2 | 1.89% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin