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.79MB] [CPU: ▲7.29ms] Passed 4 tests
An overview of server-side resources used by External Videos
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.28 ▲0.82 | 53.37 ▲12.39 |
Dashboard /wp-admin | 4.10 ▲0.79 | 51.30 ▼2.38 |
Posts /wp-admin/edit.php | 4.15 ▲0.80 | 58.17 ▲11.00 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 98.45 ▲8.14 |
Media Library /wp-admin/upload.php | 4.02 ▲0.79 | 50.72 ▲14.39 |
External Videos /wp-admin/edit.php?post_type=external-videos | 4.08 | 50.54 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=external-videos | 4.01 | 40.38 |
Add New /wp-admin/post-new.php?post_type=external-videos | 4.18 | 67.43 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=external-videos | 4.03 | 44.52 |
External Videos /wp-admin/options-general.php?page=external-videos/external-videos.php | 4.05 | 41.54 |
Server storage [IO: ▲0.33MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-videos |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
sp_external_videos_options |
category_children |
theysaidso_admin_options |
Browser metrics Passed 4 tests
External Videos: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲188 | 13.50 ▼0.85 | 10.10 ▲8.25 | 43.52 ▼0.82 |
Dashboard /wp-admin | 2,232 ▲52 | 5.63 ▼0.00 | 90.96 ▼7.64 | 42.24 ▼1.71 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 2.00 ▲0.04 | 40.52 ▲3.52 | 37.15 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,569 ▲38 | 23.16 ▲0.03 | 698.65 ▲11.10 | 56.22 ▼3.24 |
Media Library /wp-admin/upload.php | 1,453 ▲53 | 4.27 ▲0.02 | 111.24 ▼1.04 | 47.05 ▼0.62 |
External Videos /wp-admin/edit.php?post_type=external-videos | 1,292 | 1.98 | 38.61 | 35.82 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=external-videos | 1,364 | 2.26 | 30.18 | 30.98 |
Add New /wp-admin/post-new.php?post_type=external-videos | 3,005 | 8.05 | 184.78 | 75.06 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=external-videos | 1,550 | 2.18 | 28.80 | 34.49 |
External Videos /wp-admin/options-general.php?page=external-videos/external-videos.php | 1,974 | 2.00 | 42.50 | 34.91 |
Uninstaller [IO: ▲0.33MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attentionThis plugin does not fully uninstall, leaving 9 options in the database
- Uninstaller has failed for this plugin, leaving 43 files (0.33MB) in the plugin directory
- (new file) css/ev-admin.css
- (new file) core/ev-sync-posts.php
- (new file) TODO
- (new file) core/ev-media-gallery.php
- (new file) core/simple_html_dom.php
- (new file) core/ev-admin.php
- (new file) core/ev-widget.php
- (new file) core/ev-helpers.php
- (new file) DEVELOPMENT.md
- (new file) core/ev-settings-forms.php
- ...
- theysaidso_admin_options
- sp_external_videos_options
- category_children
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-videos
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'MEXP_Template' not found in wp-content/plugins/external-videos/hosts/wistia/mexp-ev-wistia-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/external-videos/hosts/vimeo/mexp-ev-vimeo-service.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/external-videos/hosts/wistia/mexp-ev-wistia-service.php:5
- > PHP Fatal error
Uncaught Error: Class 'MEXP_Template' not found in wp-content/plugins/external-videos/hosts/youtube/mexp-ev-youtube-template.php:3
- > PHP Fatal error
Uncaught Error: Class 'MEXP_Plugin' not found in wp-content/plugins/external-videos/mexp/class.mexp.php:17
- > PHP Fatal error
Uncaught Error: Class 'MEXP_Template' not found in wp-content/plugins/external-videos/hosts/dailymotion/mexp-ev-dailymotion-template.php:3
- > PHP Fatal error
Uncaught Error: Class 'MEXP_Template' not found in wp-content/plugins/external-videos/hosts/vimeo/mexp-ev-vimeo-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/external-videos/hosts/youtube/mexp-ev-youtube-service.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/external-videos/hosts/dailymotion/mexp-ev-dailymotion-service.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Add an image for screenshot #7 (Media Uploader: inserting External Videos into any page or post)
external-videos/external-videos.php Passed 13 tests
The entry point to "External Videos" version 2.0.1 is a PHP file that has certain tags in its header comment area
111 characters long description:
Automatically syncs your videos from YouTube, Vimeo, Wistia or Dailymotion to your WordPress site as new posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected6,147 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,469 | 2,364 | 4,678 |
JavaScript | 2 | 242 | 95 | 583 |
PO File | 2 | 136 | 140 | 354 |
CSS | 2 | 51 | 45 | 290 |
Markdown | 3 | 92 | 0 | 227 |
YAML | 1 | 1 | 0 | 15 |
PHP code Passed 2 tests
A short 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.31 |
Average class complexity | 18.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 5 | 13.16% |
▷ Concrete classes | 33 | 86.84% |
▷ Final classes | 2 | 6.06% |
Methods | 318 | |
▷ Static methods | 39 | 12.26% |
▷ Public methods | 284 | 89.31% |
▷ Protected methods | 20 | 6.29% |
▷ Private methods | 14 | 4.40% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 26 | |
▷ Global constants | 18 | 69.23% |
▷ Class constants | 8 | 30.77% |
▷ Public constants | 8 | 100.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