84% automatic-internal-links

Code Review | Automatic Internal Links

WordPress plugin Automatic Internal Links scored84%from 54 tests.

About plugin

  • Plugin page: automatic-interna...
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.5
  • WordPress version: 6.3.1
  • First release: Jan 13, 2016
  • Latest release: Jan 13, 2016
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: georgestephanis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,451 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Automatic Internal Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.39 ▼7.04
Dashboard /wp-admin3.32 ▲0.0148.66 ▼4.52
Posts /wp-admin/edit.php3.37 ▲0.0152.24 ▲5.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.94 ▲0.36
Media Library /wp-admin/upload.php3.24 ▲0.0136.36 ▼0.09

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Automatic Internal Links: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.38 ▲0.111.86 ▼0.2841.64 ▼1.64
Dashboard /wp-admin2,195 ▲185.57 ▼0.0391.91 ▼14.1345.27 ▼2.98
Posts /wp-admin/edit.php2,097 ▼02.03 ▲0.0438.89 ▲2.3736.08 ▲0.41
Add New Post /wp-admin/post-new.php1,531 ▲323.22 ▲0.10667.37 ▼20.8864.38 ▲5.41
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.02100.88 ▼4.0946.54 ▲0.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/automatic-internal-links/automatic-internal-links.php:13

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 Passed 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
1 plugin tags: internal links

automatic-internal-links/automatic-internal-links.php Passed 13 tests

Analyzing the main PHP file in "Automatic Internal Links" version 0.9
52 characters long description:
Provide automatic callout embeds for internal links.

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
Good job! No executable or dangerous file extensions detected69 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP181939
CSS16030

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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