Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-related-video-search/wp-related-video-search.php+106
Methods with the same name as their class will not be constructors in a future version of PHP; wp_realted_video_search_widget has a deprecated constructor
Server metrics [RAM: ▼0.02MB] [CPU: ▼287.65ms] Passed 4 tests
This is a short check of server-side resources used by Wordpress Related Video Search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▼0.04 | 52.85 ▲1.25 |
Dashboard /wp-admin | 3.42 ▲0.01 | 34.29 ▲0.19 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 38.28 ▼0.60 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 99.07 ▼1,147.10 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 24.46 ▼3.09 |
Settings /wp-admin/admin.php?page=wp_realted_video_search_pagina_principal | 3.34 | 22.30 |
About /wp-admin/admin.php?page=wp_realted_video_search_about | 3.30 | 23.11 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Wordpress Related Video Search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,954 ▲232 | 16.49 ▲0.45 | 8.56 ▲2.26 | 2.57 ▲0.09 |
Dashboard /wp-admin | 2,933 ▲82 | 6.14 ▼0.02 | 117.28 ▼16.92 | 176.89 ▲15.44 |
Posts /wp-admin/edit.php | 2,730 ▲39 | 3.13 ▼0.10 | 62.97 ▼4.27 | 144.07 ▼14.84 |
Add New Post /wp-admin/post-new.php | 1,696 ▲28 | 17.95 ▼0.67 | 413.72 ▲30.47 | 184.40 ▲27.53 |
Media Library /wp-admin/upload.php | 1,738 ▲37 | 5.50 ▲0.00 | 124.20 ▼21.07 | 206.62 ▲12.96 |
Settings /wp-admin/admin.php?page=wp_realted_video_search_pagina_principal | 1,214 | 2.66 | 54.51 | 124.82 |
About /wp-admin/admin.php?page=wp_realted_video_search_about | 1,065 | 2.65 | 55.42 | 115.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp_realted_video_search_pagina_principal
- > Notice in wp-content/plugins/wp-related-video-search/includes/menu_principal.php+98
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-related-video-search/config.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-related-video-search/wp-related-video-search.php:106
- > PHP Warning
include(): Failed opening 'ABSPATHwp-content/plugins/wp-related-video-search/config.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-related-video-search/wp-related-video-search.php on line 13
- > PHP Warning
include(ABSPATHwp-content/plugins/wp-related-video-search/config.php): failed to open stream: No such file or directory in wp-content/plugins/wp-related-video-search/wp-related-video-search.php on line 13
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-related-video-search/config.php on line 7
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-related-video-search/config.php on line 10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-related-video-search/wp-related-video-search.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-related-video-search/includes/core/register.php:10
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-related-video-search/config.php on line 8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-related-video-search/config.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Related Video), #2 (Related Video 2)
- Requires at least: Version not formatted correctly
wp-related-video-search/wp-related-video-search.php Passed 13 tests
The main PHP script in "Wordpress Related Video Search" version 1.1 is automatically included on every request by WordPress
31 characters long description:
Show related video in your post
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
No dangerous file extensions were detected1,572 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 140 | 98 | 829 |
CSS | 2 | 95 | 62 | 411 |
PHP | 12 | 96 | 62 | 332 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.62MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/about.png | 0.50KB | 0.25KB | ▼ 50.29% |
images/titulo.png | 3.44KB | 1.47KB | ▼ 57.25% |
images/icono.png | 1.61KB | 0.43KB | ▼ 73.17% |
images/donate.png | 0.64KB | 0.64KB | 0.30% |
images/widget.png | 0.33KB | 0.34KB | 0.00% |