10% auto-keyword-backlink

Code Review | Auto Keyword Backlink

WordPress plugin Auto Keyword Backlink scored10%from 54 tests.

About plugin

  • Plugin page: auto-keyword-back...
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2023
  • Latest release: Mar 18, 2023
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: cultdevops (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /267 total downloads


Plugin footprint 58% 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
  • Install procedure had errors
    • > Error in wp-content/plugins/auto-keyword-backlink/index.php+23
    Uncaught Error: Call to undefined function figi_fs() in wp-content/plugins/auto-keyword-backlink/index.php:23
    Stack trace:
    #0 wp-content/plugins/auto-keyword-backlink/index.php(427): internalLink->__construct()
    #1 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
    #2 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

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

This is a short check of server-side resources used by Auto Keyword Backlink
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.18 ▼3.19
Dashboard /wp-admin3.31 ▼0.0448.36 ▼21.03
Posts /wp-admin/edit.php3.36 ▲0.0051.67 ▼0.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.40 ▼14.71
Media Library /wp-admin/upload.php3.23 ▲0.0038.64 ▲4.33

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 187 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Auto Keyword Backlink
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.37 ▼0.251.88 ▲0.2043.75 ▼0.78
Dashboard /wp-admin2,192 ▲125.65 ▼0.0392.53 ▼7.3041.42 ▼6.33
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0136.60 ▼0.0334.64 ▼1.12
Add New Post /wp-admin/post-new.php1,547 ▲223.35 ▲0.29685.24 ▲13.2859.38 ▲2.77
Media Library /wp-admin/upload.php1,400 ▼04.31 ▲0.11106.85 ▲1.3345.45 ▼2.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • fs_active_plugins
    • db_upgraded
    • widget_theysaidso_widget
    • fs_debug_mode
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/auto-keyword-backlink/view.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/auto-keyword-backlink/index.php:11

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)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: link keyword, keyword linking, auto content link, internal link, auto backlink

auto-keyword-backlink/index.php 85% from 13 tests

Analyzing the main PHP file in "Auto Keyword Backlink" version 1.3
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("auto-keyword-backlink.php" instead of "index.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected33,850 lines of code in 135 files:
LanguageFilesBlank linesComment linesLines of code

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
These items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity92.41
▷ Minimum class complexity1.00
▷ Maximum class complexity3,089.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
▷ Abstract classes24.08%
▷ Concrete classes4795.92%
▷ Final classes00.00%
▷ Static methods19215.19%
▷ Public methods87969.54%
▷ Protected methods171.34%
▷ Private methods36829.11%
▷ Named functions93100.00%
▷ Anonymous functions00.00%
▷ Global constants10168.24%
▷ Class constants4731.76%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.22MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius-sdk/assets/img/fast-index-google-indexing.png9.16KB5.26KB▼ 42.58%
banner.png74.27KB33.85KB▼ 54.43%
freemius-sdk/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius-sdk/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
Screenshot_1.png22.20KB11.57KB▼ 47.90%