Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.79ms] Passed 4 tests
An overview of server-side resources used by Video Gallery Block - Display your videos as a gallery in a professional way
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.74 ▼0.47 |
Dashboard /wp-admin | 3.34 ▼0.00 | 45.96 ▼11.59 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.82 ▼0.67 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 82.65 ▼10.42 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.59 ▼0.33 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Video Gallery Block - Display your videos as a gallery in a professional way
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.25 ▼0.39 | 1.83 ▲0.38 | 45.60 ▲5.70 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.00 | 94.54 ▲6.38 | 42.15 ▲0.86 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.04 | 36.45 ▼0.07 | 34.76 ▼5.37 |
Add New Post /wp-admin/post-new.php | 6,371 ▲4,843 | 28.19 ▲5.07 | 901.46 ▲253.32 | 38.04 ▼17.07 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▼0.01 | 103.41 ▲4.52 | 46.41 ▲5.22 |
Uninstaller [IO: ▲0.00MB] [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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant VGB_PLUGIN_VERSION - assumed 'VGB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/video-gallery-block/dist/editor.asset.php on line 4
- > PHP Warning
Use of undefined constant VGB_PLUGIN_VERSION - assumed 'VGB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/video-gallery-block/dist/script.asset.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Requires at least: Version not formatted correctly
- Screenshots: These screenshots do not have images: #1 (Video Gallery Settings), #2 (Video Gallery)
video-gallery-block/index.php 85% from 13 tests
The primary PHP file in "Video Gallery Block - Display your videos as a gallery in a professional way" version 1.0.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("video-gallery-block.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin289 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 132 |
PO File | 1 | 37 | 70 | 92 |
PHP | 3 | 16 | 15 | 53 |
JavaScript | 5 | 1 | 21 | 8 |
CSS | 4 | 0 | 2 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin