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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.77 ▼2.08 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.78 ▼1.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 53.60 ▲2.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.60 ▼5.30 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲103 | 13.25 ▼1.18 | 1.89 ▲0.16 | 45.53 ▲0.37 |
Dashboard /wp-admin | 2,222 ▲34 | 4.86 ▼1.05 | 116.21 ▲10.20 | 39.76 ▼0.29 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.00 ▼0.03 | 40.28 ▼0.75 | 35.75 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,541 ▲21 | 22.99 ▼0.23 | 662.39 ▼22.90 | 66.68 ▲10.05 |
Media Library /wp-admin/upload.php | 1,401 ▲19 | 4.42 ▲0.24 | 109.43 ▲9.39 | 47.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 179 | 237 | 643 |
Markdown | 2 | 86 | 0 | 165 |
JSON | 1 | 0 | 0 | 22 |
CSS | 1 | 0 | 0 | 1 |
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 code | 0.36 |
Average class complexity | 10.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 18.75% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.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