Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Parse error in wp-content/plugins/wk-url2wpthumb/wk-url2wpthumb.php+159
syntax error, unexpected end of file
Server metrics [RAM: ▼0.02MB] [CPU: ▼297.73ms] Passed 4 tests
This is a short check of server-side resources used by WK URL 2 WP Thumb
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 54.26 ▲2.06 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.30 ▼1.34 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 34.53 ▼2.08 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.09 | 92.67 ▼1,188.86 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 24.47 ▲1.37 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WK URL 2 WP Thumb
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲41 | 16.19 ▲0.18 | 6.92 ▲1.18 | 2.57 ▲0.44 |
Dashboard /wp-admin | 2,885 ▲24 | 6.14 ▼0.01 | 114.82 ▼26.18 | 155.00 ▼18.20 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.24 ▲0.01 | 62.35 ▼0.71 | 138.20 ▼5.61 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 20.96 ▲4.90 | 446.80 ▲22.36 | 160.35 ▲15.42 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▲0.02 | 144.25 ▲11.81 | 193.78 ▲3.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/wk-url2wpthumb/wk-url2wpthumb.php on line 159
- > PHP Parse 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 errors were detected
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
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== wk-url2wpthumb ===
) - Screenshots: Please add images for these screenshots: #1 (Post types selection), #2 (WK Metabox in action)
wk-url2wpthumb/wk-url2wpthumb.php 92% from 13 tests
Analyzing the main PHP file in "WK URL 2 WP Thumb" version 4.3
It is important to fix the following:
- Version: Plugin version missing
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin211 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 23 | 111 |
CSS | 1 | 6 | 0 | 39 |
PO File | 1 | 9 | 10 | 34 |
JavaScript | 1 | 2 | 0 | 27 |
PHP code Passed 2 tests
Analyzing 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.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 48.07KB | 14.29KB | ▼ 70.27% |
screenshot-2.png | 76.72KB | 23.79KB | ▼ 68.99% |