10% wp-keylink

Code Review | WP KeyLink

WordPress plugin WP KeyLink scored10%from 54 tests.

About plugin

  • Plugin page: wp-keylink
  • Plugin version: v0.0.0.2...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Feb 6, 2018
  • Number of updates: 5
  • Update frequency: every 292.8 days
  • Top authors: mohsenshahbazi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,300 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/wp-keylink/kl_plugin.php+88
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.78ms] Passed 4 tests

A check of server-side resources used by WP KeyLink
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.71 ▲3.88
Dashboard /wp-admin3.31 ▲0.0044.73 ▼5.61
Posts /wp-admin/edit.php3.36 ▲0.0044.19 ▼4.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.21 ▼13.39
Media Library /wp-admin/upload.php3.23 ▲0.0034.09 ▲0.47

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP KeyLink
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.56 ▼0.821.97 ▲0.1544.62 ▲1.13
Dashboard /wp-admin2,203 ▲155.91 ▲0.0199.81 ▼13.8639.62 ▼7.65
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0337.19 ▼0.5232.34 ▼4.70
Add New Post /wp-admin/post-new.php1,514 ▼2217.71 ▼5.44643.00 ▼45.4557.41 ▼5.67
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0594.29 ▼7.9439.53 ▼3.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-keylink/kl_admin_setting.php:2
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/wp-keylink/kl_plugin.php on line 88

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: autolink keywords, linkbuilding, inline auto link, autolink, linkbuild...

wp-keylink/kl_plugin.php 77% from 13 tests

The primary PHP file in "WP KeyLink" version v0.0.0.2... is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-keylink.php" instead of "kl_plugin.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "v0.0.0.2...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected141 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2157141

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin