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.04MB] [CPU: ▼1.07ms] Passed 4 tests
This is a short check of server-side resources used by Error Tracker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.01 ▼1.87 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.52 ▼7.71 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.50 ▲2.47 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 105.42 ▲4.30 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.23 ▲2.85 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Error Tracker: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.47 ▲0.17 | 1.82 ▼0.59 | 40.35 ▼6.24 |
Dashboard /wp-admin | 2,225 ▲37 | 5.85 ▼0.01 | 106.20 ▲3.57 | 39.67 ▲0.75 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.00 ▼0.00 | 39.13 ▲0.09 | 35.17 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,532 ▼1 | 23.25 ▲0.26 | 675.25 ▼10.91 | 55.96 ▼4.82 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.17 ▼0.05 | 107.64 ▼10.59 | 47.86 ▼1.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/error-tracker/bootstrap.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Raven_Processor' not found in wp-content/plugins/error-tracker/vendor/sentry/lib/Raven/Processor/SanitizeStacktraceProcessor.php:18
- > PHP Fatal error
Uncaught Error: Class 'Raven_Processor' not found in wp-content/plugins/error-tracker/vendor/sentry/lib/Raven/Processor/SanitizeDataProcessor.php:18
- > PHP Fatal error
Uncaught Error: Class 'Raven_Processor' not found in wp-content/plugins/error-tracker/vendor/sentry/lib/Raven/Processor/RemoveCookiesProcessor.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/error-tracker/vendor/sentry/lib/Raven/Breadcrumbs/MonologHandler.php:6
- > PHP Fatal error
Uncaught Error: Class 'Raven_Processor' not found in wp-content/plugins/error-tracker/vendor/sentry/lib/Raven/Processor/RemoveHttpBodyProcessor.php:19
- > PHP Fatal error
Uncaught Error: Class 'Raven_Serializer' not found in wp-content/plugins/error-tracker/vendor/sentry/lib/Raven/ReprSerializer.php:17
- > PHP Fatal error
Uncaught Error: Class 'Raven_Processor_SanitizeDataProcessor' not found in wp-content/plugins/error-tracker/vendor/sentry/lib/Raven/SanitizeDataProcessor.php:17
- > PHP Fatal error
Uncaught Error: Class 'Raven_Processor' not found in wp-content/plugins/error-tracker/vendor/sentry/lib/Raven/Processor/SanitizeHttpHeadersProcessor.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
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
5 plugin tags: tracking, sentry, errors, debugging, logrocket
error-tracker/bootstrap.php 85% from 13 tests
The main PHP file in "Error Tracker" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("error-tracker.php" instead of "bootstrap.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
Everything looks great! No dangerous files found in this plugin2,833 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 436 | 913 | 2,369 |
Markdown | 2 | 126 | 0 | 283 |
YAML | 2 | 3 | 0 | 84 |
JSON | 1 | 0 | 0 | 59 |
XML | 1 | 2 | 0 | 23 |
make | 1 | 6 | 0 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 17.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 190.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 1 | 4.17% |
▷ Concrete classes | 23 | 95.83% |
▷ Final classes | 3 | 13.04% |
Methods | 167 | |
▷ Static methods | 28 | 16.77% |
▷ Public methods | 134 | 80.24% |
▷ Protected methods | 24 | 14.37% |
▷ Private methods | 9 | 5.39% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 3 | 16.67% |
▷ Class constants | 15 | 83.33% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin