Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.47ms] Passed 4 tests
This is a short check of server-side resources used by Rafa Azure Simple Upload
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.08 ▼4.80 |
Dashboard /wp-admin | 3.39 ▲0.05 | 49.67 ▼15.10 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 50.94 ▲0.77 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 93.86 ▼14.74 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 42.95 ▲5.22 |
Rafa Azure Simple Upload /wp-admin/options-general.php?page=rafa-azure-simple-upload-plugin-options | 3.97 | 54.32 |
Server storage [IO: ▲5.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 1,434 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Rafa Azure Simple Upload
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.72 ▲0.37 | 1.92 ▲0.16 | 42.39 ▼0.30 |
Dashboard /wp-admin | 2,199 ▲21 | 5.56 ▼0.09 | 90.24 ▼11.74 | 41.50 ▼6.06 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.02 ▲0.00 | 35.09 ▼1.46 | 36.71 ▲0.00 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.15 ▼0.05 | 664.57 ▼35.27 | 55.00 ▲3.29 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.12 ▼0.07 | 107.54 ▲0.69 | 47.70 ▲2.77 |
Rafa Azure Simple Upload /wp-admin/options-general.php?page=rafa-azure-simple-upload-plugin-options | 897 | 2.03 | 22.33 | 30.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=rafa-azure-simple-upload-plugin-options
- > Deprecated in wp-content/plugins/rafa-azure-simple-upload/vendor/twig/twig/lib/Twig/Node.php+198
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
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
The following issues need your attention
- 576× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Twig_TemplateInterface' not found in wp-content/plugins/rafa-azure-simple-upload/vendor/twig/twig/lib/Twig/Template.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rafa-azure-simple-upload/vendor/microsoft/azure-storage/tests/Unit/Blob/Models/CreateBlobOptionsTest.php:41
- > PHP Fatal error
Uncaught Error: Class 'MicrosoftAzure\\Storage\\Tests\\Functional\\Table\\IntegrationTestBase' not found in wp-content/plugins/rafa-azure-simple-upload/vendor/microsoft/azure-storage/tests/Functional/Table/TableServiceIntegrationTest.php:41
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/rafa-azure-simple-upload/vendor/twig/twig/test/Twig/Tests/LexerTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/rafa-azure-simple-upload/vendor/twig/extensions/lib/Twig/Extensions/Extension/Text.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/rafa-azure-simple-upload/vendor/guzzlehttp/psr7/src/NoSeekStream.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/rafa-azure-simple-upload/vendor/twig/twig/test/Twig/Tests/Cache/FilesystemTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Twig_CacheInterface' not found in wp-content/plugins/rafa-azure-simple-upload/vendor/twig/twig/lib/Twig/Cache/Null.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rafa-azure-simple-upload/vendor/microsoft/azure-storage/tests/Unit/Blob/Models/LeaseResultTest.php:38
- > PHP Fatal error
Uncaught Error: Class 'MicrosoftAzure\\Storage\\Tests\\Functional\\File\\IntegrationTestBase' not found in wp-content/plugins/rafa-azure-simple-upload/vendor/microsoft/azure-storage/tests/Functional/File/FunctionalTestBase.php:30
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: wordpress upload, upload, azure, microsoft upload azure
rafa-azure-simple-upload/rafa-azure-simple-upload.php Passed 13 tests
The principal PHP file in "Rafa Azure Simple Upload" v. 1.1.1 is loaded by WordPress automatically on each request
57 characters long description:
Use the Windows Azure to host your website's media files.
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
There were no executable files found in this plugin86,924 lines of code in 1,135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 979 | 15,980 | 47,733 | 77,216 |
Markdown | 14 | 1,075 | 0 | 3,641 |
reStructuredText | 96 | 2,582 | 2,249 | 3,608 |
C | 1 | 172 | 184 | 859 |
JSON | 9 | 0 | 0 | 795 |
Ant | 1 | 45 | 20 | 274 |
XML | 8 | 29 | 0 | 174 |
PO File | 2 | 52 | 52 | 147 |
HTML | 12 | 7 | 0 | 104 |
YAML | 2 | 16 | 1 | 63 |
C/C++ Header | 1 | 7 | 13 | 15 |
Twig | 8 | 6 | 0 | 14 |
make | 1 | 4 | 0 | 9 |
m4 | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 360.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 85 | |
Interfaces | 67 | |
Traits | 7 | |
Classes | 928 | |
▷ Abstract classes | 20 | 2.16% |
▷ Concrete classes | 908 | 97.84% |
▷ Final classes | 12 | 1.32% |
Methods | 5,551 | |
▷ Static methods | 595 | 10.72% |
▷ Public methods | 4,784 | 86.18% |
▷ Protected methods | 376 | 6.77% |
▷ Private methods | 391 | 7.04% |
Functions | 439 | |
▷ Named functions | 222 | 50.57% |
▷ Anonymous functions | 217 | 49.43% |
Constants | 706 | |
▷ Global constants | 6 | 0.85% |
▷ Class constants | 700 | 99.15% |
▷ Public constants | 700 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin