Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼147.18ms] Passed 4 tests
An overview of server-side resources used by Youtube Content
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 35.58 ▲2.32 |
Dashboard /wp-admin | 3.08 ▲0.03 | 46.13 ▼4.82 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 40.72 ▼5.88 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 90.09 ▼572.19 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 31.84 ▼5.84 |
Youtube Content /wp-admin/edit.php?page=simple-simple-youtube_content | 3.00 | 30.00 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Youtube Content
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,710 ▲114 | 15.88 ▼0.09 | 10.69 ▲2.02 | 46.96 ▲3.62 |
Dashboard /wp-admin | 2,977 ▲46 | 5.99 ▲0.04 | 148.55 ▼14.05 | 109.04 ▲4.85 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.70 ▼0.00 | 66.27 ▼1.47 | 84.73 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,677 ▼6 | 19.08 ▲0.32 | 385.57 ▼24.62 | 115.45 ▲5.12 |
Media Library /wp-admin/upload.php | 1,817 ▲10 | 5.01 ▼0.01 | 159.09 ▲0.77 | 113.95 ▼2.21 |
Youtube Content /wp-admin/edit.php?page=simple-simple-youtube_content | 1,097 | 2.21 | 55.42 | 87.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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: Call to undefined function add_action() in wp-content/plugins/youtube-content/simple-youtube-content.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/edit.php?page=simple-simple-youtube_content
- > Network (severe)
wp-content/plugins/youtube-content/simple-sticky-footer.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: post, youtube, content generator
youtube-content/simple-youtube-content.php 92% from 13 tests
The main PHP file in "Youtube Content" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("youtube-content.php" instead of "simple-youtube-content.php")
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 detected113 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 45 | 38 | 113 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin