Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/simply-featured-video/freemius/require.php+24
require_once(wp-content/plugins/simply-featured-video/freemius/includes/managers/class-fs-clone-manager.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.22ms] Passed 4 tests
This is a short check of server-side resources used by Simply Featured Video - Featured video support for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.36 ▼0.63 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.95 ▼17.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.33 ▼0.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.84 ▲1.22 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.18 ▲3.72 |
Server storage [IO: ▲6.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 364 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
fs_active_plugins |
widget_theysaidso_widget |
fs_debug_mode |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Simply Featured Video - Featured video support for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.48 ▲0.31 | 1.90 ▲0.16 | 44.14 ▲4.19 |
Dashboard /wp-admin | 2,209 ▲18 | 4.84 ▼1.04 | 100.43 ▼4.45 | 37.24 ▼1.46 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.02 | 39.22 ▲4.35 | 34.89 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.43 ▲0.38 | 634.71 ▼83.40 | 53.82 ▼1.40 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.17 ▼0.10 | 95.88 ▼2.18 | 40.44 ▼3.93 |
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
- This plugin did not uninstall successfully, leaving 8 options in the database
- fs_debug_mode
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- fs_active_plugins
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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 items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simply-featured-video/admin/partials/sfv-admin-display.php
- > /wp-content/plugins/simply-featured-video/trunk/admin/partials/sfv-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: video, video embed, vimeo, youtube, video plugin...
simply-featured-video/sfv.php 92% from 13 tests
The main PHP script in "Simply Featured Video - Featured video support for WordPress" version 1.3.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("simply-featured-video.php" instead of "sfv.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected31,962 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 7,532 | 16,915 | 31,737 |
JavaScript | 4 | 34 | 59 | 195 |
XML | 1 | 0 | 0 | 18 |
CSS | 12 | 0 | 0 | 12 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 83.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 102 | |
▷ Abstract classes | 4 | 3.92% |
▷ Concrete classes | 98 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 2,372 | |
▷ Static methods | 376 | 15.85% |
▷ Public methods | 1,652 | 69.65% |
▷ Protected methods | 30 | 1.26% |
▷ Private methods | 690 | 29.09% |
Functions | 210 | |
▷ Named functions | 208 | 99.05% |
▷ Anonymous functions | 2 | 0.95% |
Constants | 262 | |
▷ Global constants | 198 | 75.57% |
▷ Class constants | 64 | 24.43% |
▷ Public constants | 64 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/simply-featured-video.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
trunk/freemius/assets/img/simply-featured-video.png | 9.16KB | 5.26KB | ▼ 42.58% |
trunk/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |