Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.31ms] Passed 4 tests
Server-side resources used by YouTube Video to WP Post
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.95 ▲1.13 |
Dashboard /wp-admin | 3.45 ▲0.11 | 48.75 ▼14.58 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 50.82 ▲4.44 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 91.84 ▼1.18 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.87 ▲1.38 |
General /wp-admin/admin.php?page=youtube-video-to-wp-post | 3.34 | 31.30 |
Settings /wp-admin/admin.php?page=youtube-video-to-wp-post-settings | 3.34 | 32.37 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for YouTube Video to WP Post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲60 | 13.36 ▼1.02 | 1.55 ▼0.30 | 42.22 ▲0.64 |
Dashboard /wp-admin | 2,240 ▲52 | 5.88 ▲0.79 | 97.44 ▼7.90 | 81.38 ▲39.02 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.03 ▲0.02 | 39.48 ▲2.61 | 36.03 ▼1.98 |
Add New Post /wp-admin/post-new.php | 6,418 ▲4,899 | 22.64 ▼0.59 | 959.60 ▲244.08 | 51.13 ▼8.25 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.22 ▼0.08 | 107.10 ▲3.49 | 46.73 ▲3.00 |
General /wp-admin/admin.php?page=youtube-video-to-wp-post | 804 | 2.06 | 24.18 | 25.12 |
Settings /wp-admin/admin.php?page=youtube-video-to-wp-post-settings | 818 | 1.71 | 26.95 | 26.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/youtube-feed-2-wp-post/includes/views/dashboard.php:2
- > 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 issues were found
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== youtube-feed-2-wp-post ===
)
youtube-feed-2-wp-post/youtube-video-to-wp-post.php 92% from 13 tests
Analyzing the main PHP file in "YouTube Video to WP Post" version 1.5
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("youtube-feed-2-wp-post.php" instead of "youtube-video-to-wp-post.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin776 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 174 | 397 | 755 |
CSS | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 4 | 12.12% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 13 | 76.47% |
▷ Anonymous functions | 4 | 23.53% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 0.65KB | 0.75KB | 0.00% |