Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.04ms] Passed 4 tests
Analyzing server-side resources used by VK Link Target Controller
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.91 ▼5.92 |
Dashboard /wp-admin | 3.35 ▲0.04 | 198.57 ▲145.76 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.28 ▼4.17 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.20 ▼11.14 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.85 ▲1.06 |
Link Target Controller /wp-admin/options-general.php?page=vk-ltc | 3.23 | 32.99 |
Server storage [IO: ▲2.06MB] [DB: ▲0.31MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for VK Link Target Controller
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲151 | 13.58 ▼0.98 | 9.35 ▲7.28 | 46.11 ▲2.45 |
Dashboard /wp-admin | 2,247 ▲67 | 5.76 ▲0.12 | 90.71 ▼7.49 | 78.70 ▲32.24 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.02 ▲0.03 | 41.73 ▲2.65 | 33.17 ▼1.75 |
Add New Post /wp-admin/post-new.php | 6,258 ▲4,713 | 18.72 ▼4.47 | 887.81 ▲203.51 | 62.14 ▲4.24 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.33 ▲0.11 | 108.70 ▲7.70 | 47.58 ▲0.99 |
Link Target Controller /wp-admin/options-general.php?page=vk-ltc | 858 | 2.09 | 28.65 | 26.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% 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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-link-target-controller/inc/vk-admin/package/class-vk-admin.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-link-target-controller/inc/vk-admin/package/class-vk-admin.php:22
- > PHP Warning
require_once(wp-content/plugins/vk-link-target-controller/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/vk-link-target-controller/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/vk-link-target-controller/tests/test-sample.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/vk-link-target-controller/vk-link-target-controller.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/vk-link-target-controller/tests/test-option.php:11
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/vk-link-target-controller/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/vk-link-target-controller/tests/bootstrap.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
vk-link-target-controller/vk-link-target-controller.php 92% from 13 tests
"VK Link Target Controller" version 1.7.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
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
Good job! No executable or dangerous file extensions detected8,813 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 7,264 |
PHP | 6 | 186 | 374 | 749 |
Sass | 1 | 105 | 3 | 500 |
Bourne Shell | 1 | 21 | 7 | 99 |
JavaScript | 4 | 10 | 32 | 77 |
PO File | 1 | 12 | 17 | 52 |
Markdown | 1 | 29 | 0 | 42 |
XML | 2 | 2 | 0 | 22 |
Ruby | 1 | 0 | 2 | 7 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 16 | 41.03% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.19MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/vk-admin/package/images/vektor_logo.png | 6.44KB | 4.14KB | ▼ 35.70% |
img/336_280_ExUnit.png | 51.14KB | 24.95KB | ▼ 51.21% |
inc/vk-admin/package/images/vektor_logo-2020.png | 6.48KB | 5.37KB | ▼ 17.11% |
inc/vk-admin/package/images/billvektor_banner.png | 33.56KB | 14.06KB | ▼ 58.09% |
inc/vk-admin/package/images/ExUnit_bnr.png | 51.14KB | 24.95KB | ▼ 51.21% |