Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/falconiform-youtube-widget/falconiform-youtube-widget.php+830
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼57.75ms] Passed 4 tests
This is a short check of server-side resources used by Falconiform YouTube Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.49 ▼40.56 |
Dashboard /wp-admin | 2.05 ▼1.25 | 5.04 ▼47.03 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.54 ▼49.11 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.12 ▼94.30 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.24 ▼29.92 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_ff_youtube_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Falconiform YouTube Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 13.24 ▼0.98 | 1.59 ▼0.47 | 41.76 ▼2.98 |
Dashboard /wp-admin | 2,221 ▲47 | 4.83 ▼1.06 | 106.22 ▼26.59 | 39.46 ▼23.71 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▲0.02 | 40.15 ▲3.49 | 34.88 ▲2.18 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.08 ▼0.16 | 648.76 ▼24.88 | 51.66 ▼3.20 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.20 ▼0.01 | 122.86 ▲1.29 | 59.63 ▲11.54 |
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
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/falconiform-youtube-widget/falconiform-youtube-widget.php+830
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_ff_youtube_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/falconiform-youtube-widget/falconiform-youtube-widget.php:25
- > 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 errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== falconiform-youtube-widget ===
)
falconiform-youtube-widget/falconiform-youtube-widget.php Passed 13 tests
"Falconiform YouTube Widget" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
41 characters long description:
Adds a widget that shows a YouTube video.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected539 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 116 | 290 | 424 |
PO File | 1 | 43 | 43 | 111 |
CSS | 2 | 1 | 6 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 25 | |
▷ Static methods | 8 | 32.00% |
▷ Public methods | 13 | 52.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 48.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 4 | 50.00% |
▷ Class constants | 4 | 50.00% |
▷ Public constants | 4 | 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
No PNG files were detected