Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▼250.13ms] Passed 4 tests
A check of server-side resources used by Video Player
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.38 ▲0.66 | 37.27 ▲13.14 |
Dashboard /wp-admin | 3.72 ▲0.67 | 68.98 ▲21.84 |
Posts /wp-admin/edit.php | 3.79 ▲0.69 | 69.48 ▲24.78 |
Add New Post /wp-admin/post-new.php | 5.71 ▲0.28 | 121.15 ▼1,060.28 |
Media Library /wp-admin/upload.php | 3.73 ▲0.72 | 71.42 ▲31.03 |
Playwire Settings /wp-admin/options-general.php?page=playwire-settings | 3.64 | 68.28 |
Videos /wp-admin/edit.php?post_type=playwire_videos | 3.78 | 66.71 |
Video Galleries /wp-admin/edit.php?post_type=playwire_playlists | 3.78 | 62.95 |
Server storage [IO: ▲1.84MB] [DB: ▲0.67MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 1 new option
New WordPress options |
---|
playwire_videos_children |
Browser metrics Passed 4 tests
Checking browser requirements for Video Player
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,931 ▲349 | 17.44 ▲1.49 | 15.06 ▲7.32 | 46.64 ▼0.53 |
Dashboard /wp-admin | 3,033 ▲183 | 6.67 ▲0.84 | 139.81 ▼0.49 | 101.72 ▼14.99 |
Posts /wp-admin/edit.php | 2,801 ▲95 | 2.79 ▲0.09 | 75.67 ▲13.00 | 96.46 ▼5.30 |
Add New Post /wp-admin/post-new.php | 1,721 ▲238 | 18.91 ▲0.41 | 350.59 ▼13.11 | 130.06 ▲16.25 |
Media Library /wp-admin/upload.php | 1,950 ▲178 | 5.47 ▲0.46 | 137.93 ▼23.77 | 118.37 ▲3.83 |
Playwire Settings /wp-admin/options-general.php?page=playwire-settings | 1,439 | 6.17 | 197.28 | 105.20 |
Videos /wp-admin/edit.php?post_type=playwire_videos | 1,486 | 2.72 | 64.72 | 88.98 |
Video Galleries /wp-admin/edit.php?post_type=playwire_playlists | 1,458 | 2.71 | 66.21 | 82.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- playwire_videos_children
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 21 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=playwire_playlists
- > Notice in wp-content/plugins/playwire/includes/classes/class-publisher-id.php+178
Trying to access array offset on value of type bool
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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Parse error
syntax error, unexpected 'endwhile' (T_ENDWHILE) in wp-content/plugins/playwire/templates/template-playlist-library.php on line 52
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/playwire/includes/classes/class-video-category-walker.php:8
- > PHP Parse error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (18 tag instead of maximum 10)
- Screenshots: Add an image for screenshot #1 (Example of admin video interface for Playwire)
playwire/playwire.php 92% from 13 tests
The main file in "Video Player" v. 1.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 260 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin6,460 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 580 | 72 | 3,594 |
PHP | 32 | 953 | 1,328 | 2,426 |
JavaScript | 4 | 81 | 107 | 408 |
SVG | 2 | 0 | 0 | 30 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 35 | 29.41% |
▷ Public methods | 115 | 96.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 3.36% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 1 test
Image compression 0% from 1 test
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 1.22MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/gallery.png | 7.47KB | 3.95KB | ▼ 47.12% |
assets/banner-772x250.png | 244.70KB | 106.74KB | ▼ 56.38% |
assets/img/playwire_logo.png | 2.49KB | 2.53KB | 0.00% |
assets/screenshot-1.png | 62.33KB | 21.78KB | ▼ 65.07% |
assets/img/playwire_settings.png | 43.64KB | 46.53KB | 0.00% |