Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲0.14ms] Passed 4 tests
Server-side resources used by Videos
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 39.50 ▲0.94 |
Dashboard /wp-admin | 3.39 ▲0.08 | 50.01 ▲2.71 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.91 ▼1.28 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 88.95 ▼1.76 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.30 ▲2.65 |
Add New /wp-admin/post-new.php?post_type=video | 3.44 | 48.08 |
Category /wp-admin/edit-tags.php?taxonomy=video_category&post_type=video | 3.30 | 35.16 |
Tag /wp-admin/edit-tags.php?taxonomy=video_tag&post_type=video | 3.30 | 31.56 |
All Videos /wp-admin/edit.php?post_type=video | 3.35 | 35.39 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 62 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_video_files |
New WordPress options |
---|
widget_video_tag_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_video_category_widget |
widget_theysaidso_widget |
widget_video_search_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Videos: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲196 | 13.37 ▼1.08 | 8.50 ▲6.72 | 43.30 ▼2.87 |
Dashboard /wp-admin | 2,252 ▲75 | 5.60 ▼0.01 | 83.95 ▼2.10 | 38.80 ▼2.81 |
Posts /wp-admin/edit.php | 2,157 ▲60 | 2.15 ▲0.15 | 35.62 ▼0.24 | 30.24 ▼7.48 |
Add New Post /wp-admin/post-new.php | 1,574 ▲37 | 23.15 ▲5.07 | 670.79 ▲40.53 | 38.47 ▼17.25 |
Media Library /wp-admin/upload.php | 1,460 ▲60 | 4.29 ▲0.11 | 96.82 ▼3.58 | 47.49 ▲2.58 |
Add New /wp-admin/post-new.php?post_type=video | 2,019 | 3.94 | 72.54 | 41.93 |
Category /wp-admin/edit-tags.php?taxonomy=video_category&post_type=video | 1,331 | 2.26 | 33.53 | 30.82 |
Tag /wp-admin/edit-tags.php?taxonomy=video_tag&post_type=video | 1,306 | 2.17 | 28.99 | 29.74 |
All Videos /wp-admin/edit.php?post_type=video | 1,143 | 1.92 | 33.69 | 30.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_video_files
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_video_category_widget
- db_upgraded
- widget_video_tag_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_video_search_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=video
- > Notice in wp-content/plugins/videos/view/admin/video-data.php+37
Trying to access array offset on value of type bool
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
Please take a closer look at the following
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/videos/view/front/video-size.php
- > /wp-content/plugins/videos/view/front/video-player-single.php
- > /wp-content/plugins/videos/view/front/video-duration.php
- > /wp-content/plugins/videos/view/admin/videos-pro-add.php
- > /wp-content/plugins/videos/view/front/video-archive-resolution-selection.php
- > /wp-content/plugins/videos/view/front/video-category-widget.php
- 38× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/videos/actions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/videos/view/admin/video-data.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/videos/view/front/video-archive-download-link.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/videos/view/admin/video-duration-field.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/videos/widgets/video-tag-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/videos/view/admin/help-support.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/videos/templates/archive-video.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/videos/view/front/video-download-false.php:2
- > PHP Notice
Undefined variable: video_file_duration in wp-content/plugins/videos/view/front/video-duration.php on line 2
- > PHP Notice
Undefined variable: video_size in wp-content/plugins/videos/view/front/video-size.php on line 1
- > 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 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: gallery, mp4, mp4 videos, video gallery, download...
videos/video.php 85% from 13 tests
The primary PHP file in "Videos" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 158 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("videos.php" instead of "video.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,830 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 276 | 140 | 1,584 |
CSS | 2 | 14 | 3 | 109 |
JavaScript | 3 | 2 | 1 | 79 |
PO File | 1 | 28 | 0 | 58 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 7.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 9 | 16.67% |
▷ Public methods | 53 | 98.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.85% |
Functions | 42 | |
▷ Named functions | 39 | 92.86% |
▷ Anonymous functions | 3 | 7.14% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/download_link.png | 1.14KB | 0.28KB | ▼ 75.66% |
images/video_ic.png | 3.02KB | 1.91KB | ▼ 36.67% |
images/rss.png | 0.60KB | 0.50KB | ▼ 16.18% |
images/default.png | 1.40KB | 1.35KB | ▼ 3.36% |