10% related-links-blender

Code Review | Related Links Blender

WordPress plugin Related Links Blender scored 10% from 54 tests.

About plugin

  • Plugin page: related-links-ble...
  • Plugin version: 0.81
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.8.2
  • WordPress version: 5.8.1
  • First release: Feb 16, 2013
  • Latest release: Oct 22, 2017
  • Number of updates: 64
  • Update frequency: every 26.7 days
  • Top authors: stephenblender (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 5,523 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/related-links-blender/includes/admin.php+38
    Uncaught Error: Call to undefined method RelatedLinksBlender_admin::editor_page_panel_init() in wp-content/plugins/related-links-blender/includes/admin.php:38
    Stack trace:
    #0 wp-content/plugins/related-links-blender/plugin.php(272): RelatedLinksBlender_admin->__construct()
    #1 wp-admin/includes/plugin.php(2286): include_once('/var/www/wordpr...')
    #2 wp-admin/includes/plugin.php(668): plugin_sandbox_scrape()

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

A check of server-side resources used by Related Links Blender
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1235.48 ▲9.86
Dashboard /wp-admin3.06 ▲0.0043.95 ▼4.89
Posts /wp-admin/edit.php3.11 ▼0.0144.53 ▼8.44
Add New Post /wp-admin/post-new.php5.42 ▼0.0288.53 ▼563.19
Media Library /wp-admin/upload.php3.00 ▲0.0033.87 ▲3.79

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Related Links Blender: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲6615.85 ▲0.396.85 ▼1.7145.83 ▼4.19
Dashboard /wp-admin2,966 ▲326.08 ▲0.11155.20 ▲18.15109.48 ▼11.47
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0070.37 ▲4.2292.15 ▼3.49
Add New Post /wp-admin/post-new.php2,057 ▲55719.51 ▲1.04382.25 ▲38.29109.42 ▼3.83
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.04147.18 ▼23.33118.11 ▼10.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'RelatedLinksBlender' not found in wp-content/plugins/related-links-blender/includes/core.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/related-links-blender/plugin.php:43
    • > PHP Fatal error
      Uncaught Error: Class 'RelatedLinksBlender_core' not found in wp-content/plugins/related-links-blender/includes/admin.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: related posts, related links, visitor retention, cross linking, relevant links

related-links-blender/plugin.php 92% from 13 tests

This is the main PHP file of "Related Links Blender" version 0.81, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("related-links-blender.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,002 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3269178588
JavaScript28019278
CSS22111136

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity13.67
▷ Minimum class complexity9.00
▷ Maximum class complexity22.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2083.33%
▷ Protected methods416.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin