72% link-juice-optimizer

Code Review | Link Juice Optimizer

WordPress plugin Link Juice Optimizer scored72%from 54 tests.

About plugin

  • Plugin page: link-juice-optimizer
  • Plugin version: 2.3.1
  • PHP compatiblity: 5.6.39+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 15, 2022
  • Latest release: Aug 5, 2022
  • Number of updates: 11
  • Update frequency: every 10.3 days
  • Top authors: GSFede (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

4,000+ active /11,317 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲2.09MB] [CPU: ▲17.07ms] Passed 4 tests

A check of server-side resources used by Link Juice Optimizer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.57 ▲2.1161.82 ▲18.67
Dashboard /wp-admin5.43 ▲2.1371.76 ▲21.61
Posts /wp-admin/edit.php5.43 ▲2.0770.21 ▲25.17
Add New Post /wp-admin/post-new.php8.01 ▲2.1299.02 ▲11.21
Media Library /wp-admin/upload.php5.27 ▲2.0552.62 ▲16.77

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 480 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Link Juice Optimizer: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,160 ▲40318.72 ▲3.935.85 ▲3.6742.87 ▲0.80
Dashboard /wp-admin2,492 ▲3049.27 ▲4.39175.94 ▲57.9541.37 ▼3.08
Posts /wp-admin/edit.php2,398 ▲3096.15 ▲4.1786.59 ▲47.0235.27 ▲2.04
Add New Post /wp-admin/post-new.php1,588 ▲6919.90 ▼3.24709.45 ▲20.2047.96 ▼5.99
Media Library /wp-admin/upload.php1,534 ▲1436.62 ▲2.41107.40 ▲5.4541.48 ▼4.88
Link Juice Optimizer /wp-admin/crb_carbon_fields_container_link_juice_optimizer.php260.440.0713.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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 items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/link-juice-optimizer/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 113× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/link-juice-optimizer/vendor/htmlburger/carbon-fields/core/Container/Condition/User_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/link-juice-optimizer/vendor/htmlburger/carbon-fields/core/Field/Broken_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/link-juice-optimizer/vendor/htmlburger/carbon-fields/templates/Container/term_meta.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Fulfillable\\Translator\\Array_Translator' not found in wp-content/plugins/link-juice-optimizer/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Translator/Json_Translator.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/link-juice-optimizer/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Parent_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/link-juice-optimizer/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Textarea_Field' not found in wp-content/plugins/link-juice-optimizer/vendor/htmlburger/carbon-fields/core/Field/Scripts_Field.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/link-juice-optimizer/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Parent_Condition.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/link-juice-optimizer/vendor/htmlburger/carbon-fields/core/Container/Block_Container.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/link-juice-optimizer/vendor/htmlburger/carbon-fields/templates/Container/comment_meta.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/crb_carbon_fields_container_link_juice_optimizer.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_link_juice_optimizer.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: internal linking, crawl budget, link juice, obfuscation

link-juice-optimizer/link-juice-optimizer.php 92% from 13 tests

"Link Juice Optimizer" version 2.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin30,922 lines of code in 422 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1725,1928,45912,958
PHP1573,0307,79611,479
PO File289051,1802,524
Sass4833901,769
CSS83321,1391,694
JSON400371
Markdown324068
XML20059

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.45
▷ Minimum class complexity1.00
▷ Maximum class complexity246.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces23
Interfaces5
Traits0
Classes131
▷ Abstract classes118.40%
▷ Concrete classes12091.60%
▷ Final classes10.83%
Methods1,058
▷ Static methods10810.21%
▷ Public methods85781.00%
▷ Protected methods18017.01%
▷ Private methods211.98%
Functions109
▷ Named functions2724.77%
▷ Anonymous functions8275.23%
Constants51
▷ Global constants2854.90%
▷ Class constants2345.10%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin