Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.15MB] [CPU: ▼17.26ms] Passed 4 tests
Analyzing server-side resources used by Offload Videos - Bunny.net, AWS S3
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 35.91 ▼4.06 |
Dashboard /wp-admin | 3.23 ▼0.12 | 32.14 ▼32.30 |
Posts /wp-admin/edit.php | 3.29 ▼0.06 | 37.25 ▼7.31 |
Add New Post /wp-admin/post-new.php | 5.47 ▼0.41 | 68.55 ▼25.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 30.56 ▼2.42 |
Videos /wp-admin/admin.php?page=videos | 3.20 | 27.60 |
Offload Videos /wp-admin/admin.php?page=offload-video | 3.20 | 30.80 |
Server storage [IO: ▲29.97MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Try to limit filesystem usage to 25MB (currently using 29.97MB)
Filesystem: 2,042 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Offload Videos - Bunny.net, AWS S3: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,025 ▲279 | 13.61 ▼0.77 | 11.29 ▲9.47 | 44.91 ▲2.60 |
Dashboard /wp-admin | 2,238 ▲50 | 4.86 ▼0.93 | 104.93 ▼11.45 | 39.72 ▼9.59 |
Posts /wp-admin/edit.php | 2,121 ▲29 | 2.04 ▲0.01 | 34.79 ▼2.11 | 30.45 ▼3.80 |
Add New Post /wp-admin/post-new.php | 1,540 ▼2 | 17.63 ▼0.48 | 683.12 ▲66.09 | 55.32 ▲5.71 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.23 ▲0.01 | 95.34 ▼1.48 | 42.30 ▲0.17 |
Videos /wp-admin/admin.php?page=videos | 811 | 2.04 | 24.97 | 24.03 |
Offload Videos /wp-admin/admin.php?page=offload-video | 1,021 | 1.73 | 24.17 | 25.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=offload-video
- > Notice in wp-content/plugins/offload-videos-bunny-netaws-s3/admin/class-offload-video-admin.php+155
Undefined index: bsacft_success
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
- 845× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/offload-videos-bunny-netaws-s3/includes/aws/Aws/IoTFleetHub/Exception/IoTFleetHubException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/offload-videos-bunny-netaws-s3/includes/aws/Aws/WorkMail/WorkMailClient.php:145
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\Crypto\\AesStreamInterface' not found in wp-content/plugins/offload-videos-bunny-netaws-s3/includes/aws/Aws/Crypto/AesDecryptingStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/offload-videos-bunny-netaws-s3/includes/aws/Aws/MemoryDB/MemoryDBClient.php:79
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/offload-videos-bunny-netaws-s3/includes/aws/Aws/KinesisVideo/KinesisVideoClient.php:47
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/offload-videos-bunny-netaws-s3/includes/aws/Aws/CodeDeploy/CodeDeployClient.php:104
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/offload-videos-bunny-netaws-s3/includes/aws/Aws/Honeycode/Exception/HoneycodeException.php:9
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/offload-videos-bunny-netaws-s3/includes/aws/GuzzleHttp/Exception/ServerException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/offload-videos-bunny-netaws-s3/public/guzzle/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:14
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/offload-videos-bunny-netaws-s3/includes/aws/Aws/Ec2/Ec2Client.php:1058
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Screenshot-1.png), #2 (Screenshot-2.png)
offload-videos-bunny-netaws-s3/offload-video.php 85% from 13 tests
This is the main PHP file of "Offload Videos - Bunny.net, AWS S3" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("offload-videos-bunny-netaws-s3.php" instead of "offload-video.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected91,921 lines of code in 2,008 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,962 | 9,578 | 49,042 | 60,197 |
Markdown | 17 | 4,138 | 0 | 11,477 |
SVG | 3 | 0 | 12 | 8,770 |
JavaScript | 7 | 1,093 | 1,003 | 5,761 |
CSS | 8 | 1,695 | 46 | 4,704 |
JSON | 10 | 0 | 0 | 1,005 |
YAML | 1 | 0 | 0 | 7 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 6.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 659 | |
Interfaces | 74 | |
Traits | 28 | |
Classes | 995 | |
▷ Abstract classes | 13 | 1.31% |
▷ Concrete classes | 982 | 98.69% |
▷ Final classes | 60 | 6.11% |
Methods | 3,252 | |
▷ Static methods | 572 | 17.59% |
▷ Public methods | 2,371 | 72.91% |
▷ Protected methods | 136 | 4.18% |
▷ Private methods | 745 | 22.91% |
Functions | 585 | |
▷ Named functions | 119 | 20.34% |
▷ Anonymous functions | 466 | 79.66% |
Constants | 370 | |
▷ Global constants | 40 | 10.81% |
▷ Class constants | 330 | 89.19% |
▷ Public constants | 319 | 96.67% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screenshot-1.png | 73.49KB | 26.26KB | ▼ 64.26% |
Screenshot-2.png | 136.50KB | 40.08KB | ▼ 70.64% |