Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.40MB] [CPU: ▲0.45ms] 75% from 4 tests
A check of server-side resources used by Lite Video Embed
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 692.02ms on /wp-admin/options-general.php?page=mihdan-lite-youtube-embed)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.82 ▲1.36 | 44.17 ▲7.17 |
Dashboard /wp-admin | 4.79 ▲1.44 | 56.87 ▼6.34 |
Posts /wp-admin/edit.php | 4.84 ▲1.48 | 62.96 ▲11.50 |
Add New Post /wp-admin/post-new.php | 7.30 ▲1.41 | 92.41 ▼9.65 |
Media Library /wp-admin/upload.php | 4.62 ▲1.39 | 45.62 ▲10.61 |
Lite Video Embed /wp-admin/options-general.php?page=mihdan-lite-youtube-embed | 5.22 | 692.02 |
Server storage [IO: ▲5.45MB] [DB: ▲0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 1,467 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
mlye_plugins |
mlye_general |
mlye_tools |
mlye_contacts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lite Video Embed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,975 ▲228 | 14.77 ▲0.43 | 1.79 ▲0.12 | 37.90 ▼0.38 |
Dashboard /wp-admin | 2,351 ▲170 | 6.32 ▲0.61 | 120.22 ▲11.01 | 40.33 ▼0.23 |
Posts /wp-admin/edit.php | 2,297 ▲194 | 3.58 ▲1.61 | 57.79 ▲15.33 | 32.94 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.94 ▲0.24 | 595.42 ▼117.75 | 32.93 ▼30.11 |
Media Library /wp-admin/upload.php | 1,437 ▲43 | 4.45 ▲0.26 | 82.97 ▼16.78 | 40.62 ▼3.35 |
Lite Video Embed /wp-admin/options-general.php?page=mihdan-lite-youtube-embed | 3,792 | 3.61 | 57.11 | 113.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-posts
- mlye_tools
- widget_recent-comments
- db_upgraded
- mlye_contacts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- mlye_plugins
- mlye_general
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mihdan-lite-youtube-embed/vendor/antecedent/patchwork/src/Console.php
- > /wp-content/plugins/mihdan-lite-youtube-embed/vendor/nikic/php-parser/grammar/rebuildParsers.php
- 805× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SebastianBergmann\\CodeUnit\\CodeUnit' not found in wp-content/plugins/mihdan-lite-youtube-embed/vendor/sebastian/code-unit/src/ClassUnit.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\Exception' not found in wp-content/plugins/mihdan-lite-youtube-embed/vendor/phpunit/phpunit/src/Framework/Exception/CodeCoverageException.php:15
- > PHP Fatal error
Trait 'Latte\\Strict' not found in wp-content/plugins/mihdan-lite-youtube-embed/vendor/latte/latte/src/Latte/Runtime/FilterInfo.php on line 18
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit\\Runner\\TestHook' not found in wp-content/plugins/mihdan-lite-youtube-embed/vendor/phpunit/phpunit/src/Runner/Hook/AfterSuccessfulTestHook.php:21
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr\\Cast' not found in wp-content/plugins/mihdan-lite-youtube-embed/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\\Lexer\\TokenEmulator\\KeywordEmulator' not found in wp-content/plugins/mihdan-lite-youtube-embed/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/MatchTokenEmulator.php:7
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit\\Framework\\MockObject\\Builder\\ParametersMatch' not found in wp-content/plugins/mihdan-lite-youtube-embed/vendor/phpunit/phpunit/src/Framework/MockObject/Builder/MethodNameMatch.php:15
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Stmt' not found in wp-content/plugins/mihdan-lite-youtube-embed/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/HaltCompiler.php:7
- > PHP Fatal error
Uncaught Error: Interface 'SebastianBergmann\\ObjectReflector\\Exception' not found in wp-content/plugins/mihdan-lite-youtube-embed/vendor/sebastian/object-reflector/src/InvalidArgumentException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit\\Exception' not found in wp-content/plugins/mihdan-lite-youtube-embed/vendor/phpunit/phpunit/src/TextUI/XmlConfiguration/Migration/MigrationException.php:17
- > 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 97% 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:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in mihdan-lite-youtube-embed/assets to your readme.txt
mihdan-lite-youtube-embed/mihdan-lite-youtube-embed.php Passed 13 tests
The main file in "Lite Video Embed" v. 1.7.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
A faster YouTube/RuTube embed. Renders faster than a sneeze.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin96,158 lines of code in 1,369 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,255 | 19,432 | 34,633 | 87,393 |
JSON | 4 | 0 | 0 | 2,373 |
yacc | 3 | 336 | 12 | 2,050 |
Markdown | 32 | 1,053 | 0 | 1,598 |
reStructuredText | 38 | 1,052 | 1,341 | 1,250 |
XSD | 3 | 0 | 0 | 964 |
JavaScript | 9 | 21 | 18 | 166 |
XML | 12 | 1 | 1 | 156 |
CSS | 6 | 32 | 8 | 135 |
Python | 1 | 70 | 155 | 42 |
YAML | 4 | 0 | 0 | 29 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 142)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 8.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 225.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 142.00 |
Code structure | ||
---|---|---|
Namespaces | 158 | |
Interfaces | 102 | |
Traits | 11 | |
Classes | 1,141 | |
▷ Abstract classes | 66 | 5.78% |
▷ Concrete classes | 1,075 | 94.22% |
▷ Final classes | 446 | 41.49% |
Methods | 6,568 | |
▷ Static methods | 962 | 14.65% |
▷ Public methods | 5,246 | 79.87% |
▷ Protected methods | 689 | 10.49% |
▷ Private methods | 633 | 9.64% |
Functions | 1,920 | |
▷ Named functions | 519 | 27.03% |
▷ Anonymous functions | 1,401 | 72.97% |
Constants | 635 | |
▷ Global constants | 25 | 3.94% |
▷ Class constants | 610 | 96.06% |
▷ Public constants | 557 | 91.31% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin