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.01MB] [CPU: ▼3.40ms] Passed 4 tests
Analyzing server-side resources used by Youtube Video Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.56 ▲4.07 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.00 ▼4.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 42.89 ▼5.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.09 ▼7.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 44.36 ▲11.51 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Youtube Video Search
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲189 | 14.61 ▲0.21 | 23.16 ▲21.57 | 50.55 ▲6.65 |
Dashboard /wp-admin | 2,206 ▲26 | 5.52 ▼0.13 | 85.61 ▼2.82 | 74.79 ▲31.58 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.95 ▼0.04 | 36.68 ▲2.47 | 34.94 ▼8.54 |
Add New Post /wp-admin/post-new.php | 1,689 ▲163 | 22.43 ▼0.81 | 750.76 ▲59.66 | 61.45 ▲4.25 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.13 ▼0.03 | 108.57 ▲5.99 | 77.19 ▲23.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/youtube-post-search/setting/youtubekey.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: youtubekey in wp-content/plugins/youtube-post-search/setting/youtubekey.php on line 11
- > PHP Notice
Undefined variable: youtubenum in wp-content/plugins/youtube-post-search/setting/youtubekey.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-post-search/youtubepostsearch.php:16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: youtube videos, video, youtube plugin, youtube search, youtube results...
youtube-post-search/youtubepostsearch.php 85% from 13 tests
The principal PHP file in "Youtube Video Search" v. 2.2.7 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("youtube-post-search.php" instead of "youtubepostsearch.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected310 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 19 | 24 | 192 |
CSS | 1 | 4 | 2 | 118 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 7 | |
▷ Named functions | 7 | 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
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/dark.png | 5.40KB | 4.95KB | ▼ 8.30% |
images/rating.png | 4.25KB | 3.23KB | ▼ 23.95% |
images/youtube.png | 2.60KB | 1.41KB | ▼ 45.73% |
images/comments.png | 5.18KB | 4.04KB | ▼ 22.03% |
images/searchicon.png | 2.75KB | 1.62KB | ▼ 41.07% |