84% multi-album-video-library

Code Review | BaseBuild: Multi Album Video Library Plugin

WordPress plugin BaseBuild: Multi Album Video Library Plugin scored84%from 54 tests.

About plugin

  • Plugin page: multi-album-video...
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 9, 2018
  • Latest release: Feb 9, 2018
  • Number of updates: 18
  • Update frequency: every 1.2 days
  • Top authors: basebuild (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /507 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.17ms] Passed 4 tests

This is a short check of server-side resources used by BaseBuild: Multi Album Video Library Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.77 ▼2.08
Dashboard /wp-admin3.31 ▲0.0149.78 ▼1.02
Posts /wp-admin/edit.php3.36 ▲0.0153.60 ▲2.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.60 ▼5.30
Media Library /wp-admin/upload.php3.24 ▲0.0137.51 ▼0.26

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for BaseBuild: Multi Album Video Library Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲10313.25 ▼1.181.89 ▲0.1645.53 ▲0.37
Dashboard /wp-admin2,222 ▲344.86 ▼1.05116.21 ▲10.2039.76 ▼0.29
Posts /wp-admin/edit.php2,105 ▲132.00 ▼0.0340.28 ▼0.7535.75 ▼1.01
Add New Post /wp-admin/post-new.php1,541 ▲2122.99 ▼0.23662.39 ▼22.9066.68 ▲10.05
Media Library /wp-admin/upload.php1,401 ▲194.42 ▲0.24109.43 ▲9.3947.45 ▲2.21

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/multi-album-video-library/includes/controller.php:59
    • > PHP Fatal error
      Uncaught Error: Interface 'Vimeo\\Exceptions\\ExceptionInterface' not found in wp-content/plugins/multi-album-video-library/vimeo/src/Vimeo/Exceptions/VimeoRequestException.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-album-video-library/init.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Vimeo\\Exceptions\\ExceptionInterface' not found in wp-content/plugins/multi-album-video-library/vimeo/src/Vimeo/Exceptions/VimeoUploadException.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-album-video-library/includes/admin-menu.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-album-video-library/init.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
6 plugin tags: galleries, video gallery, videos, multi-video, video albums...

multi-album-video-library/multi-album-video-library.php Passed 13 tests

The main PHP file in "BaseBuild: Multi Album Video Library Plugin" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
This plugin allows you to display and navigate your albums and videos from video-sharing websites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin831 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10179237643
Markdown2860165
JSON10022
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.25
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1381.25%
▷ Protected methods00.00%
▷ Private methods318.75%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin