Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼2.69ms] Passed 4 tests
This is a short check of server-side resources used by Airbrake
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.92 ▼0.44 |
Dashboard /wp-admin | 3.31 ▼0.03 | 48.64 ▼10.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.38 ▲6.82 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 107.57 ▲6.55 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.57 ▼5.89 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 113 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
airbrake_wordpress_setting_project_id |
widget_recent-posts |
theysaidso_admin_options |
airbrake_wordpress_setting_disabled |
airbrake_wordpress_setting_project_key |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Airbrake
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.33 ▼1.07 | 1.82 ▲0.19 | 42.06 ▲0.91 |
Dashboard /wp-admin | 2,222 ▲33 | 4.87 ▼1.06 | 106.88 ▼4.12 | 45.24 ▲3.42 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.05 ▲0.01 | 39.76 ▼0.92 | 35.39 ▼4.51 |
Add New Post /wp-admin/post-new.php | 1,560 ▲38 | 18.10 ▼5.16 | 619.58 ▼23.55 | 61.37 ▲0.69 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.21 ▼0.11 | 99.08 ▲1.89 | 44.13 ▲1.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 fix the following
- 49× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Airbrake\\Errors\\Base' not found in wp-content/plugins/airbrake/vendor/airbrake/phpbrake/src/Errors/Warning.php:5
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/airbrake/vendor/guzzlehttp/promises/src/CancellationException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/airbrake/vendor/guzzlehttp/promises/src/Coroutine.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/airbrake/vendor/guzzlehttp/psr7/src/FnStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/airbrake/vendor/guzzlehttp/psr7/src/CachingStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/airbrake/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/airbrake/vendor/guzzlehttp/psr7/src/Uri.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/airbrake/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:10
- > PHP Fatal error
Uncaught Error: Class 'Airbrake\\Errors\\Base' not found in wp-content/plugins/airbrake/vendor/airbrake/phpbrake/src/Errors/Notice.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/airbrake/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: crash, warning, errors, exceptions
airbrake/airbrake-wordpress.php 92% from 13 tests
The primary PHP file in "Airbrake" version 0.2.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("airbrake.php" instead of "airbrake-wordpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin8,794 lines of code in 106 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 105 | 1,814 | 4,969 | 8,789 |
Markdown | 1 | 3 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 75 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 75 | 100.00% |
▷ Final classes | 8 | 10.67% |
Methods | 685 | |
▷ Static methods | 73 | 10.66% |
▷ Public methods | 554 | 80.88% |
▷ Protected methods | 16 | 2.34% |
▷ Private methods | 115 | 16.79% |
Functions | 153 | |
▷ Named functions | 60 | 39.22% |
▷ Anonymous functions | 93 | 60.78% |
Constants | 56 | |
▷ Global constants | 6 | 10.71% |
▷ Class constants | 50 | 89.29% |
▷ Public constants | 50 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 12.23KB | 5.16KB | ▼ 57.79% |
assets/icon-128x128.png | 5.08KB | 2.65KB | ▼ 47.84% |
plugin/images/icon.png | 1.44KB | 1.38KB | ▼ 4.47% |
assets/ab-wp.png | 105.11KB | 38.80KB | ▼ 63.09% |