Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.64MB] [CPU: ▼0.18ms] Passed 4 tests
Analyzing server-side resources used by Rollbar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 50.63 ▲11.24 |
Dashboard /wp-admin | 4.04 ▲0.74 | 53.21 ▲0.94 |
Posts /wp-admin/edit.php | 4.10 ▲0.74 | 47.50 ▲3.53 |
Add New Post /wp-admin/post-new.php | 6.57 ▲0.68 | 85.97 ▼13.44 |
Media Library /wp-admin/upload.php | 3.90 ▲0.68 | 41.62 ▲8.25 |
Rollbar /wp-admin/options-general.php?page=rollbar_wp | 3.88 | 35.69 |
Server storage [IO: ▲9.70MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 1,207 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Rollbar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.21 ▼1.17 | 1.89 ▲0.13 | 42.72 ▼0.72 |
Dashboard /wp-admin | 2,207 ▲22 | 5.79 ▼0.06 | 102.79 ▼12.14 | 40.17 ▼7.18 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.13 ▲0.12 | 32.71 ▼3.80 | 31.66 ▼2.21 |
Add New Post /wp-admin/post-new.php | 1,546 ▲11 | 18.48 ▼4.55 | 588.44 ▼59.47 | 47.09 ▼8.07 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.25 ▲0.01 | 94.70 ▼2.65 | 41.51 ▼3.52 |
Rollbar /wp-admin/options-general.php?page=rollbar_wp | 1,568 | 1.71 | 24.71 | 41.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/rollbar/php7/vendor/michelf/php-markdown/Readme.php
- > /wp-content/plugins/rollbar/php8/vendor/michelf/php-markdown/Readme.php
- 370× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' not found in wp-content/plugins/rollbar/php8/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php:25
- > PHP Parse error
syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE) in wp-content/plugins/rollbar/php8/vendor/rollbar/rollbar/src/Payload/Message.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\StreamHandler' not found in wp-content/plugins/rollbar/php7/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:26
- > PHP Fatal error
Uncaught Error: Class 'Rollbar\\BaseRollbarTest' not found in wp-content/plugins/rollbar/php8/vendor/rollbar/rollbar/tests/ConfigTest.php:32
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/rollbar/php8/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php:34
- > PHP Fatal error
Uncaught Error: Class 'Rollbar\\Handlers\\AbstractHandler' not found in wp-content/plugins/rollbar/php7/vendor/rollbar/rollbar/src/Handlers/ErrorHandler.php:7
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/rollbar/php8/vendor/rollbar/rollbar/tests/LevelFactoryTest.php on line 61
- > PHP Fatal error
Uncaught Error: Interface 'Rollbar\\SerializerInterface' not found in wp-content/plugins/rollbar/php8/vendor/rollbar/rollbar/src/Payload/Server.php:8
- > PHP Fatal error
Uncaught Error: Class 'Rollbar\\BaseRollbarTest' not found in wp-content/plugins/rollbar/php8/vendor/rollbar/rollbar/tests/Truncation/RawStrategyTest.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/rollbar/php8/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: full stack, error, reporting, error tracking, tracking...
rollbar/rollbar-php-wordpress.php 92% from 13 tests
"Rollbar" version 2.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rollbar.php" instead of "rollbar-php-wordpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected56,122 lines of code in 982 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 491 | 9,434 | 17,425 | 42,873 |
JSON | 15 | 26 | 0 | 3,436 |
Markdown | 21 | 1,104 | 0 | 3,343 |
JavaScript | 372 | 412 | 4 | 3,110 |
XHTML | 56 | 1,024 | 0 | 2,503 |
YAML | 11 | 56 | 104 | 424 |
PO File | 2 | 51 | 51 | 160 |
XML | 7 | 5 | 2 | 158 |
HTML | 4 | 45 | 13 | 68 |
CSS | 1 | 7 | 0 | 32 |
Bourne Shell | 1 | 7 | 7 | 8 |
Dockerfile | 1 | 3 | 0 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 175.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 30 | |
Interfaces | 38 | |
Traits | 10 | |
Classes | 433 | |
▷ Abstract classes | 20 | 4.62% |
▷ Concrete classes | 413 | 95.38% |
▷ Final classes | 5 | 1.21% |
Methods | 3,671 | |
▷ Static methods | 265 | 7.22% |
▷ Public methods | 2,743 | 74.72% |
▷ Protected methods | 668 | 18.20% |
▷ Private methods | 260 | 7.08% |
Functions | 147 | |
▷ Named functions | 6 | 4.08% |
▷ Anonymous functions | 141 | 95.92% |
Constants | 174 | |
▷ Global constants | 6 | 3.45% |
▷ Class constants | 168 | 96.55% |
▷ Public constants | 141 | 83.93% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected