Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼147.52ms] Passed 4 tests
A check of server-side resources used by Youtube Profile Field
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 24.39 ▲2.49 |
Dashboard /wp-admin | 3.13 ▲0.07 | 30.61 ▼5.62 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 31.24 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 69.11 ▼587.44 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 22.89 ▲0.95 |
Youtube Profile Field /wp-admin/options-general.php?page=youtube-profile-field | 3.04 | 22.75 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ypf_options |
Browser metrics Passed 4 tests
Checking browser requirements for Youtube Profile Field
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,671 ▲70 | 15.80 ▲0.12 | 4.98 ▼0.82 | 76.90 ▼0.63 |
Dashboard /wp-admin | 2,935 ▲42 | 6.08 ▼0.21 | 113.74 ▼19.02 | 167.28 ▼6.98 |
Posts /wp-admin/edit.php | 2,745 ▲5 | 3.24 ▲0.02 | 63.12 ▼2.47 | 134.24 ▼7.48 |
Add New Post /wp-admin/post-new.php | 3,816 ▲112 | 18.77 ▼0.16 | 449.00 ▲0.54 | 163.21 ▼6.37 |
Media Library /wp-admin/upload.php | 1,754 ▲2 | 5.49 ▲0.03 | 135.56 ▼9.42 | 180.53 ▼16.48 |
Youtube Profile Field /wp-admin/options-general.php?page=youtube-profile-field | 1,088 | 2.42 | 54.98 | 123.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, function 'uninstall' not found or invalid function name
- The uninstall procedure has failed, leaving 1 option in the database
- ypf_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/youtube-profile-field/functions.php:225
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-profile-field/admin.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-profile-field/index.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: oembed, field, shortcode, video, username...
youtube-profile-field/index.php 92% from 13 tests
This is the main PHP file of "Youtube Profile Field" version 3.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("youtube-profile-field.php" instead of "index.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
Good job! No executable or dangerous file extensions detected532 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 129 | 276 | 329 |
Markdown | 1 | 56 | 0 | 119 |
PO File | 2 | 96 | 251 | 84 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin