10% wk-url2wpthumb

Code Review | WK URL 2 WP Thumb

WordPress plugin WK URL 2 WP Thumb scored 10% from 54 tests.

About plugin

  • Plugin page: wk-url2wpthumb
  • Plugin version: 4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 5.9.2
  • First release: Jun 18, 2014
  • Latest release: Jun 18, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: midoalone (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 8,968 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.26 ▲2.06
Dashboard /wp-admin3.41 ▲0.0032.30 ▼1.34
Posts /wp-admin/edit.php3.64 ▲0.0034.53 ▼2.08
Add New Post /wp-admin/post-new.php6.91 ▼0.0992.67 ▼1,188.86
Media Library /wp-admin/upload.php3.29 ▲0.0024.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲4116.19 ▲0.186.92 ▲1.182.57 ▲0.44
Dashboard /wp-admin2,885 ▲246.14 ▼0.01114.82 ▼26.18155.00 ▼18.20
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0162.35 ▼0.71138.20 ▼5.61
Add New Post /wp-admin/post-new.php1,752 ▲9120.96 ▲4.90446.80 ▲22.36160.35 ▲15.42
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.02144.25 ▲11.81193.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

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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP12423111
CSS16039
PO File191034
JavaScript12027

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 code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png48.07KB14.29KB▼ 70.27%
screenshot-2.png76.72KB23.79KB▼ 68.99%