10% wp-auto-links

Code Review | Auto Links for WordPress

WordPress plugin Auto Links for WordPress scored10%from 54 tests.

About plugin

  • Plugin page: wp-auto-links
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 14, 2018
  • Latest release: Jul 25, 2022
  • Number of updates: 15
  • Update frequency: every 87.9 days
  • Top authors: leocolomb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,004 total downloads

Benchmarks

Plugin footprint 58% 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
    • > Warning in wp-content/plugins/wp-auto-links/wp-auto-links.php+19
    require_once(wp-content/plugins/wp-auto-links/vendor/autoload.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.04ms] Passed 4 tests

Server-side resources used by Auto Links for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.46 ▲1.32
Dashboard /wp-admin3.31 ▲0.0059.17 ▲2.52
Posts /wp-admin/edit.php3.36 ▲0.0052.05 ▼2.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.64 ▼5.09
Media Library /wp-admin/upload.php3.23 ▲0.0040.41 ▲2.71

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Links for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.441.84 ▼0.0438.09 ▼4.20
Dashboard /wp-admin2,195 ▲185.64 ▲0.0389.52 ▲0.2740.25 ▼4.49
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0736.68 ▲0.7738.11 ▲3.13
Add New Post /wp-admin/post-new.php1,526 ▼023.06 ▼0.05646.30 ▼57.0355.96 ▲6.16
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.0196.68 ▼7.6143.38 ▼0.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/wp-auto-links/src/class-wp-auto-links-cli_commands.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Auto_Links_Helper' not found in wp-content/plugins/wp-auto-links/templates/admin.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
7 plugin tags: auto links, posts, links, seo, pages...

wp-auto-links/wp-auto-links.php Passed 13 tests

This is the main PHP file of "Auto Links for WordPress" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
An inner links generator for WordPress

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
No dangerous file extensions were detected881 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7138267848
JSON10033

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods40
▷ Static methods1332.50%
▷ Public methods3075.00%
▷ Protected methods1025.00%
▷ Private methods00.00%
Functions11
▷ Named functions00.00%
▷ Anonymous functions11100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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