84% daext-interlinks-manager

Code Review | Interlinks Manager

WordPress plugin Interlinks Manager scored84%from 54 tests.

About plugin

  • Plugin page: daext-interlinks-...
  • Plugin version: 1.07
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jul 26, 2021
  • Latest release: Nov 8, 2023
  • Number of updates: 5
  • Update frequency: every 167.2 days
  • Top authors: daext (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10,000+ active /10,664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.27MB] [CPU: ▲0.86ms] Passed 4 tests

A check of server-side resources used by Interlinks Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.28 ▲0.15
Dashboard /wp-admin3.69 ▲0.3857.67 ▲10.61
Posts /wp-admin/edit.php3.74 ▲0.3850.81 ▲4.81
Add New Post /wp-admin/post-new.php6.24 ▲0.3595.84 ▼2.49
Media Library /wp-admin/upload.php3.55 ▲0.3236.03 ▲0.98
Dashboard /wp-admin/admin.php?page=daextinma-dashboard3.6634.22
Pro Version /wp-admin/admin.php?page=daextinma-pro-version3.5631.13
Options /wp-admin/admin.php?page=daextinma-options3.5333.47
Help /wp-admin/admin.php?page=daextinma-help3.5230.45
Juice /wp-admin/admin.php?page=daextinma-juice3.6435.75

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 48 new files
Database: 3 new tables, 22 new options
New tables
wp_daextinma_archive
wp_daextinma_anchors
wp_daextinma_juice
New WordPress options
daextinma_interlinks_options_post_types
widget_recent-comments
daextinma_limit_posts_analysis
widget_recent-posts
daextinma_database_version
daextinma_optimization_delta
daextinma_set_memory_limit
daextinma_remove_link_to_anchor
widget_theysaidso_widget
daextinma_set_max_execution_time
...

Browser metrics Passed 4 tests

Interlinks Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6714.24 ▼0.471.70 ▼0.0842.71 ▼1.41
Dashboard /wp-admin2,237 ▲575.61 ▼0.0682.65 ▼16.8737.90 ▼5.41
Posts /wp-admin/edit.php2,142 ▲421.98 ▼0.0140.96 ▲4.0936.80 ▲0.40
Add New Post /wp-admin/post-new.php6,294 ▲4,76818.98 ▼4.13860.38 ▲215.3457.37 ▲8.74
Media Library /wp-admin/upload.php1,430 ▲364.20 ▲0.0098.55 ▼2.0344.43 ▲0.47
Dashboard /wp-admin/admin.php?page=daextinma-dashboard1,0832.1141.9632.38
Pro Version /wp-admin/admin.php?page=daextinma-pro-version9471.9722.2830.91
Options /wp-admin/admin.php?page=daextinma-options8751.9335.3728.02
Help /wp-admin/admin.php?page=daextinma-help8432.0023.7428.57
Juice /wp-admin/admin.php?page=daextinma-juice9582.4046.5534.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-interlinks-manager/admin/view/juice.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-interlinks-manager/admin/view/help.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-interlinks-manager/admin/view/options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-interlinks-manager/admin/view/pro_version.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-interlinks-manager/admin/view/dashboard.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

daext-interlinks-manager/init.php 92% from 13 tests

The primary PHP file in "Interlinks Manager" version 1.07 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("daext-interlinks-manager.php" instead of "init.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
There were no executable files found in this plugin6,452 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
CSS13512962,601
PHP139116512,432
JavaScript72281011,400
Markdown14019

PHP code Passed 2 tests

An overview 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.28
Average class complexity35.67
▷ Minimum class complexity14.00
▷ Maximum class complexity48.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods100
▷ Static methods66.00%
▷ Public methods9595.00%
▷ Protected methods00.00%
▷ Private methods55.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
12 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/inc/chosen/chosen-sprite.png3.39KB1.00KB▼ 70.36%
admin/assets/img/search.png0.21KB0.21KB0.00%
admin/assets/img/help-f7f7f7.png15.86KB0.59KB▼ 96.25%
admin/assets/img/arrow-down-f7f7f7.png15.21KB0.15KB▼ 98.99%
admin/assets/img/help-fdfdfd.png15.52KB0.53KB▼ 96.60%