78% audio-video-bonus-pack

Code Review | Audio/Video Bonus Pack

WordPress plugin Audio/Video Bonus Pack scored78%from 54 tests.

About plugin

  • Plugin page: audio-video-bonus...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2014
  • Latest release: Mar 10, 2015
  • Number of updates: 15
  • Update frequency: every 22.0 days
  • Top authors: wonderboymusic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,717 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.66 ▼51.5542.56 ▼10,699,371.80
Dashboard /wp-admin3.50 ▲0.1156.16 ▼10.63
Posts /wp-admin/edit.php3.62 ▲0.2153.38 ▲2.37
Add New Post /wp-admin/post-new.php6.09 ▲0.1595.30 ▲0.43
Media Library /wp-admin/upload.php3.42 ▲0.1545.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9414.60 ▲0.311.90 ▼0.0241.49 ▲0.46
Dashboard /wp-admin2,236 ▲595.79 ▲0.0696.07 ▲8.5442.33 ▼0.91
Posts /wp-admin/edit.php2,153 ▲562.34 ▲0.3340.12 ▲5.1037.82 ▲0.36
Add New Post /wp-admin/post-new.php1,741 ▲20422.47 ▲4.18652.48 ▼93.8862.08 ▼4.66
Media Library /wp-admin/upload.php1,440 ▲374.35 ▲0.13109.99 ▲3.9050.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP4266,38111,22925,144
HTML1123,9963819,838
LESS365897003,336
JavaScript13275971,466
Markdown2258101,443
CSS102841801,017
JSON1400991
XML11282281
make1225106
Ant113097
YAML720186
Python27414352
INI1105
reStructuredText1213

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 code0.19
Average class complexity4.89
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces59
Interfaces38
Traits2
Classes392
▷ Abstract classes307.65%
▷ Concrete classes36292.35%
▷ Final classes00.00%
Methods2,281
▷ Static methods522.28%
▷ Public methods1,86881.89%
▷ Protected methods30313.28%
▷ Private methods1104.82%
Functions116
▷ Named functions119.48%
▷ Anonymous functions10590.52%
Constants103
▷ Global constants76.80%
▷ Class constants9693.20%
▷ Public constants96100.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
FileSize - originalSize - compressedSavings
vendor/php-ffmpeg/php-ffmpeg/tests/files/watermark.png3.17KB1.74KB▼ 44.94%
vendor/php-ffmpeg/php-ffmpeg/docs/source/_themes/Alchemy/static/img/project.png45.84KB22.42KB▼ 51.10%
vendor/php-ffmpeg/php-ffmpeg/docs/source/API/API/i/arrows.png0.47KB0.33KB▼ 28.30%
vendor/php-ffmpeg/php-ffmpeg/docs/source/API/API/i/tree_bg.png0.20KB0.10KB▼ 50.24%
vendor/php-ffmpeg/php-ffmpeg/docs/source/API/API/i/results_bg.png0.68KB0.14KB▼ 79.45%