Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.80MB] [CPU: ▲9.04ms] 75% from 4 tests
A check of server-side resources used by Uploadcare File Uploader and Adaptive Delivery (beta)
Please have a look at the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 618.47ms on /wp-admin/options-general.php?page=uploadcare)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.29 ▲1.83 | 53.73 ▲15.44 |
Dashboard /wp-admin | 5.14 ▲1.83 | 58.12 ▲8.43 |
Posts /wp-admin/edit.php | 5.21 ▲1.85 | 68.28 ▲16.99 |
Add New Post /wp-admin/post-new.php | 7.66 ▲1.77 | 93.53 ▼4.69 |
Media Library /wp-admin/upload.php | 5.00 ▲1.76 | 51.32 ▲18.40 |
Uploadcare /wp-admin/options-general.php?page=uploadcare | 5.57 | 618.47 |
/wp-admin/admin.php?page=transfer-by-post | 6.11 | 54.69 |
Server storage [IO: ▲3.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 663 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Uploadcare File Uploader and Adaptive Delivery (beta)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲161 | 14.27 ▼0.01 | 1.56 ▼0.22 | 41.97 ▼2.25 |
Dashboard /wp-admin | 2,316 ▲139 | 6.02 ▲0.37 | 112.21 ▲20.64 | 67.68 ▲27.76 |
Posts /wp-admin/edit.php | 2,246 ▲143 | 3.09 ▲1.14 | 49.20 ▲9.61 | 35.51 ▼2.08 |
Add New Post /wp-admin/post-new.php | 6,524 ▲4,998 | 30.47 ▲6.97 | 860.77 ▲153.19 | 37.07 ▼14.98 |
Media Library /wp-admin/upload.php | 1,573 ▲176 | 5.96 ▲1.79 | 129.47 ▲27.00 | 45.19 ▼0.22 |
Uploadcare /wp-admin/options-general.php?page=uploadcare | 1,233 | 2.53 | 37.42 | 28.02 |
/wp-admin/admin.php?page=transfer-by-post | 1,015 | 2.76 | 35.94 | 50.52 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 315× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/uploadcare/vendor/twig/twig/src/Node/Expression/ParentExpression.php:22
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/uploadcare/vendor/uploadcare/uploadcare-php/tests/Uploader/UploaderMethodsTest.php:20
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/uploadcare/vendor/twig/twig/src/Node/IncludeNode.php:23
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\ameExpression' not found in wp-content/plugins/uploadcare/vendor/twig/twig/src/Node/Expression/AssignNameExpression.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\IncludeTokenParser' not found in wp-content/plugins/uploadcare/vendor/twig/twig/src/TokenParser/EmbedTokenParser.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Uploadcare\\Interfaces\\Serializer\ameConverterInterface' not found in wp-content/plugins/uploadcare/vendor/uploadcare/uploadcare-php/src/Serializer/SnackCaseConverter.php:10
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Sandbox\\SecurityError' not found in wp-content/plugins/uploadcare/vendor/twig/twig/src/Sandbox/SecurityNotAllowedFunctionError.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/uploadcare/vendor/twig/twig/src/TokenParser/ImportTokenParser.php:26
- > PHP Fatal error
Uncaught Error: Class 'Tests\\LoadedPluginTestCase' not found in wp-content/plugins/uploadcare/tests/PluginFileTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\DomCrawler\\Field\\FormField' not found in wp-content/plugins/uploadcare/vendor/symfony/dom-crawler/Field/InputFormField.php:22
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: optimization, adaptive delivery, file upload, lazy loading, responsive...
uploadcare/uploadcare.php 92% from 13 tests
The principal PHP file in "Uploadcare File Uploader and Adaptive Delivery (beta)" v. 3.0.11 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 221 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected55,354 lines of code in 623 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 507 | 7,661 | 14,656 | 36,495 |
JSON | 41 | 0 | 0 | 12,415 |
Markdown | 27 | 1,864 | 0 | 4,869 |
TypeScript | 15 | 109 | 0 | 697 |
CSS | 3 | 10 | 1 | 163 |
Twig | 7 | 9 | 8 | 163 |
Sass | 3 | 13 | 0 | 161 |
Bourne Shell | 2 | 24 | 12 | 133 |
JavaScript | 11 | 20 | 3 | 99 |
XML | 3 | 1 | 0 | 64 |
PO File | 1 | 15 | 0 | 43 |
YAML | 1 | 2 | 0 | 33 |
reStructuredText | 1 | 8 | 5 | 10 |
SVG | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 8.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 73 | |
Interfaces | 77 | |
Traits | 3 | |
Classes | 397 | |
▷ Abstract classes | 17 | 4.28% |
▷ Concrete classes | 380 | 95.72% |
▷ Final classes | 128 | 33.68% |
Methods | 2,838 | |
▷ Static methods | 285 | 10.04% |
▷ Public methods | 2,423 | 85.38% |
▷ Protected methods | 154 | 5.43% |
▷ Private methods | 261 | 9.20% |
Functions | 316 | |
▷ Named functions | 202 | 63.92% |
▷ Anonymous functions | 114 | 36.08% |
Constants | 211 | |
▷ Global constants | 34 | 16.11% |
▷ Class constants | 177 | 83.89% |
▷ Public constants | 160 | 90.40% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/logo_32.png | 1.37KB | 1.92KB | 0.00% |
media/logo.png | 0.58KB | 0.92KB | 0.00% |