Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.29MB] [CPU: ▲0.41ms] Passed 4 tests
Analyzing server-side resources used by WP Azure offload
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 49.68 ▲2.20 |
Dashboard /wp-admin | 3.63 ▲0.33 | 54.66 ▲2.68 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 54.26 ▲5.23 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 91.18 ▼8.49 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 41.32 ▲5.45 |
Server storage [IO: ▲9.50MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 895 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Azure offload
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.34 ▲0.07 | 1.54 ▼0.26 | 39.65 ▼4.25 |
Dashboard /wp-admin | 2,207 ▲30 | 5.56 ▼0.11 | 85.72 ▼4.86 | 40.04 ▼2.45 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.01 ▲0.06 | 36.45 ▲0.05 | 35.43 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.01 ▼0.80 | 660.16 ▲38.66 | 57.04 ▲10.52 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.20 ▼0.01 | 106.56 ▼34.19 | 43.35 ▼4.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 12× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-azure-offload/vendor/pear/http_request2/tests/_network/incompletebody.php
- > /wp-content/plugins/wp-azure-offload/vendor/pear/http_request2/tests/_network/bug20228.php
- > /wp-content/plugins/wp-azure-offload/vendor/firebase/php-jwt/tests/bootstrap.php
- > /wp-content/plugins/wp-azure-offload/vendor/pear/http_request2/tests/_network/getparameters.php
- > /wp-content/plugins/wp-azure-offload/vendor/pear/http_request2/tests/_network/download.php
- > /wp-content/plugins/wp-azure-offload/vendor/microsoft/windowsazure/build/release_tools.php
- > /wp-content/plugins/wp-azure-offload/vendor/pear/http_request2/tests/_network/setcookie.php
- > /wp-content/plugins/wp-azure-offload/vendor/pear/http_request2/tests/_network/bug19934.php
- > /wp-content/plugins/wp-azure-offload/vendor/pear/http_request2/tests/_network/postparameters.php
- > /wp-content/plugins/wp-azure-offload/view/footer.php
- 572× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-azure-offload/vendor/microsoft/windowsazure/tests/unit/WindowsAzure/ServiceManagement/Models/RoleInstanceTest.php:39
- > PHP Fatal error
Uncaught Error: Class 'Tests\\Framework\\ServiceRestProxyTestBase' not found in wp-content/plugins/wp-azure-offload/vendor/microsoft/windowsazure/tests/framework/BlobServiceRestProxyTestBase.php:42
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-azure-offload/vendor/microsoft/windowsazure/tests/unit/WindowsAzure/Blob/Models/CopyBlobOptionsTest.php:41
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-azure-offload/vendor/microsoft/windowsazure/tests/unit/WindowsAzure/Common/Models/OAuthAccessTokenTest.php:41
- > PHP Fatal error
Uncaught Error: Class 'WindowsAzure\\Table\\Models\\TableServiceOptions' not found in wp-content/plugins/wp-azure-offload/vendor/microsoft/windowsazure/WindowsAzure/Table/Models/QueryEntitiesOptions.php:38
- > PHP Fatal error
Uncaught Error: Class 'Tests\\Functional\\WindowsAzure\\Table\\FunctionalTestBase' not found in wp-content/plugins/wp-azure-offload/vendor/microsoft/windowsazure/tests/functional/WindowsAzure/Table/TableServiceFunctionalQueryTest.php:36
- > PHP Fatal error
Uncaught Error: Interface 'WindowsAzure\\Common\\Internal\\IServiceFilter' not found in wp-content/plugins/wp-azure-offload/vendor/microsoft/windowsazure/WindowsAzure/Common/Internal/Filters/DateFilter.php:40
- > PHP Fatal error
Uncaught Error: Class 'Tests\\Framework\\QueueServiceRestProxyTestBase' not found in wp-content/plugins/wp-azure-offload/vendor/microsoft/windowsazure/tests/unit/WindowsAzure/Queue/QueueRestProxyTest.php:53
- > PHP Fatal error
Uncaught Error: Class 'Tests\\Framework\\ServiceBusRestProxyTestBase' not found in wp-content/plugins/wp-azure-offload/vendor/microsoft/windowsazure/tests/unit/WindowsAzure/ServiceBus/ServiceBusRestProxyTest.php:62
- > PHP Fatal error
Uncaught Error: Class 'Tests\\Framework\\ServiceRestProxyTestBase' not found in wp-content/plugins/wp-azure-offload/vendor/microsoft/windowsazure/tests/unit/WindowsAzure/Common/ServicesBuilderTest.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Azure storage account configuration), #2 (Manually add storage), #3 (Browse existing storage containers), #4 (Create new storage container), #5 (The settings after adding storage container), #6 (Media handlers at media library list view if copy diles to azure storage and serve files using CDN url is checked)
wp-azure-offload/wp-azure-offload.php Passed 13 tests
The main PHP script in "WP Azure offload" version 2.0 is automatically included on every request by WordPress
66 characters long description:
Automatically copies media to Azure storage and deliver using CDN.
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
Everything looks great! No dangerous files found in this plugin93,666 lines of code in 857 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 807 | 20,329 | 69,256 | 86,577 |
XML | 14 | 79 | 7 | 3,045 |
JavaScript | 4 | 211 | 359 | 1,740 |
JSON | 10 | 0 | 0 | 810 |
Markdown | 7 | 268 | 0 | 723 |
CSS | 1 | 28 | 1 | 371 |
Ant | 1 | 25 | 32 | 149 |
YAML | 7 | 7 | 10 | 113 |
XSLT | 1 | 15 | 2 | 53 |
reStructuredText | 2 | 16 | 2 | 34 |
Bourne Shell | 1 | 3 | 4 | 31 |
DTD | 1 | 3 | 0 | 16 |
make | 1 | 4 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 7.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 318.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 71 | |
Interfaces | 25 | |
Traits | 0 | |
Classes | 711 | |
▷ Abstract classes | 7 | 0.98% |
▷ Concrete classes | 704 | 99.02% |
▷ Final classes | 0 | 0.00% |
Methods | 6,131 | |
▷ Static methods | 548 | 8.94% |
▷ Public methods | 5,664 | 92.38% |
▷ Protected methods | 158 | 2.58% |
▷ Private methods | 309 | 5.04% |
Functions | 44 | |
▷ Named functions | 30 | 68.18% |
▷ Anonymous functions | 14 | 31.82% |
Constants | 721 | |
▷ Global constants | 29 | 4.02% |
▷ Class constants | 692 | 95.98% |
▷ Public constants | 692 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin