Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.40ms] Passed 4 tests
Analyzing server-side resources used by Microsoft Azure Storage for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.79 ▲0.30 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.99 ▼15.59 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.46 ▼2.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.68 ▼3.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.90 ▲4.51 |
Server storage [IO: ▲1.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 272 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Microsoft Azure Storage for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.26 ▼0.46 | 1.72 ▲0.12 | 42.67 ▲1.94 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.05 | 86.95 ▼0.10 | 42.92 ▲3.46 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.08 | 34.47 ▼0.02 | 34.15 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.99 ▲0.11 | 602.65 ▼76.93 | 53.27 ▼13.37 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.17 ▼0.05 | 97.74 ▼7.41 | 42.54 ▼3.85 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 106× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/windows-azure-storage/vendor/guzzlehttp/psr7/src/FnStream.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/windows-azure-storage/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/windows-azure-storage/vendor/psr/http-client/src/RequestExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Class 'MicrosoftAzure\\Storage\\Common\\Models\\ServiceOptions' not found in wp-content/plugins/windows-azure-storage/vendor/microsoft/azure-storage-blob/src/Blob/Models/BlobServiceOptions.php:39
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/windows-azure-storage/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/windows-azure-storage/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'MicrosoftAzure\\Storage\\Common\\Internal\\Authentication\\IAuthScheme' not found in wp-content/plugins/windows-azure-storage/vendor/microsoft/azure-storage-common/src/Common/Internal/Authentication/TokenAuthScheme.php:42
- > PHP Fatal error
Uncaught Error: Class 'MicrosoftAzure\\Storage\\Blob\\Models\\BlobServiceOptions' not found in wp-content/plugins/windows-azure-storage/vendor/microsoft/azure-storage-blob/src/Blob/Models/GetBlobOptions.php:40
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16. in wp-content/plugins/windows-azure-storage/vendor/composer/platform_check.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'MicrosoftAzure\\Storage\\Blob\\Models\\BlobServiceOptions' not found in wp-content/plugins/windows-azure-storage/vendor/microsoft/azure-storage-blob/src/Blob/Models/CreateBlobOptions.php:39
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: cdn, upload, media files, microsoft azure storage, blob storage...
windows-azure-storage/windows-azure-storage.php 92% from 13 tests
The main PHP script in "Microsoft Azure Storage for WordPress" version 4.4.0 is automatically included on every request by WordPress
You should first fix the following items:
- Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "8.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin27,059 lines of code in 267 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 250 | 4,901 | 20,455 | 24,429 |
Markdown | 8 | 367 | 0 | 1,380 |
JSON | 1 | 0 | 0 | 733 |
JavaScript | 6 | 41 | 14 | 482 |
CSS | 2 | 8 | 0 | 35 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 30 | |
Traits | 8 | |
Classes | 197 | |
▷ Abstract classes | 4 | 2.03% |
▷ Concrete classes | 193 | 97.97% |
▷ Final classes | 35 | 18.13% |
Methods | 1,862 | |
▷ Static methods | 372 | 19.98% |
▷ Public methods | 1,562 | 83.89% |
▷ Protected methods | 139 | 7.47% |
▷ Private methods | 161 | 8.65% |
Functions | 207 | |
▷ Named functions | 57 | 27.54% |
▷ Anonymous functions | 150 | 72.46% |
Constants | 556 | |
▷ Global constants | 4 | 0.72% |
▷ Class constants | 552 | 99.28% |
▷ Public constants | 541 | 98.01% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/azure-icon.png | 51.83KB | 4.05KB | ▼ 92.18% |
images/azure-subscription.png | 7.95KB | 5.22KB | ▼ 34.34% |
images/Azure 2017.png | 58.99KB | 8.19KB | ▼ 86.11% |