Benchmarks
Plugin footprint 40% 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
- > Notice in wp-content/plugins/simple-video-management-system/app/Vpp_Admin.php+17
Undefined index: action
Server metrics [RAM: ▲0.33MB] [CPU: ▼3.51ms] Passed 4 tests
Analyzing server-side resources used by Simple Video Management System
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 39.05 ▲0.39 |
Dashboard /wp-admin | 3.73 ▲0.38 | 62.86 ▲8.47 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 45.86 ▼0.87 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 83.09 ▼12.51 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 36.47 ▼1.03 |
Server storage [IO: ▲3.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 136 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_vpp_video |
wp_vpp_video_location |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Video Management System
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,184 ▲438 | 15.03 ▲0.41 | 44.47 ▲42.67 | 39.17 ▼2.65 |
Dashboard /wp-admin | 2,438 ▲252 | 5.02 ▼0.07 | 113.65 ▲0.78 | 90.84 ▲47.04 |
Posts /wp-admin/edit.php | 2,344 ▲255 | 2.29 ▲0.26 | 44.26 ▲3.69 | 35.81 ▼2.21 |
Add New Post /wp-admin/post-new.php | 1,774 ▲255 | 23.31 ▲0.18 | 600.04 ▼76.41 | 36.17 ▼17.04 |
Media Library /wp-admin/upload.php | 1,636 ▲248 | 4.28 ▲0.18 | 96.81 ▼20.69 | 78.66 ▲31.11 |
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
These items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_vpp_video_location
- wp_vpp_video
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/simple-video-management-system/app/sites/admin/actions/video_save.php
- > /wp-content/plugins/simple-video-management-system/s3_video_player_plus.php
- > /wp-content/plugins/simple-video-management-system/app/sites/admin/views/group_save.php
- 42× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: webinar in wp-content/plugins/simple-video-management-system/includes/webinar_template.php on line 5
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/simple-video-management-system/app/sites/admin/layouts/default.php:12
- > PHP Warning
require(VPP_APP_PATH/Vpp_Form.php): failed to open stream: No such file or directory in wp-content/plugins/simple-video-management-system/app/sites/admin/views/video_edit.php on line 7
- > PHP Notice
Undefined variable: load_ball_url in wp-content/plugins/simple-video-management-system/includes/media_form.php on line 8
- > PHP Notice
Undefined index: subject in wp-content/plugins/simple-video-management-system/includes/webinar_template.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simple-video-management-system/includes/webinar_template.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simple-video-management-system/includes/webinar_template.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/simple-video-management-system/app/sites/admin/views/videos.php:3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/simple-video-management-system/app/sites/admin/views/video_analytics.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/simple-video-management-system/app/sites/admin/views/groups.php:28
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (https://mynams.com/svms-screenshots/screen-1.jpg), #2 (https://mynams.com/svms-screenshots/screen-2.jpg), #3 (https://mynams.com/svms-screenshots/screen-3.jpg)
simple-video-management-system/s3_video_player_plus.php 92% from 13 tests
This is the main PHP file of "Simple Video Management System" version 1.0.3, 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:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-video-management-system.php" instead of "s3_video_player_plus.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin37,499 lines of code in 97 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 45 | 7,334 | 12,180 | 23,332 |
PHP | 32 | 1,207 | 1,281 | 8,133 |
CSS | 13 | 964 | 98 | 5,134 |
LESS | 1 | 144 | 278 | 755 |
JSON | 4 | 0 | 0 | 79 |
Markdown | 1 | 9 | 0 | 38 |
SVG | 1 | 0 | 0 | 28 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 111)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 79.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 264.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 111.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 159 | |
▷ Static methods | 63 | 39.62% |
▷ Public methods | 67 | 42.14% |
▷ Protected methods | 92 | 57.86% |
▷ Private methods | 0 | 0.00% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 31 | |
▷ Global constants | 30 | 96.77% |
▷ Class constants | 1 | 3.23% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/icons/check.png | 0.69KB | 0.58KB | ▼ 15.32% |
includes/icons/Duplicate.png | 25.88KB | 10.42KB | ▼ 59.71% |
includes/images/bg_shade.png | 0.38KB | 0.38KB | ▼ 0.52% |
includes/cross.png | 0.66KB | 0.64KB | ▼ 2.37% |
includes/icons/video.png | 0.28KB | 0.24KB | ▼ 13.83% |