Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.31MB] [CPU: ▼5.03ms] Passed 4 tests
This is a short check of server-side resources used by WPlyr Media Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 46.16 ▲3.10 |
Dashboard /wp-admin | 4.03 ▲0.72 | 53.67 ▲4.34 |
Posts /wp-admin/edit.php | 4.04 ▲0.69 | 59.87 ▲10.14 |
Add New Post /wp-admin/post-new.php | 5.32 ▼0.57 | 53.12 ▼35.98 |
Media Library /wp-admin/upload.php | 3.85 ▲0.62 | 40.75 ▲8.44 |
WPlyr /wp-admin/options-general.php?page=wplyr-settings | 3.86 | 46.66 |
Server storage [IO: ▲1.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 77 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WPlyr Media Block
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,165 ▲408 | 19.17 ▲4.59 | 4.48 ▲2.54 | 45.96 ▲5.29 |
Dashboard /wp-admin | 2,541 ▲353 | 9.49 ▲4.58 | 191.53 ▲86.68 | 41.98 ▼0.86 |
Posts /wp-admin/edit.php | 2,462 ▲373 | 6.46 ▲4.47 | 88.10 ▲47.45 | 35.96 ▲1.51 |
Add New Post /wp-admin/post-new.php | 6,497 ▲4,964 | 23.84 ▲0.51 | 893.98 ▲251.63 | 47.83 ▼3.83 |
Media Library /wp-admin/upload.php | 1,593 ▲202 | 7.03 ▲2.83 | 114.07 ▲16.50 | 43.07 ▲0.21 |
WPlyr /wp-admin/options-general.php?page=wplyr-settings | 1,498 | 6.75 | 111.66 | 96.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wplyr-media-block/views/template-video.php
- > /wp-content/plugins/wplyr-media-block/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- > /wp-content/plugins/wplyr-media-block/views/template-audio.php
- > /wp-content/plugins/wplyr-media-block/views/template-youtube.php
- > /wp-content/plugins/wplyr-media-block/views/template-vimeo.php
- 143× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/wplyr-media-block/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Type_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/wplyr-media-block/vendor/htmlburger/carbon-fields/core/Service/Legacy_Storage_Service_v_1_5.php:15
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/wplyr-media-block/vendor/htmlburger/carbon-fields/core/Container/User_Meta_Container.php:9
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/wplyr-media-block/vendor/htmlburger/carbon-fields/core/Container/Comment_Meta_Container.php:13
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/wplyr-media-block/vendor/htmlburger/carbon-fields/core/Field/Multiselect_Field.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wplyr-media-block/views/admin/template-sidebar.php:3
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Fulfillable\\Translator\\Translator' not found in wp-content/plugins/wplyr-media-block/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Translator/Array_Translator.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Pimple\\ServiceProviderInterface' not found in wp-content/plugins/wplyr-media-block/vendor/htmlburger/carbon-fields/core/Provider/Container_Condition_Provider.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/wplyr-media-block/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Scalar_Comparer.php:7
- > PHP Notice
Undefined variable: data in wp-content/plugins/wplyr-media-block/views/template-vimeo.php on line 12
- > PHP Fatal 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: self-hosted, video, gutenberg, youtube, html5...
wplyr-media-block/wplyr.php 77% from 13 tests
The entry point to "WPlyr Media Block" version 1.2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wplyr-media-block.php" instead of "wplyr.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 169 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected39,092 lines of code in 503 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 190 | 5,154 | 10,589 | 17,920 |
JavaScript | 175 | 5,191 | 8,468 | 12,979 |
Sass | 85 | 655 | 241 | 3,432 |
PO File | 26 | 819 | 1,020 | 2,202 |
CSS | 12 | 361 | 1,145 | 1,838 |
JSON | 7 | 0 | 0 | 551 |
Markdown | 6 | 66 | 0 | 137 |
SVG | 2 | 0 | 0 | 33 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 132)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 17.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 961.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 132.00 |
Code structure | ||
---|---|---|
Namespaces | 30 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 154 | |
▷ Abstract classes | 13 | 8.44% |
▷ Concrete classes | 141 | 91.56% |
▷ Final classes | 2 | 1.42% |
Methods | 1,360 | |
▷ Static methods | 118 | 8.68% |
▷ Public methods | 869 | 63.90% |
▷ Protected methods | 460 | 33.82% |
▷ Private methods | 31 | 2.28% |
Functions | 121 | |
▷ Named functions | 26 | 21.49% |
▷ Anonymous functions | 95 | 78.51% |
Constants | 99 | |
▷ Global constants | 7 | 7.07% |
▷ Class constants | 92 | 92.93% |
▷ Public constants | 92 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/plugin-icon.png | 5.54KB | 2.96KB | ▼ 46.67% |