Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.35MB] [CPU: ▼17.84ms] Passed 4 tests
Server-side resources used by Video-Link-Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 5.27 ▼39.12 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.35 ▼2.15 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.03 ▲1.18 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.62 ▼27.40 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.67 ▼2.68 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Video-Link-Gallery: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.21 ▼1.08 | 1.71 ▲0.05 | 41.76 ▲2.01 |
Dashboard /wp-admin | 2,209 ▲21 | 4.84 ▼0.02 | 107.31 ▼1.01 | 37.85 ▼5.60 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.02 ▼0.02 | 40.21 ▲6.45 | 34.76 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 22.89 ▲5.38 | 693.38 ▲19.84 | 53.92 ▼6.31 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.28 ▲0.07 | 92.25 ▼8.14 | 44.12 ▼1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/video-link-gallery/index.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/video-link-gallery/tests/TestCase.php:5
- > PHP Fatal error
Uncaught Error: Class 'TestCase' not found in wp-content/plugins/video-link-gallery/tests/ShortCodes/VideoGalleryTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'Coderey\\VideoLinkGallery\\VideoProvider\\VideoProviderAbstract' not found in wp-content/plugins/video-link-gallery/src/VideoProvider/Youtube.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Coderey\\VideoLinkGallery\\VideoProvider\\VideoProviderInterface' not found in wp-content/plugins/video-link-gallery/src/VideoProvider/VideoProviderAbstract.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Coderey\\VideoLinkGallery\\Lightbox\\LightboxInterface' not found in wp-content/plugins/video-link-gallery/src/Lightbox/PhotoSwipe.php:11
- > PHP Fatal error
Uncaught Error: Class 'Coderey\\VideoLinkGallery\\VideoProvider\\VideoProviderAbstract' not found in wp-content/plugins/video-link-gallery/src/VideoProvider/Vimeo.php:8
- > PHP Fatal error
Uncaught Error: Class 'Coderey\\VideoLinkGallery\\VideoProvider\\VideoProviderAbstract' not found in wp-content/plugins/video-link-gallery/src/VideoProvider/Link.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 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
5 plugin tags: video-gallery, lightbox, vimeo, photoswipe, youtube
video-link-gallery/index.php 92% from 13 tests
The main PHP script in "Video-Link-Gallery" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("video-link-gallery.php" instead of "index.php")
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 detected4,632 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 982 | 422 | 3,446 |
CSS | 4 | 103 | 93 | 687 |
PHP | 12 | 93 | 201 | 469 |
JSON | 1 | 1 | 0 | 24 |
Markdown | 1 | 3 | 0 | 5 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 80.43% |
▷ Protected methods | 9 | 19.57% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
photoswipe/default-skin/default-skin.png | 0.53KB | 0.72KB | 0.00% |