Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼12.78MB] [CPU: ▼2,674,844.91ms] Passed 4 tests
Analyzing server-side resources used by Audio/Video Bonus Pack
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▼51.55 | 42.56 ▼10,699,371.80 |
Dashboard /wp-admin | 3.50 ▲0.11 | 56.16 ▼10.63 |
Posts /wp-admin/edit.php | 3.62 ▲0.21 | 53.38 ▲2.37 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.15 | 95.30 ▲0.43 |
Media Library /wp-admin/upload.php | 3.42 ▲0.15 | 45.04 ▲8.65 |
Server storage [IO: ▲45.60MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- Total filesystem usage must be limited to 25MB (currently using 45.60MB)
Filesystem: 719 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Audio/Video Bonus Pack
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲94 | 14.60 ▲0.31 | 1.90 ▼0.02 | 41.49 ▲0.46 |
Dashboard /wp-admin | 2,236 ▲59 | 5.79 ▲0.06 | 96.07 ▲8.54 | 42.33 ▼0.91 |
Posts /wp-admin/edit.php | 2,153 ▲56 | 2.34 ▲0.33 | 40.12 ▲5.10 | 37.82 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,741 ▲204 | 22.47 ▲4.18 | 652.48 ▼93.88 | 62.08 ▼4.66 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.35 ▲0.13 | 109.99 ▲3.90 | 50.00 ▲4.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/audio-video-bonus-pack/features/transcoding/templates.php
- 370× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/audio-video-bonus-pack/vendor/php-ffmpeg/extras/tests/src/FFMpeg/Format/Video/ThreeGPTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Alchemy\\BinaryDriver\\ProcessBuilderFactoryInterface' not found in wp-content/plugins/audio-video-bonus-pack/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/ProcessBuilderFactory.php:17
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/audio-video-bonus-pack/vendor/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php:33
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Process\\Exception\\ExceptionInterface' not found in wp-content/plugins/audio-video-bonus-pack/vendor/symfony/process/Symfony/Component/Process/Exception/RuntimeException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\Common\\Cache\\CacheProvider' not found in wp-content/plugins/audio-video-bonus-pack/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php:31
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/audio-video-bonus-pack/vendor/monolog/monolog/tests/Monolog/Handler/DoctrineCouchDBHandlerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'AVSingleton' not found in wp-content/plugins/audio-video-bonus-pack/features/soundcloud/soundcloud.php:11
- > PHP Fatal error
Uncaught Error: Interface 'FFMpeg\\Exception\\ExceptionInterface' not found in wp-content/plugins/audio-video-bonus-pack/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Exception/RuntimeException.php:14
- > PHP Fatal error
Uncaught Error: Class 'FFMpeg\\Tests\\TestCase' not found in wp-content/plugins/audio-video-bonus-pack/vendor/php-ffmpeg/php-ffmpeg/tests/FFMpeg/Tests/Media/AbstractMediaTestCase.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Handler\\HandlerInterface' not found in wp-content/plugins/audio-video-bonus-pack/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: media, video, audio
audio-video-bonus-pack/audio-video-bonus-pack.php Passed 13 tests
"Audio/Video Bonus Pack" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
66 characters long description:
Experimental/Supplemental features not included in WordPress core.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected53,865 lines of code in 657 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 426 | 6,381 | 11,229 | 25,144 |
HTML | 112 | 3,996 | 38 | 19,838 |
LESS | 36 | 589 | 700 | 3,336 |
JavaScript | 13 | 275 | 97 | 1,466 |
Markdown | 22 | 581 | 0 | 1,443 |
CSS | 10 | 284 | 180 | 1,017 |
JSON | 14 | 0 | 0 | 991 |
XML | 11 | 28 | 2 | 281 |
make | 1 | 22 | 5 | 106 |
Ant | 1 | 13 | 0 | 97 |
YAML | 7 | 20 | 1 | 86 |
Python | 2 | 74 | 143 | 52 |
INI | 1 | 1 | 0 | 5 |
reStructuredText | 1 | 2 | 1 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 59 | |
Interfaces | 38 | |
Traits | 2 | |
Classes | 392 | |
▷ Abstract classes | 30 | 7.65% |
▷ Concrete classes | 362 | 92.35% |
▷ Final classes | 0 | 0.00% |
Methods | 2,281 | |
▷ Static methods | 52 | 2.28% |
▷ Public methods | 1,868 | 81.89% |
▷ Protected methods | 303 | 13.28% |
▷ Private methods | 110 | 4.82% |
Functions | 116 | |
▷ Named functions | 11 | 9.48% |
▷ Anonymous functions | 105 | 90.52% |
Constants | 103 | |
▷ Global constants | 7 | 6.80% |
▷ Class constants | 96 | 93.20% |
▷ Public constants | 96 | 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
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/php-ffmpeg/php-ffmpeg/tests/files/watermark.png | 3.17KB | 1.74KB | ▼ 44.94% |
vendor/php-ffmpeg/php-ffmpeg/docs/source/_themes/Alchemy/static/img/project.png | 45.84KB | 22.42KB | ▼ 51.10% |
vendor/php-ffmpeg/php-ffmpeg/docs/source/API/API/i/arrows.png | 0.47KB | 0.33KB | ▼ 28.30% |
vendor/php-ffmpeg/php-ffmpeg/docs/source/API/API/i/tree_bg.png | 0.20KB | 0.10KB | ▼ 50.24% |
vendor/php-ffmpeg/php-ffmpeg/docs/source/API/API/i/results_bg.png | 0.68KB | 0.14KB | ▼ 79.45% |