Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.98MB] [CPU: ▲2.89ms] 75% from 4 tests
Server-side resources used by Video Uploads for Vimeo
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 675.35ms on /wp-admin/options-general.php?page=dgv-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.46 ▲1.00 | 47.61 ▲3.41 |
Dashboard /wp-admin | 4.28 ▲0.98 | 54.78 ▲9.25 |
Posts /wp-admin/edit.php | 4.33 ▲0.98 | 60.10 ▲6.81 |
Add New Post /wp-admin/post-new.php | 6.88 ▲1.00 | 90.51 ▼7.93 |
Media Library /wp-admin/upload.php | 4.21 ▲0.98 | 52.59 ▲15.58 |
Vimeo /wp-admin/options-general.php?page=dgv-settings | 4.20 | 675.35 |
Vimeo /wp-admin/upload.php?page=dgv-library | 4.19 | 39.03 |
Server storage [IO: ▲17.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4,109 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Video Uploads for Vimeo
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,986 ▲229 | 14.44 ▲0.07 | 1.69 ▼0.48 | 37.62 ▼9.50 |
Dashboard /wp-admin | 2,395 ▲207 | 5.67 ▼0.22 | 124.53 ▲20.68 | 55.27 ▲9.72 |
Posts /wp-admin/edit.php | 2,275 ▲186 | 2.38 ▲0.38 | 47.10 ▲4.00 | 46.81 ▲10.37 |
Add New Post /wp-admin/post-new.php | 6,598 ▲5,063 | 18.79 ▼4.25 | 950.72 ▲246.92 | 50.23 ▼3.74 |
Media Library /wp-admin/upload.php | 1,577 ▲192 | 5.02 ▲0.81 | 104.98 ▲0.57 | 50.86 ▲5.90 |
Vimeo /wp-admin/options-general.php?page=dgv-settings | 1,043 | 2.40 | 26.96 | 29.89 |
Vimeo /wp-admin/upload.php?page=dgv-library | 1,034 | 2.61 | 35.33 | 24.38 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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 take a closer look at the following
- 32× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle7/vendor/predis/predis/examples/lua_scripting_abstraction.php
- > /wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle7/vendor/predis/predis/examples/transaction_using_cas.php
- > /wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle6/vendor/predis/predis/examples/redis_collections_iterators.php
- > /wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle7/vendor/predis/predis/examples/replication_sentinel.php
- > /wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle6/vendor/predis/predis/examples/replication_sentinel.php
- > /wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle7/vendor/predis/predis/examples/monitor_consumer.php
- > /wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle6/vendor/predis/predis/examples/shared.php
- > /wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle6/vendor/predis/predis/examples/replication_simple.php
- > /wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle6/vendor/predis/predis/examples/transaction_using_cas.php
- > /wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle7/vendor/predis/predis/examples/debuggable_connection.php
- 1510× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TusPhp\\Cache\\AbstractCache' not found in wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle7/vendor/ankitpokhrel/tus-php/src/Cache/RedisStore.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Exception\\UuidExceptionInterface' not found in wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle6/vendor/ramsey/uuid/src/Exception/BuilderNotFoundException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface' not found in wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle6/vendor/symfony/translation/DependencyInjection/TranslationExtractorPass.php:22
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\PubSubSubscribe' not found in wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle6/vendor/predis/predis/src/Command/PubSubSubscribeByPattern.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle6/vendor/symfony/translation/Dumper/IniFileDumper.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\Constraint\\Constraint' not found in wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle6/vendor/symfony/http-foundation/Test/Constraint/ResponseCookieValueSame.php:18
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle7/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle6/vendor/guzzlehttp/guzzle/src/Pool.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle6/vendor/symfony/translation/Test/ProviderFactoryTestCase.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/wp-vimeo-videos/libraries/vimeo-php-guzzle6/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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
5 plugin tags: video, upload, embed video, vimeo, upload vimeo
wp-vimeo-videos/wp-vimeo-videos.php Passed 13 tests
The main PHP file in "Video Uploads for Vimeo" ver. 1.9.4 adds more information about the plugin and also serves as the entry point for this plugin
56 characters long description:
Embed and upload videos to Vimeo directly from WordPress
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected140,250 lines of code in 1,949 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,893 | 59,729 | 128,930 | 122,690 |
Markdown | 27 | 2,124 | 0 | 7,167 |
JSON | 3 | 0 | 0 | 5,518 |
XSD | 3 | 92 | 48 | 2,803 |
JavaScript | 9 | 161 | 257 | 1,292 |
CSS | 5 | 76 | 23 | 596 |
XML | 3 | 4 | 1 | 60 |
Bourne Again Shell | 1 | 10 | 14 | 57 |
INI | 1 | 6 | 6 | 24 |
YAML | 2 | 2 | 0 | 24 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 10.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 306.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 162 | |
Interfaces | 306 | |
Traits | 81 | |
Classes | 1,752 | |
▷ Abstract classes | 92 | 5.25% |
▷ Concrete classes | 1,660 | 94.75% |
▷ Final classes | 293 | 17.65% |
Methods | 13,217 | |
▷ Static methods | 1,464 | 11.08% |
▷ Public methods | 11,059 | 83.67% |
▷ Protected methods | 1,086 | 8.22% |
▷ Private methods | 1,072 | 8.11% |
Functions | 1,296 | |
▷ Named functions | 426 | 32.87% |
▷ Anonymous functions | 870 | 67.13% |
Constants | 1,369 | |
▷ Global constants | 195 | 14.24% |
▷ Class constants | 1,174 | 85.76% |
▷ Public constants | 1,007 | 85.78% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
shared/img/icon-64.png | 0.25KB | 0.24KB | ▼ 4.98% |