Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼309.09ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Video Player with Analytics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.08 | 101.84 ▲46.38 |
Dashboard /wp-admin | 3.52 ▲0.11 | 39.09 ▲0.02 |
Posts /wp-admin/edit.php | 3.75 ▲0.11 | 48.71 ▼46.84 |
Add New Post /wp-admin/post-new.php | 6.97 ▼0.01 | 95.87 ▼1,184.85 |
Media Library /wp-admin/upload.php | 3.38 ▲0.08 | 24.65 ▼4.69 |
Advanced Video Player with Analytics /wp-admin/options-general.php?page=avpa | 3.38 | 30.51 |
Video detail /wp-admin/admin.php?page=video-detail-page | 3.38 | 23.76 |
Server storage [IO: ▲9.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 115 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Video Player with Analytics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,002 ▲280 | 17.33 ▲1.70 | 9.30 ▲3.17 | 2.16 ▼0.23 |
Dashboard /wp-admin | 3,110 ▲256 | 7.92 ▲1.74 | 142.99 ▼4.31 | 154.88 ▼6.84 |
Posts /wp-admin/edit.php | 2,946 ▲252 | 5.09 ▲1.86 | 82.66 ▲17.81 | 141.89 ▲3.43 |
Add New Post /wp-admin/post-new.php | 1,701 ▲40 | 18.13 ▲1.91 | 408.53 ▼49.51 | 183.33 ▲30.11 |
Media Library /wp-admin/upload.php | 1,734 ▲36 | 5.54 ▲0.01 | 107.02 ▼51.32 | 181.78 ▼3.70 |
Advanced Video Player with Analytics /wp-admin/options-general.php?page=avpa | 1,228 | 4.18 | 67.80 | 86.45 |
Video detail /wp-admin/admin.php?page=video-detail-page | 830 | 2.33 | 38.16 | 53.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=video-detail-page
- > Notice in wp-content/plugins/advanced-video-player-with-analytics/templates/video-detail.php+2
Undefined index: id
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/advanced-video-player-with-analytics/templates/shortcode-generator.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/advanced-video-player-with-analytics/templates/settings.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/advanced-video-player-with-analytics/templates/tracking-data.php:5
- > PHP Notice
Undefined index: id in wp-content/plugins/advanced-video-player-with-analytics/templates/video-detail.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/advanced-video-player-with-analytics/admin.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/advanced-video-player-with-analytics/templates/video-detail.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
advanced-video-player-with-analytics/advanced-video-player-with-analytics.php 85% from 13 tests
The principal PHP file in "Advanced Video Player with Analytics" v. 1... is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1...")
- 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 Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin135,797 lines of code in 106 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 55 | 39,998 | 89,646 | 131,311 |
JSON | 37 | 1 | 0 | 2,251 |
CSS | 6 | 229 | 11 | 1,522 |
PHP | 7 | 138 | 70 | 599 |
SVG | 1 | 0 | 0 | 114 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin