Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▼7.91ms] Passed 4 tests
An overview of server-side resources used by WordPress Sentry
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 36.58 ▼4.82 |
Dashboard /wp-admin | 3.64 ▲0.29 | 48.48 ▼17.19 |
Posts /wp-admin/edit.php | 3.70 ▲0.33 | 48.38 ▲2.57 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 81.20 ▼12.21 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 35.28 ▲3.16 |
Sentry /wp-admin/tools.php?page=wp-sentry | 3.83 | 34.19 |
Server storage [IO: ▲1.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 309 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
WordPress Sentry: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.70 ▲0.31 | 1.65 ▼0.43 | 39.63 ▼1.88 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.09 | 92.51 ▼12.78 | 40.73 ▼5.69 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.01 ▲0.01 | 39.87 ▲5.40 | 36.78 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.89 ▼0.07 | 674.18 ▲30.47 | 63.14 ▲7.26 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.17 ▼0.10 | 97.33 ▼0.81 | 45.35 ▲1.82 |
Sentry /wp-admin/tools.php?page=wp-sentry | 1,134 | 2.03 | 27.43 | 34.21 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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 no errors were found, this is by no means an exhaustive test
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
- 176× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPSentry\\ScopedVendor\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-sentry-integration/build/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/wp-sentry-integration/build/vendor/sentry/sentry/src/Severity.php:12
- > PHP Fatal error
Uncaught Error: Class 'WPSentry\\ScopedVendor\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-sentry-integration/build/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPSentry\\ScopedVendor\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-sentry-integration/build/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPSentry\\ScopedVendor\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-sentry-integration/build/vendor/composer/installers/src/Composer/Installers/AkauntingInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPSentry\\ScopedVendor\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-sentry-integration/build/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPSentry\\ScopedVendor\\Symfony\\Component\\OptionsResolver\\Exception\\InvalidArgumentException' not found in wp-content/plugins/wp-sentry-integration/build/vendor/symfony/options-resolver/Exception/MissingOptionsException.php:20
- > PHP Fatal error
Uncaught Error: Interface 'WPSentry\\ScopedVendor\\Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface' not found in wp-content/plugins/wp-sentry-integration/build/vendor/symfony/options-resolver/Exception/NoSuchOptionException.php:23
- > PHP Fatal error
Uncaught Error: Interface 'WPSentry\\ScopedVendor\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-sentry-integration/build/vendor/guzzlehttp/psr7/src/AppendStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'WPSentry\\ScopedVendor\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-sentry-integration/build/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: error-handler, sentry, log, logging, error-monitoring
wp-sentry-integration/wp-sentry.php 92% from 13 tests
The principal PHP file in "WordPress Sentry" v. 7.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-sentry-integration.php" instead of "wp-sentry.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin15,971 lines of code in 300 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 288 | 877 | 9,650 | 14,621 |
JSON | 3 | 0 | 0 | 884 |
JavaScript | 7 | 76 | 27 | 447 |
Bourne Shell | 1 | 6 | 0 | 18 |
YAML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 8.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 23 | |
Traits | 10 | |
Classes | 242 | |
▷ Abstract classes | 5 | 2.07% |
▷ Concrete classes | 237 | 97.93% |
▷ Final classes | 85 | 35.86% |
Methods | 1,439 | |
▷ Static methods | 195 | 13.55% |
▷ Public methods | 1,207 | 83.88% |
▷ Protected methods | 66 | 4.59% |
▷ Private methods | 166 | 11.54% |
Functions | 109 | |
▷ Named functions | 51 | 46.79% |
▷ Anonymous functions | 58 | 53.21% |
Constants | 102 | |
▷ Global constants | 7 | 6.86% |
▷ Class constants | 95 | 93.14% |
▷ Public constants | 71 | 74.74% |
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
No PNG images were found in this plugin