Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.41MB] [CPU: ▲35.62ms] 75% from 4 tests
A check of server-side resources used by Super Video Player
The following require your attention
- Extra RAM: The extra memory usage must be under 5MB (currently 5.41MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.93 ▲5.46 | 82.41 ▲35.33 |
Dashboard /wp-admin | 8.95 ▲5.64 | 84.95 ▲34.28 |
Posts /wp-admin/edit.php | 8.95 ▲5.59 | 83.17 ▲38.88 |
Add New Post /wp-admin/post-new.php | 10.85 ▲4.96 | 129.06 ▲33.99 |
Media Library /wp-admin/upload.php | 8.95 ▲5.72 | 80.13 ▲46.48 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 8.95 | 66.16 |
Server storage [IO: ▲5.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 370 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
fs_active_plugins |
fs_accounts |
widget_theysaidso_widget |
can_compress_scripts |
fs_debug_mode |
Browser metrics Passed 4 tests
An overview of browser requirements for Super Video Player
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲199 | 14.05 ▼0.57 | 10.43 ▲8.70 | 33.14 ▼10.26 |
Dashboard /wp-admin | 2,227 ▲39 | 5.82 ▼0.08 | 99.45 ▼6.67 | 86.79 ▲46.44 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 1.98 ▼0.05 | 38.71 ▲3.76 | 39.09 ▲2.71 |
Add New Post /wp-admin/post-new.php | 1,523 ▼21 | 22.28 ▲3.83 | 694.61 ▲66.03 | 59.83 ▲0.92 |
Media Library /wp-admin/upload.php | 1,424 ▲33 | 4.27 ▲0.06 | 95.87 ▼5.88 | 72.36 ▲28.27 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,099 | 1.68 | 23.38 | 33.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/super-video-player/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- fs_debug_mode
- widget_theysaidso_widget
- db_upgraded
- fs_active_plugins
- fs_accounts
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function SVP\\Model\\add_action() in wp-content/plugins/super-video-player/inc/Model/Menu.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/super-video-player/admin/inc/metabox-free-backup.php:136
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-video-player/admin/inc/help-usages.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-video-player/admin/inc/metabox-free.php:389
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/super-video-player/inc/shortcode-free.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function SVP\\Model\\add_action() in wp-content/plugins/super-video-player/inc/Model/EnqueueAssets.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-video-player/admin/blocks/init.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function HTML5Player\\PostType\\add_action() in wp-content/plugins/super-video-player/inc/PostType/SVPPlayer.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function HTML5Player\\PostType\\add_action() in wp-content/plugins/super-video-player/inc/PostType/SVPPlayer.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-video-player/inc/notice.php:3
- > 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 96% 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
5 plugin tags: video player, plyr, video gallery, mp4 player, media player
super-video-player/super-video-player.php 92% from 13 tests
The entry point to "Super Video Player" version 1.7.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin69,075 lines of code in 297 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 218 | 11,505 | 18,807 | 48,541 |
PO File | 21 | 3,065 | 3,445 | 6,249 |
Sass | 15 | 952 | 3 | 4,811 |
JavaScript | 14 | 1,287 | 420 | 4,632 |
CSS | 24 | 290 | 488 | 4,467 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 143 |
XML | 1 | 3 | 0 | 16 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 53.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 113 | |
▷ Abstract classes | 4 | 3.54% |
▷ Concrete classes | 109 | 96.46% |
▷ Final classes | 0 | 0.00% |
Methods | 1,539 | |
▷ Static methods | 249 | 16.18% |
▷ Public methods | 1,147 | 74.53% |
▷ Protected methods | 17 | 1.10% |
▷ Private methods | 375 | 24.37% |
Functions | 136 | |
▷ Named functions | 135 | 99.26% |
▷ Anonymous functions | 1 | 0.74% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 1.45KB | 0.78KB | ▼ 46.16% |
admin/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |