84% keyword-linker

Code Review | Keyword Linker

WordPress plugin Keyword Linker scored84%from 54 tests.

About plugin

  • Plugin page: keyword-linker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Oct 31, 2019
  • Latest release: Oct 31, 2019
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: pluginbyvisualwebz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /539 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by Keyword Linker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.09 ▲6.22
Dashboard /wp-admin3.31 ▲0.0148.45 ▼8.16
Posts /wp-admin/edit.php3.36 ▲0.0149.16 ▼0.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.01 ▼2.25
Media Library /wp-admin/upload.php3.24 ▲0.0135.61 ▼2.89
Keyword Linker /wp-admin/admin.php?page=kl_layout3.2333.45

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Keyword Linker: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.23 ▼0.122.01 ▲0.2541.52 ▼3.39
Dashboard /wp-admin2,217 ▲365.63 ▼0.0993.67 ▼6.8346.36 ▲5.51
Posts /wp-admin/edit.php2,122 ▲221.96 ▼0.0541.28 ▼0.3239.00 ▲1.96
Add New Post /wp-admin/post-new.php1,542 ▲1423.26 ▲0.04622.66 ▼32.5057.74 ▲4.25
Media Library /wp-admin/upload.php1,413 ▲134.17 ▼0.0498.43 ▼0.8242.03 ▼1.76
Keyword Linker /wp-admin/admin.php?page=kl_layout9091.9923.1430.70

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_pages() in wp-content/plugins/keyword-linker/view/kl_layout.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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 your attention:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

keyword-linker/keyword-linker.php 92% from 13 tests

The primary PHP file in "Keyword Linker" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 279 characters long)

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
Success! There were no dangerous files found in this plugin437 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1180184
CSS1254139
PHP21720114

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin