Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.19ms] Passed 4 tests
An overview of server-side resources used by Video Embeds
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.72 ▼10.39 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.36 ▼1.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.63 ▲2.15 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.44 ▼23.10 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.80 ▲2.39 |
Video Embeds /wp-admin/options-general.php?page=rbve | 3.25 | 34.98 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 10 new options
New WordPress options |
---|
rbve_youtube_options |
widget_recent-comments |
rbve_vimeo_options |
db_upgraded |
rbve_fitvids |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
rbve_version |
Browser metrics Passed 4 tests
Checking browser requirements for Video Embeds
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 13.12 ▼1.56 | 4.56 ▲2.36 | 40.59 ▼3.03 |
Dashboard /wp-admin | 2,213 ▲22 | 4.88 ▼0.00 | 99.17 ▼3.64 | 38.29 ▼3.18 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▼0.05 | 39.74 ▼3.81 | 36.08 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.11 ▼0.10 | 653.51 ▲57.07 | 63.33 ▲12.70 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.21 ▲0.03 | 98.98 ▲2.00 | 42.72 ▼0.52 |
Video Embeds /wp-admin/options-general.php?page=rbve | 1,321 | 1.85 | 23.80 | 27.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 10 options in the database
- rbve_fitvids
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- rbve_version
- widget_theysaidso_widget
- theysaidso_admin_options
- rbve_vimeo_options
- rbve_youtube_options
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
Good news, no errors were detected
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
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-embeds/video-embeds.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/video-embeds/pages/settings.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-embeds/lib/fitvids.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
5 plugin tags: embed, video, shortcode, youtube, vimeo
video-embeds/video-embeds.php Passed 13 tests
"Video Embeds" version 0.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
74 characters long description:
Just another plugin that creates shortcodes for embedding videos in posts.
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
There were no executable files found in this plugin440 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 96 | 27 | 387 |
JavaScript | 2 | 13 | 4 | 53 |
PHP code Passed 2 tests
This is a very shot review of 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.33 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin