63% track-external-linksback-links

Code Review | Redirect External Links(Back Links)

WordPress plugin Redirect External Links(Back Links) scored63%from 54 tests.

About plugin

  • Plugin page: track-external-li...
  • Plugin version: 2.2
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Jan 17, 2021
  • Latest release: Mar 4, 2021
  • Number of updates: 12
  • Update frequency: every 4.0 days
  • Top authors: kanhaiya122108 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /396 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.61ms] Passed 4 tests

Server-side resources used by Redirect External Links(Back Links)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.51 ▼4.01
Dashboard /wp-admin3.34 ▲0.0353.43 ▼1.98
Posts /wp-admin/edit.php3.39 ▲0.0347.22 ▼1.99
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.82 ▼10.46
Media Library /wp-admin/upload.php3.26 ▲0.0343.26 ▲7.03
Add Link /wp-admin/admin.php?page=edit_link3.2434.64
Manage BackLink /wp-admin/admin.php?page=manage_link3.2627.37

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Redirect External Links(Back Links)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.25 ▼0.111.71 ▼0.0541.29 ▼2.14
Dashboard /wp-admin2,209 ▲295.58 ▼0.0697.87 ▲6.5474.61 ▲29.72
Posts /wp-admin/edit.php2,132 ▲321.97 ▲0.0138.57 ▲1.4733.99 ▼3.42
Add New Post /wp-admin/post-new.php1,710 ▲18224.28 ▲1.13615.05 ▼83.7653.99 ▼0.05
Media Library /wp-admin/upload.php1,429 ▲294.11 ▼0.07107.88 ▲6.2364.01 ▲20.47
Add Link /wp-admin/admin.php?page=edit_link9262.1826.7941.22
Manage BackLink /wp-admin/admin.php?page=manage_link9822.0427.4028.53

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
    • > Notice in wp-content/plugins/track-external-linksback-links/kaddy_backlinktracker.php+113
    Undefined variable: table
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_track_back_link
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 6× 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/track-external-linksback-links/kaddy_backlinktracker.php:29
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/track-external-linksback-links/includes/kaddy_backlink_list.php on line 7
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/track-external-linksback-links/includes/kaddy_edit_link.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/track-external-linksback-links/includes/kaddy_backlink_list.php on line 7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/track-external-linksback-links/includes/kaddy_backlink_list.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_meta_box() in wp-content/plugins/track-external-linksback-links/includes/kaddy_edit_link.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% 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
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Show the list of external link refer site .), #2 (Add Custom links by fill the form.)
The official readme.txt might help

track-external-linksback-links/kaddy_backlinktracker.php 77% from 13 tests

The principal PHP file in "Redirect External Links(Back Links)" v. 2.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("5.6.20" instead of "5.7")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("track-external-linksback-links.php" instead of "kaddy_backlinktracker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,598 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS237491,257
PHP538149341

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.57KB0.65KB▼ 58.27%