Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼138.84ms] Passed 4 tests
Server-side resources used by Logging with Papertrail
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 35.71 ▲0.54 |
Dashboard /wp-admin | 3.13 ▲0.08 | 48.08 ▲1.62 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 49.12 ▲1.90 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 95.31 ▼559.41 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 39.73 ▲4.71 |
Logging Papertrail /wp-admin/options-general.php?page=logging-with-papertrail-settings | 3.04 | 31.24 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Logging with Papertrail
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.85 ▲0.50 | 8.90 ▲0.65 | 47.58 ▼5.15 |
Dashboard /wp-admin | 2,972 ▲38 | 6.13 ▲0.18 | 136.49 ▼13.82 | 118.69 ▲4.30 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▲0.02 | 69.07 ▼4.16 | 88.05 ▼10.44 |
Add New Post /wp-admin/post-new.php | 1,501 ▼182 | 18.89 ▲0.15 | 385.03 ▲4.90 | 114.92 ▼6.95 |
Media Library /wp-admin/upload.php | 1,818 ▲8 | 5.05 ▲0.03 | 143.48 ▼15.16 | 118.91 ▲0.33 |
Logging Papertrail /wp-admin/options-general.php?page=logging-with-papertrail-settings | 1,126 | 2.08 | 60.05 | 91.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function PapertrailForWP\\get_option() in wp-content/plugins/logging-with-papertrail/php/papertrail-error-handler.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 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
3 plugin tags: papertrail, exception logging, error logging
logging-with-papertrail/logging-with-papertrail.php Passed 13 tests
The main PHP file in "Logging with Papertrail" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
45 characters long description:
Write php errors and exceptions to Papertrail
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin372 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 62 | 35 | 372 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 29 | 74.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 25.64% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected