Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.45MB] [CPU: ▼5.63ms] Passed 4 tests
Server-side resources used by Video Sales for Woocommerce with Vimeo
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 42.56 ▼10.05 |
Dashboard /wp-admin | 3.77 ▲0.46 | 51.64 ▼4.74 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 51.43 ▼2.93 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 94.32 ▼4.81 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 37.79 ▼1.97 |
Server storage [IO: ▲7.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 1,816 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Video Sales for Woocommerce with Vimeo
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.47 ▲0.18 | 1.71 ▼0.58 | 41.39 ▼12.86 |
Dashboard /wp-admin | 2,206 ▲24 | 4.87 ▼0.00 | 102.64 ▼42.18 | 42.91 ▼4.51 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.05 | 39.48 ▼8.74 | 32.24 ▼6.46 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.11 ▼0.02 | 625.36 ▼68.74 | 52.00 ▼10.38 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.18 ▼0.02 | 103.49 ▼4.93 | 50.85 ▲1.44 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wc-vimeo/vendor/symfony/mime/Resources/bin/update_mime_types.php
- > /wp-content/plugins/wc-vimeo/vendor/symfony/translation/Resources/bin/translation-status.php
- 600× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/wc-vimeo/vendor/predis/predis/src/Command/StringBitField.php:19
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\KeyExpire' not found in wp-content/plugins/wc-vimeo/vendor/predis/predis/src/Command/KeyPreciseExpire.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Extractor\\AbstractFileExtractor' not found in wp-content/plugins/wc-vimeo/vendor/symfony/translation/Extractor/PhpExtractor.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\SessionStorageInterface' not found in wp-content/plugins/wc-vimeo/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:25
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Uuid\\Codec\\StringCodec' not found in wp-content/plugins/wc-vimeo/vendor/ramsey/uuid/src/Codec/GuidStringCodec.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Predis\\Connection\\ParametersInterface' not found in wp-content/plugins/wc-vimeo/vendor/predis/predis/src/Connection/Parameters.php:21
- > PHP Fatal error
Uncaught Predis\\Connection\\ConnectionException: Connection refused [tcp://127.0.0.1:6379] in wp-content/plugins/wc-vimeo/vendor/predis/predis/src/Connection/AbstractConnection.php:155
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wc-vimeo/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/wc-vimeo/vendor/predis/predis/src/Command/ZSetUnionStore.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Reader\\TranslationReaderInterface' not found in wp-content/plugins/wc-vimeo/vendor/symfony/translation/Reader/TranslationReader.php:23
- > 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)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: video, vimeo, sell, woocommerce
wc-vimeo/woocommerce-vimeo.php 62% from 13 tests
The principal PHP file in "Video Sales for Woocommerce with Vimeo" v. 0.0.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "3.5")
- Git Repository: Please remove the Git repository from this plugin
- Main file name: The principal plugin file should be the same as the plugin slug ("wc-vimeo.php" instead of "woocommerce-vimeo.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please make sure to remedy the following
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wc-vimeo/vendor/nesbot/carbon/bin/carbon.bat
- .exe - Executable in Windows
- ☣ wp-content/plugins/wc-vimeo/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,484 | 51,733 | 109,687 | 75,237 |
Markdown | 43 | 2,306 | 0 | 6,615 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 28 | 0 | 0 | 2,768 |
XML | 4 | 3 | 1 | 102 |
CSS | 1 | 8 | 0 | 53 |
JavaScript | 1 | 1 | 2 | 43 |
YAML | 4 | 7 | 1 | 38 |
INI | 1 | 6 | 6 | 24 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
DOS Batch | 1 | 0 | 0 | 4 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 139)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 9.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 139.00 |
Code structure | ||
---|---|---|
Namespaces | 120 | |
Interfaces | 110 | |
Traits | 27 | |
Classes | 668 | |
▷ Abstract classes | 29 | 4.34% |
▷ Concrete classes | 639 | 95.66% |
▷ Final classes | 63 | 9.86% |
Methods | 5,169 | |
▷ Static methods | 544 | 10.52% |
▷ Public methods | 4,269 | 82.59% |
▷ Protected methods | 499 | 9.65% |
▷ Private methods | 401 | 7.76% |
Functions | 535 | |
▷ Named functions | 162 | 30.28% |
▷ Anonymous functions | 373 | 69.72% |
Constants | 381 | |
▷ Global constants | 44 | 11.55% |
▷ Class constants | 337 | 88.45% |
▷ Public constants | 318 | 94.36% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin