Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/suggestion-toolkit/index.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.73ms] Passed 4 tests
A check of server-side resources used by Suggestion Toolkit - Youtube
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.19 ▼9.50 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.56 ▼3.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.48 ▼1.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.95 ▼18.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.94 ▼3.60 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Suggestion Toolkit - Youtube: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.28 ▼1.07 | 1.67 ▼0.26 | 42.17 ▼9.17 |
Dashboard /wp-admin | 2,203 ▲15 | 5.81 ▼0.10 | 96.47 ▼11.47 | 47.06 ▲6.84 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 1.97 ▼0.06 | 38.44 ▼2.02 | 34.60 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,520 ▼22 | 23.32 ▲5.14 | 655.88 ▼0.50 | 56.94 ▼28.65 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.32 ▲0.10 | 93.43 ▼1.60 | 44.74 ▲2.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/suggestion-toolkit-youtube/index.php
- > /wp-content/plugins/suggestion-toolkit-youtube/styles/html.youtube.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: r_posts in wp-content/plugins/suggestion-toolkit-youtube/styles/tpl.youtube.php on line 2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/suggestion-toolkit-youtube/styles/tpl.youtube.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #4 (Suggested YouTube video opened in a modal widow.)
- Tags: You are using too many tags: 13 tag instead of maximum 10
suggestion-toolkit-youtube/index.php 92% from 13 tests
Analyzing the main PHP file in "Suggestion Toolkit - Youtube" version 5.0
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("suggestion-toolkit-youtube.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin277 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 63 | 64 | 202 |
CSS | 1 | 8 | 0 | 57 |
JavaScript | 1 | 4 | 0 | 17 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected