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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.21ms] Passed 4 tests
Server-side resources used by Raygun
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.14 ▼1.51 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.37 ▼2.35 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.84 ▼2.54 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.90 ▼14.44 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.58 ▲3.78 |
Settings /wp-admin/admin.php?page=rg4wp-settings | 3.29 | 32.72 |
About /wp-admin/admin.php?page=rg4wp | 3.25 | 30.00 |
Dashboard /wp-admin/admin.php?page=rg4wp-dash | 3.24 | 32.51 |
Server storage [IO: ▲3.59MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 636 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Raygun: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲104 | 13.25 ▼1.12 | 6.00 ▲4.38 | 42.16 ▼1.10 |
Dashboard /wp-admin | 2,248 ▲57 | 6.02 ▲1.13 | 98.32 ▼3.73 | 79.23 ▲40.32 |
Posts /wp-admin/edit.php | 2,124 ▲38 | 2.06 ▲0.07 | 33.56 ▼1.14 | 36.58 ▲2.04 |
Add New Post /wp-admin/post-new.php | 1,548 ▲14 | 17.58 ▼5.50 | 742.42 ▲100.42 | 76.93 ▲28.73 |
Media Library /wp-admin/upload.php | 1,421 ▲30 | 4.29 ▲0.08 | 99.42 ▲2.01 | 77.24 ▲32.45 |
Settings /wp-admin/admin.php?page=rg4wp-settings | 1,041 | 1.84 | 25.31 | 28.05 |
About /wp-admin/admin.php?page=rg4wp | 896 | 2.01 | 23.48 | 28.07 |
Dashboard /wp-admin/admin.php?page=rg4wp-dash | 821 | 2.00 | 23.28 | 23.44 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/raygun4wp/vendor/mindscape/raygun4php/sample-apps/async-example/partials/head.php
- > /wp-content/plugins/raygun4wp/dash.php
- > /wp-content/plugins/raygun4wp/sendtesterror.php
- 338× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Raygun4php\\RaygunClient' not found in wp-content/plugins/raygun4wp/src/RaygunClient.php:9
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Test\\TestCase' not found in wp-content/plugins/raygun4wp/vendor/monolog/monolog/tests/Monolog/Handler/NullHandlerTest.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/raygun4wp/vendor/guzzlehttp/guzzle/tests/MiddlewareTest.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/raygun4wp/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php:34
- > PHP Fatal error
Uncaught Error: Interface 'Raygun4php\\Interfaces\\TransportInterface' not found in wp-content/plugins/raygun4wp/vendor/mindscape/raygun4php/src/Raygun4php/Transports/GuzzleSync.php:13
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/raygun4wp/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Test\\TestCase' not found in wp-content/plugins/raygun4wp/vendor/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/raygun4wp/vendor/monolog/monolog/tests/Monolog/UtilsTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/raygun4wp/vendor/guzzlehttp/psr7/src/Request.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/raygun4wp/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php:21
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
raygun4wp/raygun4wp.php 85% from 13 tests
Analyzing the main PHP file in "Raygun" version 2.0.1.0
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 518 characters long)
- Git Repository: An alternative Git repository was detected
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please fix the following items
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/raygun4wp/vendor/mindscape/raygun4php/src/Raygun4php/cacert.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 460 | 8,415 | 15,144 | 43,162 |
Markdown | 39 | 1,823 | 0 | 5,359 |
JSON | 18 | 0 | 0 | 1,772 |
reStructuredText | 8 | 861 | 1,090 | 1,098 |
YAML | 25 | 225 | 12 | 859 |
XML | 11 | 9 | 2 | 462 |
make | 4 | 48 | 5 | 216 |
JavaScript | 1 | 18 | 60 | 183 |
CSS | 1 | 16 | 2 | 117 |
Python | 1 | 18 | 22 | 28 |
Dockerfile | 1 | 6 | 0 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 45 | |
Interfaces | 38 | |
Traits | 8 | |
Classes | 406 | |
▷ Abstract classes | 8 | 1.97% |
▷ Concrete classes | 398 | 98.03% |
▷ Final classes | 43 | 10.80% |
Methods | 3,274 | |
▷ Static methods | 222 | 6.78% |
▷ Public methods | 2,818 | 86.07% |
▷ Protected methods | 222 | 6.78% |
▷ Private methods | 234 | 7.15% |
Functions | 616 | |
▷ Named functions | 60 | 9.74% |
▷ Anonymous functions | 556 | 90.26% |
Constants | 154 | |
▷ Global constants | 2 | 1.30% |
▷ Class constants | 152 | 98.70% |
▷ Public constants | 113 | 74.34% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.63MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/guzzlehttp/guzzle/docs/_static/logo.png | 241.87KB | 69.68KB | ▼ 71.19% |
img/logo.png | 0.25KB | 0.22KB | ▼ 12.65% |
vendor/guzzlehttp/guzzle/.github/logo.png | 78.23KB | 34.21KB | ▼ 56.26% |
img/logo-small.png | 5.80KB | 3.00KB | ▼ 48.22% |
vendor/guzzlehttp/guzzle/docs/_static/guzzle-icon.png | 0.78KB | 0.94KB | 0.00% |