Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼7.94ms] Passed 4 tests
An overview of server-side resources used by Rollbar Logging
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 36.45 ▼3.05 |
Dashboard /wp-admin | 3.56 ▲0.22 | 45.69 ▼13.69 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 51.62 ▲1.54 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 89.38 ▼13.53 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 34.45 ▼1.47 |
Rollbar Logging /wp-admin/options-general.php?page=rollbar-logging-config | 3.39 | 33.23 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Rollbar Logging
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.31 ▼1.23 | 4.90 ▲2.99 | 44.07 ▲0.55 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼1.00 | 111.85 ▼3.93 | 42.70 ▼1.55 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 1.99 ▼0.02 | 39.83 ▲2.94 | 35.07 ▲0.40 |
Add New Post /wp-admin/post-new.php | 1,540 ▼3 | 21.02 ▲2.90 | 571.99 ▼32.42 | 51.12 ▼5.58 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.17 ▼0.03 | 98.20 ▲2.05 | 42.33 ▼1.96 |
Rollbar Logging /wp-admin/options-general.php?page=rollbar-logging-config | 867 | 2.08 | 23.62 | 30.84 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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)
Everything seems fine, however this is by no means 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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rollbar-logging/lib/RollbarJSLogging.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Invalid URI found ("")
- Plugin Name: Please specify the plugin name on the first line (
=== rollbar-logging ===
)
rollbar-logging/plugin.php 92% from 13 tests
The entry point to "Rollbar Logging" version 1.1.2 is a PHP file that has certain tags in its header comment area
It is important 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-logging.php" instead of "plugin.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
Success! There were no dangerous files found in this plugin1,214 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 253 | 197 | 1,153 |
CSS | 1 | 10 | 0 | 46 |
JavaScript | 2 | 5 | 2 | 15 |
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.47 |
Average class complexity | 19.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 6 | 7.14% |
▷ Public methods | 43 | 51.19% |
▷ Protected methods | 41 | 48.81% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin