Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/nice-youtube-lite/niceYouTubeLite.php+33
Methods with the same name as their class will not be constructors in a future version of PHP; NiceYouTubeLite has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼54.86ms] Passed 4 tests
This is a short check of server-side resources used by Nice YouTube Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 4.20 ▼32.68 |
Dashboard /wp-admin | 2.10 ▼1.25 | 6.53 ▼52.95 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.35 ▼41.82 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.35 ▼91.97 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 4.96 ▼27.90 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Nice YouTube Lite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.24 ▼0.48 | 1.61 ▼0.08 | 38.01 ▼5.15 |
Dashboard /wp-admin | 2,199 ▲21 | 5.60 ▼0.14 | 82.85 ▼27.13 | 36.22 ▼5.24 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.01 | 35.63 ▼0.50 | 31.41 ▼6.22 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 17.93 ▼5.24 | 618.67 ▼30.87 | 56.28 ▼25.60 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.22 ▲0.10 | 98.42 ▼18.74 | 45.28 ▼1.34 |
Nice YouTube Lite /wp-admin/niceYouTubeLite.php | 26 | 0.42 | 0.09 | 16.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/nice-youtube-lite/niceYouTubeLite.php+33
Methods with the same name as their class will not be constructors in a future version of PHP; NiceYouTubeLite has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nice-youtube-lite/niceYouTubeLite.php:232
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/niceYouTubeLite.php
- > Network (severe)
wp-admin/niceYouTubeLite.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: shortcode, video player, video, youtube embed, video embed...
nice-youtube-lite/niceYouTubeLite.php 85% from 13 tests
This is the main PHP file of "Nice YouTube Lite" version 1.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 338 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("nice-youtube-lite.php" instead of "niceYouTubeLite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin121 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 87 | 37 | 121 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin