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.02MB] [CPU: ▼20.09ms] Passed 4 tests
An overview of server-side resources used by Rio Video Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 40.62 ▲2.08 |
Dashboard /wp-admin | 3.40 ▲0.05 | 34.02 ▼35.77 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 36.34 ▼11.71 |
Add New Post /wp-admin/post-new.php | 5.64 ▼0.25 | 69.13 ▼28.43 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 29.28 ▼4.45 |
Video Categories /wp-admin/edit-tags.php?taxonomy=video-categories&post_type=video-gallery | 3.39 | 32.11 |
Add New /wp-admin/post-new.php?post_type=video-gallery | 3.46 | 40.03 |
All Videos /wp-admin/edit.php?post_type=video-gallery | 3.44 | 31.59 |
Settings /wp-admin/edit.php?post_type=video-gallery&page=video_gallery_settings | 3.37 | 29.07 |
Server storage [IO: ▲2.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_video_gallery |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Rio Video Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲152 | 13.42 ▼0.85 | 9.82 ▲8.21 | 43.14 ▼1.57 |
Dashboard /wp-admin | 2,236 ▲59 | 5.57 ▼0.08 | 86.50 ▼3.64 | 39.62 ▼3.94 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.95 ▼0.06 | 34.48 ▲0.90 | 35.53 ▲0.40 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.82 ▲0.63 | 625.32 ▼50.28 | 62.01 ▲6.75 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.15 ▼0.05 | 95.00 ▼13.09 | 43.92 ▼2.71 |
Video Categories /wp-admin/edit-tags.php?taxonomy=video-categories&post_type=video-gallery | 1,315 | 2.13 | 26.81 | 28.99 |
Add New /wp-admin/post-new.php?post_type=video-gallery | 2,944 | 7.65 | 169.58 | 121.53 |
All Videos /wp-admin/edit.php?post_type=video-gallery | 1,441 | 1.89 | 31.21 | 32.27 |
Settings /wp-admin/edit.php?post_type=video-gallery&page=video_gallery_settings | 1,481 | 1.82 | 29.90 | 32.43 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- widget_video_gallery
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=video-gallery&page=video_gallery_settings
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=video-gallery&page=video_gallery_settings
- > Notice in wp-content/plugins/rio-video-gallery/rio-video-gallery.php+291
Trying to access array offset on value of type bool
SRP 50% 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
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rio-video-gallery/includes/template/archive-video-gallery.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rio-video-gallery/rio-video-gallery.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
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
7 plugin tags: video, video gallery, dailymotion, youtube, embed videos...
rio-video-gallery/rio-video-gallery.php Passed 13 tests
The main PHP script in "Rio Video Gallery" version 2.3.6 is automatically included on every request by WordPress
109 characters long description:
A powerful video gallery management plugin that allows you to embed videos from YouTube, Vimeo & Dailymotion.
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
Success! There were no dangerous files found in this plugin1,910 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 121 | 1,441 |
CSS | 1 | 10 | 4 | 408 |
JavaScript | 1 | 11 | 7 | 61 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 2.02MB with 1.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
help/images/get-vimeo-id-1.png | 753.34KB | 270.52KB | ▼ 64.09% |
help/images/Rio-video-add-new.png | 89.76KB | 29.91KB | ▼ 66.68% |
help/images/get-dialymotion-id.png | 447.89KB | 215.78KB | ▼ 51.82% |
help/images/Rio-video-gallery-settings-page.png | 35.39KB | 18.77KB | ▼ 46.95% |
help/images/get-youtube-video-id.png | 387.46KB | 175.15KB | ▼ 54.80% |