Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.50MB] [CPU: ▲1.01ms] Passed 4 tests
An overview of server-side resources used by Simple Video Post
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 46.52 ▲5.37 |
Dashboard /wp-admin | 3.86 ▲0.56 | 58.56 ▲6.49 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 63.56 ▲13.56 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.50 | 100.78 ▼11.96 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 42.76 ▲4.15 |
Simple Video Post - Settings /wp-admin/options-general.php?page=svp_settings | 3.70 | 43.08 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 151 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
svp_player_settings |
svp_version |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Simple Video Post: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲197 | 14.44 ▲0.09 | 1.66 ▼0.25 | 37.25 ▼4.10 |
Dashboard /wp-admin | 2,352 ▲178 | 6.24 ▲0.71 | 121.28 ▲24.16 | 41.50 ▼6.73 |
Posts /wp-admin/edit.php | 2,280 ▲180 | 3.32 ▲1.35 | 56.54 ▲18.32 | 34.80 ▼1.71 |
Add New Post /wp-admin/post-new.php | 6,858 ▲5,328 | 26.05 ▲2.96 | 855.97 ▲173.69 | 48.36 ▼14.94 |
Media Library /wp-admin/upload.php | 1,480 ▲80 | 4.16 ▼0.05 | 85.57 ▼23.15 | 42.92 ▼4.21 |
Simple Video Post - Settings /wp-admin/options-general.php?page=svp_settings | 1,278 | 3.17 | 41.40 | 94.20 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- widget_theysaidso_widget
- svp_version
- svp_player_settings
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-video-post/admin/partials/settings.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/simple-video-post/admin/partials/video-sources.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/simple-video-post/admin/partials/video-tracks.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/simple-video-post/public/templates/single-video.php:106
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simple-video-post/public/templates/single-video.php on line 85
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/simple-video-post/public/templates/single-video.php on line 85
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: facebook html5 player, html5 video player, youtube html5 player, videojs, vimeo html5 player...
simple-video-post/simple-video-post.php Passed 13 tests
"Simple Video Post" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
122 characters long description:
A simple video post plugin that support YouTube/Vimeo/Facebook/Dailymotion like video sharing website. No coding required.
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
Good job! No executable or dangerous file extensions detected11,952 lines of code in 118 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 585 | 1,056 | 3,262 |
JavaScript | 51 | 136 | 149 | 3,198 |
CSS | 9 | 366 | 124 | 2,925 |
JSON | 37 | 1 | 0 | 2,438 |
SVG | 2 | 0 | 0 | 128 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 25.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 5.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 4 | 6.25% |
▷ Public methods | 56 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 12.50% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/images/play.png | 1.28KB | 1.57KB | 0.00% |
public/assets/images/placeholder-image.png | 8.60KB | 2.67KB | ▼ 68.91% |
admin/assets/images/logo.png | 1.18KB | 1.19KB | 0.00% |