Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲1.79ms] Passed 4 tests
A check of server-side resources used by Snap Video Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 55.59 ▲7.69 |
Dashboard /wp-admin | 3.40 ▲0.09 | 50.59 ▼4.44 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.93 ▲3.92 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 99.71 ▲9.97 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.22 ▼0.02 |
Settings /wp-admin/admin.php?page=snap-video-gallery-settings | 3.30 | 34.64 |
Videos /wp-admin/edit.php?post_type=snap-video | 3.36 | 37.26 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Snap Video Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲88 | 13.24 ▼1.13 | 2.36 ▲0.49 | 58.14 ▲16.19 |
Dashboard /wp-admin | 2,251 ▲48 | 4.85 ▼0.10 | 108.52 ▼8.87 | 40.45 ▼4.08 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.00 ▼0.05 | 41.00 ▲7.30 | 35.04 ▲0.44 |
Add New Post /wp-admin/post-new.php | 6,387 ▲4,842 | 27.80 ▲4.60 | 858.50 ▲185.73 | 69.91 ▲13.39 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.15 ▼0.07 | 99.69 ▼13.75 | 45.90 ▼2.29 |
Settings /wp-admin/admin.php?page=snap-video-gallery-settings | 854 | 2.15 | 25.60 | 31.45 |
Videos /wp-admin/edit.php?post_type=snap-video | 1,088 | 1.98 | 32.23 | 29.06 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/snap-video-gallery/templates/modal.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/snap-video-gallery/templates/admin/video-url-meta.php:13
- > PHP Notice
Undefined variable: display in wp-content/plugins/snap-video-gallery/templates/gallery.php on line 9
- > PHP Notice
Undefined variable: display in wp-content/plugins/snap-video-gallery/templates/video.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/snap-video-gallery/templates/modal.php:12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/snap-video-gallery/templates/video.php on line 9
- > PHP Notice
Undefined variable: display in wp-content/plugins/snap-video-gallery/templates/modal.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/snap-video-gallery/templates/player.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/snap-video-gallery/templates/player.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/snap-video-gallery/templates/video.php:13
- > PHP Notice
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: gallery, vimeo, video, videos, youtube...
snap-video-gallery/snap-video-gallery.php Passed 13 tests
The main PHP file in "Snap Video Gallery" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
93 characters long description:
Easy-to-use video gallery that enables you to insert a gallery of videos into a page or post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin829 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 177 | 40 | 673 |
CSS | 1 | 13 | 0 | 82 |
JavaScript | 2 | 14 | 0 | 74 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 8 | 13.56% |
▷ Public methods | 49 | 83.05% |
▷ Protected methods | 10 | 16.95% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin