Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼1.21ms] Passed 4 tests
An overview of server-side resources used by Selectel Storage Upload
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 42.86 ▲7.48 |
Dashboard /wp-admin | 3.51 ▲0.21 | 51.34 ▲4.43 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 46.42 ▲0.91 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 82.15 ▼9.61 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 36.07 ▼0.56 |
Selectel Upload /wp-admin/options-general.php?page=selectel-storage-upload/code.php | 3.41 | 40.20 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 94 new files
Database: no new tables, 9 new options
New WordPress options |
---|
selupload_path_in_storage |
selupload_filter |
selupload_auth |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Selectel Storage Upload
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.22 ▼1.40 | 1.73 ▲0.04 | 44.78 ▲3.46 |
Dashboard /wp-admin | 2,214 ▲29 | 4.88 ▼0.99 | 111.25 ▲7.56 | 44.32 ▲0.56 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.01 ▼0.02 | 33.74 ▼1.93 | 33.92 ▼2.23 |
Add New Post /wp-admin/post-new.php | 1,524 ▲5 | 23.46 ▲0.44 | 597.42 ▼27.77 | 49.33 ▼2.85 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.22 ▲0.06 | 95.14 ▼2.77 | 41.20 ▼1.53 |
Selectel Upload /wp-admin/options-general.php?page=selectel-storage-upload/code.php | 1,124 | 2.19 | 25.12 | 35.32 |
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 9 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- selupload_path_in_storage
- selupload_filter
- db_upgraded
- selupload_auth
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
- 33× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/selectel-storage-upload/code.php:48
- > PHP Fatal error
Uncaught Error: Class 'OpenStackStorage\\Exceptions\\Error' not found in wp-content/plugins/selectel-storage-upload/vendor/endeveit/open-stack-storage/src/Exceptions/ContainerNotPublic.php:14
- > PHP Fatal error
Uncaught Error: Class 'OpenStackStorageTest\\Base' not found in wp-content/plugins/selectel-storage-upload/vendor/endeveit/open-stack-storage/tests/src/ObjectTest.php:4
- > PHP Fatal error
Uncaught Error: Class 'OpenStackStorageTest\\Base' not found in wp-content/plugins/selectel-storage-upload/vendor/endeveit/open-stack-storage/tests/src/AuthenticationTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'OpenStackStorage\\Exceptions\\Error' not found in wp-content/plugins/selectel-storage-upload/vendor/endeveit/open-stack-storage/src/Exceptions/ContainerExists.php:15
- > PHP Fatal error
Uncaught Error: Class 'OpenStackStorage\\Exceptions\\Error' not found in wp-content/plugins/selectel-storage-upload/vendor/endeveit/open-stack-storage/src/Exceptions/InvalidMetaName.php:14
- > PHP Fatal error
Uncaught Error: Class 'OpenStackStorage\\Exceptions\\Error' not found in wp-content/plugins/selectel-storage-upload/vendor/endeveit/open-stack-storage/src/Exceptions/AuthenticationError.php:14
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/selectel-storage-upload/vendor/psr/log/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Class 'Resty\\Resty' not found in wp-content/plugins/selectel-storage-upload/vendor/endeveit/open-stack-storage/src/Client.php:16
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/selectel-storage-upload/vendor/resty/resty/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/selectel-storage-upload/vendor/resty/resty/tests/tests.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: storage, cloud, selectel, media library, openstack...
selectel-storage-upload/supload.php 85% from 13 tests
The main file in "Selectel Storage Upload" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("selectel-storage-upload.php" instead of "supload.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5,043 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 854 | 2,429 | 3,707 |
PO File | 3 | 133 | 159 | 464 |
JSON | 6 | 0 | 0 | 346 |
Markdown | 5 | 131 | 0 | 343 |
JavaScript | 1 | 1 | 0 | 90 |
CSS | 1 | 1 | 1 | 40 |
XML | 2 | 0 | 0 | 38 |
Bourne Shell | 1 | 4 | 2 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 40 | |
▷ Abstract classes | 2 | 5.00% |
▷ Concrete classes | 38 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 237 | |
▷ Static methods | 6 | 2.53% |
▷ Public methods | 210 | 88.61% |
▷ Protected methods | 24 | 10.13% |
▷ Private methods | 3 | 1.27% |
Functions | 37 | |
▷ Named functions | 24 | 64.86% |
▷ Anonymous functions | 13 | 35.14% |
Constants | 21 | |
▷ Global constants | 5 | 23.81% |
▷ Class constants | 16 | 76.19% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.45MB with 0.26MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/endeveit/open-stack-storage/tests/fixtures/container-1/Lenna.png | 462.14KB | 192.04KB | ▼ 58.45% |