84% daext-autolinks-manager

Code Review | Autolinks Manager

WordPress plugin Autolinks Manager scored84%from 54 tests.

About plugin

  • Plugin page: daext-autolinks-m...
  • Plugin version: 1.10.05
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4
  • WordPress version: 6.3.1
  • First release: Oct 10, 2020
  • Latest release: Nov 2, 2023
  • Number of updates: 11
  • Update frequency: every 101.7 days
  • Top authors: daext (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /7,390 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: ▲0.64MB] [CPU: ▼2.64ms] Passed 4 tests

Server-side resources used by Autolinks Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2142.37 ▼3.26
Dashboard /wp-admin4.13 ▲0.7854.61 ▼6.61
Posts /wp-admin/edit.php4.18 ▲0.8254.85 ▲7.57
Add New Post /wp-admin/post-new.php6.68 ▲0.7987.27 ▼0.31
Media Library /wp-admin/upload.php3.99 ▲0.7638.04 ▼0.36
Statistics /wp-admin/admin.php?page=daextam-statistics4.0341.31
Categories /wp-admin/admin.php?page=daextam-categories4.0739.32
Export to Pro /wp-admin/admin.php?page=daextam-export-to-pro3.9635.16
Help /wp-admin/admin.php?page=daextam-help3.9634.99
Term Groups /wp-admin/admin.php?page=daextam-term-groups4.2340.98
Autolinks /wp-admin/admin.php?page=daextam-autolinks4.3943.58
Pro Version /wp-admin/admin.php?page=daextam-pro-version3.9733.96
Options /wp-admin/admin.php?page=daextam-options3.9840.03

Server storage [IO: ▲0.58MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 64 new files
Database: 4 new tables, 41 new options
New tables
wp_daextam_autolink
wp_daextam_term_group
wp_daextam_statistic
wp_daextam_category
New WordPress options
widget_recent-posts
daextam_advanced_general_limit_characters_per_autolink
daextam_database_version
daextam_advanced_general_limit_mode
daextam_defaults_priority
daextam_advanced_protected_gutenberg_custom_void_blocks
daextam_advanced_supported_terms
daextam_defaults_right_boundary
daextam_defaults_use_nofollow
daextam_defaults_categories
...

Browser metrics Passed 4 tests

Autolinks Manager: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲10214.68 ▲0.161.99 ▲0.1744.21 ▼0.30
Dashboard /wp-admin2,239 ▲685.55 ▼0.10103.05 ▲6.0735.26 ▼8.17
Posts /wp-admin/edit.php2,147 ▲442.03 ▲0.0039.16 ▲4.3630.75 ▼5.61
Add New Post /wp-admin/post-new.php1,585 ▲5724.59 ▲1.35657.73 ▼50.0633.55 ▼18.69
Media Library /wp-admin/upload.php1,444 ▲444.22 ▲0.0099.02 ▼3.0242.45 ▼5.46
Statistics /wp-admin/admin.php?page=daextam-statistics9301.9829.1848.17
Categories /wp-admin/admin.php?page=daextam-categories1,0282.4041.5735.38
Export to Pro /wp-admin/admin.php?page=daextam-export-to-pro8392.0223.7626.71
Help /wp-admin/admin.php?page=daextam-help8622.1524.0127.12
Term Groups /wp-admin/admin.php?page=daextam-term-groups2,3913.5283.4150.09
Autolinks /wp-admin/admin.php?page=daextam-autolinks1,7123.2665.6336.91
Pro Version /wp-admin/admin.php?page=daextam-pro-version9351.9921.9126.99
Options /wp-admin/admin.php?page=daextam-options1,2842.3952.8640.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-autolinks-manager/admin/view/export-to-pro.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-autolinks-manager/admin/view/term-groups.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-autolinks-manager/admin/view/pro-version.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-autolinks-manager/admin/view/autolinks.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-autolinks-manager/admin/view/options.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-autolinks-manager/admin/view/statistics.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-autolinks-manager/admin/view/help.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-autolinks-manager/admin/view/categories.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

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

This is the main PHP file of "Autolinks Manager" version 1.10.05, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("daext-autolinks-manager.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin10,959 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP161,5681,5346,663
CSS16508912,645
JavaScript112381961,582
PO File15626
JSON10024
Markdown14019

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity72.00
▷ Minimum class complexity6.00
▷ Maximum class complexity185.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity85.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods152
▷ Static methods74.61%
▷ Public methods13689.47%
▷ Protected methods00.00%
▷ Private methods1610.53%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
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
14 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/trash.png1.11KB0.19KB▼ 82.81%
admin/assets/inc/chosen/chosen-sprite.png3.39KB1.00KB▼ 70.36%
admin/assets/img/search-hover.png0.21KB0.21KB0.00%
admin/assets/img/clone-hover.png18.71KB0.12KB▼ 99.34%
admin/assets/img/arrow-down-f7f7f7.png15.21KB0.15KB▼ 98.99%