Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼135.76ms] Passed 4 tests
An overview of server-side resources used by S3Bubble Media Streaming (AWS|Elementor|YouTube|Vimeo Functionality)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.26 | 45.43 ▲24.25 |
Dashboard /wp-admin | 3.21 ▲0.16 | 48.96 ▲4.11 |
Posts /wp-admin/edit.php | 3.33 ▲0.21 | 48.33 ▲3.23 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.13 | 91.23 ▼553.51 |
Media Library /wp-admin/upload.php | 3.16 ▲0.15 | 37.51 ▲3.12 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: no new tables, 3 new options
New WordPress options |
---|
s3bubble_oembed_connected_website |
s3bubble_oembed_plugin_options |
s3bubble_oembed_activation_date |
Browser metrics Passed 4 tests
An overview of browser requirements for S3Bubble Media Streaming (AWS|Elementor|YouTube|Vimeo Functionality)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,881 ▲285 | 19.94 ▲4.42 | 136.20 ▲125.49 | 46.97 ▼1.31 |
Dashboard /wp-admin | 3,005 ▲71 | 6.20 ▲0.24 | 139.79 ▼4.64 | 111.96 ▼3.99 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.73 ▲0.02 | 66.84 ▲2.29 | 91.69 ▼5.55 |
Add New Post /wp-admin/post-new.php | 1,533 ▼82 | 18.67 ▼3.32 | 360.93 ▲86.51 | 126.07 ▲21.12 |
Media Library /wp-admin/upload.php | 1,842 ▲32 | 5.05 ▼0.00 | 123.67 ▼32.99 | 122.85 ▼2.62 |
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
- This plugin did not uninstall successfully, leaving 3 options in the database
- s3bubble_oembed_activation_date
- s3bubble_oembed_connected_website
- s3bubble_oembed_plugin_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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/s3bubble-amazon-web-services-oembed-media-streaming-support/includes/s3bubble-oembed.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function ElementorS3BubbleOembed\\add_action() in wp-content/plugins/s3bubble-amazon-web-services-oembed-media-streaming-support/includes/elementor-plugin.php:82
- > 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 80% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 34 tag instead of maximum 10
s3bubble-amazon-web-services-oembed-media-streaming-support/s3bubble-oembed.php 62% from 13 tests
"S3Bubble Media Streaming (AWS|Elementor|YouTube|Vimeo Functionality)" version 8.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "3.8")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("s3bubble-amazon-web-services-oembed-media-streaming-support.php" instead of "s3bubble-oembed.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 167 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin4,176 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 362 | 219 | 2,054 |
CSS | 10 | 24 | 33 | 1,183 |
PHP | 10 | 410 | 488 | 663 |
PO File | 4 | 88 | 92 | 276 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 43 | |
▷ Static methods | 1 | 2.33% |
▷ Public methods | 39 | 90.70% |
▷ Protected methods | 3 | 6.98% |
▷ Private methods | 1 | 2.33% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/css/images/ic_cast_connected_blue_24dp.png | 1.28KB | 0.72KB | ▼ 43.85% |
dist/images/ic_cast_black_24dp.png | 0.72KB | 0.60KB | ▼ 15.90% |
dist/images/ic_cast_connected_black_24dp.png | 0.87KB | 0.72KB | ▼ 17.49% |
dist/css/images/ic_cast_grey_24dp.png | 0.86KB | 0.58KB | ▼ 31.62% |
dist/img/trans.png | 0.92KB | 0.09KB | ▼ 89.75% |