10% wukch-dns-prefetch-prerender

Code Review | wuk.ch DNS-Prefetch / Prerender

WordPress plugin wuk.ch DNS-Prefetch / Prerender scored10%from 54 tests.

About plugin

  • Plugin page: wukch-dns-prefetc...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Apr 2, 2016
  • Latest release: Sep 9, 2017
  • Number of updates: 9
  • Update frequency: every 58.7 days
  • Top authors: Stefan M. (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,116 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WUKPRERENDER::activate() should not be called statically

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.08ms] Passed 4 tests

A check of server-side resources used by wuk.ch DNS-Prefetch / Prerender
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0523.67 ▼17.41
Dashboard /wp-admin3.33 ▼0.0244.37 ▼17.02
Posts /wp-admin/edit.php3.38 ▲0.0246.78 ▲2.64
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.71 ▼10.38
Media Library /wp-admin/upload.php3.25 ▲0.0236.35 ▲0.49

Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: 1 new table, 7 new options
New tables
wp_wukstats
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
wukprerender

Browser metrics Passed 4 tests

An overview of browser requirements for wuk.ch DNS-Prefetch / Prerender
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7414.39 ▲0.161.91 ▲0.1955.97 ▲10.40
Dashboard /wp-admin2,203 ▲125.85 ▼0.1697.94 ▼8.2436.70 ▼6.14
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0139.14 ▼2.9934.23 ▼2.92
Add New Post /wp-admin/post-new.php1,543 ▲1418.42 ▲0.01629.86 ▼5.4052.98 ▲0.00
Media Library /wp-admin/upload.php1,382 ▼64.27 ▲0.0794.93 ▼0.6940.21 ▼3.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WUKPRERENDER::uninstall() should not be called statically
  • This plugin does not fully uninstall, leaving 7 options in the database
    • wukprerender
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wukch-dns-prefetch-prerender/wuk-prerender.php:145

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Delete the content of the `/wp-content/plugins/preloader` directory), #2 (Connect to the database), #3 (Delete the standard tables `wp_wukstats`)
You can look at the official readme.txt

wukch-dns-prefetch-prerender/wuk-prerender.php 92% from 13 tests

"wuk.ch DNS-Prefetch / Prerender" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wukch-dns-prefetch-prerender.php" instead of "wuk-prerender.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin117 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11325117

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity6.83
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected