Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲5.00MB] [CPU: ▲13.86ms] 75% from 4 tests
Server-side resources used by Video Reviews / Video Widget
Please fix the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.00MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.88 ▲5.42 | 50.39 ▲9.36 |
Dashboard /wp-admin | 8.90 ▲5.56 | 71.21 ▲12.79 |
Posts /wp-admin/edit.php | 8.90 ▲5.55 | 79.93 ▲30.25 |
Add New Post /wp-admin/post-new.php | 9.37 ▲3.49 | 108.98 ▲3.02 |
Media Library /wp-admin/upload.php | 8.90 ▲5.67 | 64.64 ▲33.54 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.90 | 58.55 |
Server storage [IO: ▲3.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 212 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
fs_debug_mode |
widget_recent-comments |
widget_recent-posts |
fs_active_plugins |
theysaidso_admin_options |
can_compress_scripts |
fs_accounts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Video Reviews / Video Widget: 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,823 ▲36 | 14.69 ▲0.34 | 1.57 ▼0.38 | 30.94 ▼12.18 |
Dashboard /wp-admin | 2,225 ▲45 | 5.63 ▼0.03 | 92.75 ▼5.05 | 40.07 ▲0.18 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 1.95 ▼0.01 | 40.35 ▼2.16 | 39.43 ▲2.27 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 22.69 ▼0.55 | 607.40 ▼69.18 | 51.82 ▼4.34 |
Media Library /wp-admin/upload.php | 1,436 ▲33 | 4.22 ▼0.03 | 96.88 ▼6.07 | 47.13 ▲4.30 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,098 | 1.79 | 25.60 | 29.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/video-reviews/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- fs_debug_mode
- fs_active_plugins
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- fs_accounts
- can_compress_scripts
- db_upgraded
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function VDRV\\get_option() in wp-content/plugins/video-reviews/templates/video-widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function VDRV\\__() in wp-content/plugins/video-reviews/templates/admin/cta-settings.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/video-reviews/templates/admin/video-settings.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #3 (Call to action button example) image missing
video-reviews/video-reviews.php 85% from 13 tests
This is the main PHP file of "Video Reviews / Video Widget" version 1.3.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "5.7")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected35,285 lines of code in 161 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 8,173 | 17,445 | 33,822 |
JavaScript | 13 | 233 | 606 | 1,109 |
Sass | 5 | 15 | 3 | 307 |
JSON | 1 | 0 | 0 | 31 |
CSS | 15 | 0 | 2 | 15 |
Markdown | 1 | 1 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 84.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,302 | |
▷ Static methods | 209 | 16.05% |
▷ Public methods | 902 | 69.28% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 383 | 29.42% |
Functions | 101 | |
▷ Named functions | 101 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/premium/cta_action.png | 27.41KB | 13.42KB | ▼ 51.04% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/img/premium/cta_link.png | 36.00KB | 18.04KB | ▼ 49.90% |
assets/img/premium/advanced_video_selector.png | 23.06KB | 11.25KB | ▼ 51.19% |