10% wp-linkbuilder

Code Review | WP Link Builder

WordPress plugin WP Link Builder scored10%from 54 tests.

About plugin

  • Plugin page: wp-linkbuilder
  • Plugin version: 1.2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9.4
  • WordPress version: 6.3.1
  • First release: Oct 5, 2017
  • Latest release: Feb 6, 2018
  • Number of updates: 22
  • Update frequency: every 86.4 days
  • Top authors: shopmunity (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,611 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure had errors
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.74MB] [CPU: ▼50.26ms] Passed 4 tests

A check of server-side resources used by WP Link Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.25 ▼1.214.92 ▼31.46
Dashboard /wp-admin2.27 ▼1.035.59 ▼40.94
Posts /wp-admin/edit.php2.27 ▼1.086.37 ▼41.62
Add New Post /wp-admin/post-new.php2.27 ▼3.626.34 ▼87.03
Media Library /wp-admin/upload.php2.27 ▼0.967.47 ▼26.40
Configuration /wp-admin/admin.php?page=wp_linkbuilder_menuPageConfiguration2.277.77
Backlinks /wp-admin/admin.php?page=wp_linkbuilder_menuPageBacklinks2.278.62
WP LinkBuilder /wp-admin/admin.php?page=wp_linkbuilder_menuPages2.276.25
Wizard /wp-admin/admin.php?page=wp_linkbuilder_menuPageWizard2.276.61

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: 1 new table, 13 new options
New tables
wp_wp_linkbuilder_backlink
New WordPress options
wp_linkbuilder_enable_backlink_promotion
widget_recent-posts
db_upgraded
wp_linkbuilder_version
wp_linkbuilder_auto_backlink_promotion
widget_theysaidso_widget
theysaidso_admin_options
wp_linkbuilder_db_version
widget_recent-comments
wp_linkbuilder_promotion_timeout
...

Browser metrics Passed 4 tests

A check of browser resources used by WP Link Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7714.24 ▼0.021.53 ▼0.1439.58 ▼12.75
Dashboard /wp-admin2,241 ▲615.72 ▲0.0396.49 ▲9.7739.38 ▲1.51
Posts /wp-admin/edit.php2,136 ▲362.18 ▲0.1636.96 ▼1.2732.65 ▼1.75
Add New Post /wp-admin/post-new.php1,575 ▲5823.79 ▲4.89636.54 ▲186.8433.84 ▼20.90
Media Library /wp-admin/upload.php1,468 ▲684.48 ▲0.2990.86 ▼10.4640.92 ▼1.96
Configuration /wp-admin/admin.php?page=wp_linkbuilder_menuPageConfiguration1,0311.9830.9429.47
Backlinks /wp-admin/admin.php?page=wp_linkbuilder_menuPageBacklinks8801.9729.4028.55
WP LinkBuilder /wp-admin/admin.php?page=wp_linkbuilder_menuPages1,0301.9631.9438.87
Wizard /wp-admin/admin.php?page=wp_linkbuilder_menuPageWizard8711.9530.8626.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • Zombie tables were found after uninstall: 1 table
    • wp_wp_linkbuilder_backlink
  • Zombie WordPress options detected upon uninstall: 13 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • wp_linkbuilder_promotion_timeout
    • can_compress_scripts
    • theysaidso_admin_options
    • wp_linkbuilder_enable_backlink_promotion
    • wp_linkbuilder_auto_backlink_promotion
    • wp_linkbuilder_db_version
    • db_upgraded
    • widget_recent-comments
    • ...

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp_linkbuilder_menuPageWizard
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp_linkbuilder_menuPageWizard
    • > Notice in wp-content/plugins/wp-linkbuilder/plugin/plugin_class.inc.php+637
    Undefined index: HTTP_REFERER
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp_linkbuilder_menuPageWizard
    • > Notice in wp-content/plugins/wp-linkbuilder/plugin/pages/configuration_code.inc.php+28
    Undefined index: function
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp_linkbuilder_menuPageBacklinks
    • > Notice in wp-content/plugins/wp-linkbuilder/plugin/pages/backlinks_code.inc.php+14
    Undefined index: wp_linkbuilder_function
    • > GET request to /wp-admin/admin.php?page=wp_linkbuilder_menuPageBacklinks
    • > Notice in wp-content/plugins/wp-linkbuilder/plugin/pages/backlinks_code.inc.php+22
    Undefined index: _PAGE
    • > GET request to /wp-admin/admin.php?page=wp_linkbuilder_menuPageBacklinks
    • > Notice in wp-content/plugins/wp-linkbuilder/plugin/pages/backlinks_code.inc.php+22
    Undefined variable: paging_query

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (In the "backlink manager" you can find all the information about your backlinks.), #2 (Here you can configure the settings like auto-promotion or timeouts.)
The official readme.txt might help

wp-linkbuilder/wp-linkbuilder.php Passed 13 tests

The main PHP script in "WP Link Builder" version 1.2.0.0 is automatically included on every request by WordPress
96 characters long description:
The WP Link Builder plugin detects and promotes your backlinks: "This is like SEO on autopilot".

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,180 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP112071731,016
CSS1160119
JavaScript1131145

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity92.00
▷ Minimum class complexity92.00
▷ Maximum class complexity92.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected