Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.36MB] [CPU: ▼4.47ms] Passed 4 tests
This is a short check of server-side resources used by Video gallery and Player
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 40.59 ▼4.65 |
Dashboard /wp-admin | 3.73 ▲0.39 | 51.18 ▼11.60 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 50.91 ▼2.54 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 98.13 ▲1.83 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 35.58 ▲0.90 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wpos_anylc_redirect |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
wpos_anylc_site_uid |
Browser metrics Passed 4 tests
Video gallery and Player: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,656 ▼1,080 | 11.55 ▼3.16 | 12.73 ▲11.12 | 17.01 ▼29.24 |
Dashboard /wp-admin | 2,221 ▲44 | 5.65 ▼0.02 | 102.44 ▲5.78 | 53.04 ▲11.31 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.00 ▼0.01 | 38.99 ▼0.51 | 34.94 ▼0.39 |
Add New Post /wp-admin/post-new.php | 6,221 ▲4,695 | 18.88 ▼4.17 | 832.20 ▲216.50 | 56.77 ▲2.90 |
Media Library /wp-admin/upload.php | 1,425 ▲31 | 4.22 ▼0.01 | 99.33 ▲3.10 | 39.55 ▼2.75 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- db_upgraded
- wpos_anylc_redirect
- widget_recent-posts
- can_compress_scripts
- wpos_anylc_site_uid
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: You are using too many tags: 15 tag instead of maximum 10
html5-videogallery-plus-player/html5video.php 85% from 13 tests
"Video gallery and Player" version 2.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("html5-videogallery-plus-player.php" instead of "html5video.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin4,140 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 578 | 887 | 2,428 |
CSS | 7 | 234 | 11 | 1,541 |
JavaScript | 7 | 39 | 10 | 129 |
SVG | 1 | 0 | 0 | 40 |
JSON | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 16.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 2 | 25.00% |
Methods | 48 | |
▷ Static methods | 2 | 4.17% |
▷ Public methods | 44 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.33% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/image-upgrade.png | 166.27KB | 48.08KB | ▼ 71.08% |
wpos-plugins/assets/images/essentialplugin-logo.png | 7.62KB | 3.82KB | ▼ 49.88% |
wpos-plugins/assets/images/inbound50-by-50.png | 2.09KB | 1.95KB | ▼ 6.78% |
wpos-analytics/assets/images/wpos-logo.png | 9.04KB | 3.17KB | ▼ 64.91% |
wpos-analytics/assets/images/icon.png | 7.31KB | 1.42KB | ▼ 80.64% |