63% automatic-internal-links-for-seo

Code Review | Internal Linking for SEO traffic & Ranking - Auto internal links (100% automatic)

WordPress plugin Internal Linking for SEO traffic & Ranking - Auto internal links (100% automatic) scored63%from 54 tests.

About plugin

  • Plugin page: automatic-interna...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Dec 7, 2021
  • Latest release: Aug 24, 2023
  • Number of updates: 17
  • Update frequency: every 38.2 days
  • Top authors: pagup (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /9,540 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲5.47MB] [CPU: ▲21.86ms] 75% from 4 tests

Analyzing server-side resources used by Internal Linking for SEO traffic & Ranking - Auto internal links (100% automatic)
The following require your attention
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.47MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.26 ▲5.8068.15 ▲28.43
Dashboard /wp-admin9.28 ▲5.9471.05 ▲10.31
Posts /wp-admin/edit.php9.28 ▲5.9371.67 ▲25.37
Add New Post /wp-admin/post-new.php10.09 ▲4.21115.40 ▲23.34
Media Library /wp-admin/upload.php9.28 ▲6.0663.91 ▲31.98
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2856.98

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 253 new files
Database: 2 new tables, 11 new options
New tables
wp_auto_internal_log
wp_auto_internal_links
New WordPress options
widget_theysaidso_widget
widget_recent-posts
autolinks_db_version
fs_accounts
fs_active_plugins
widget_recent-comments
can_compress_scripts
db_upgraded
fs_debug_mode
automatic-internal-links-for-seo
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Internal Linking for SEO traffic & Ranking - Auto internal links (100% automatic)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.24 ▼0.721.70 ▲0.0029.08 ▼15.71
Dashboard /wp-admin2,240 ▲524.87 ▼0.03109.21 ▲3.2641.33 ▼4.01
Posts /wp-admin/edit.php2,123 ▲342.00 ▲0.0341.07 ▲5.4038.62 ▲4.11
Add New Post /wp-admin/post-new.php1,546 ▲3223.07 ▲5.34651.31 ▼33.7252.46 ▼6.98
Media Library /wp-admin/upload.php1,416 ▲284.29 ▲0.0899.71 ▼0.1544.80 ▲1.00
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0941.6923.9128.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/automatic-internal-links-for-seo/vendor/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_auto_internal_log
    • wp_auto_internal_links
  • Zombie WordPress options detected upon uninstall: 11 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • fs_active_plugins
    • can_compress_scripts
    • fs_debug_mode
    • automatic-internal-links-for-seo
    • autolinks_db_version
    • widget_recent-posts
    • fs_accounts
    • ...

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)
The smoke test was a success, however most plugin functionality was not tested

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
  • 36× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/automatic-internal-links-for-seo/admin/views/inc/edit.view.php:9
    • > PHP Warning
      Use of undefined constant AILS_LOG_TABLE - assumed 'AILS_LOG_TABLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/automatic-internal-links-for-seo/admin/controllers/ReplaceController.php on line 208
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/automatic-internal-links-for-seo/admin/views/inc/overrides.view.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/automatic-internal-links-for-seo/admin/views/inc/add.view.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/automatic-internal-links-for-seo/admin/views/inc/nav.view.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'html_changer\\HtmlPart' not found in wp-content/plugins/automatic-internal-links-for-seo/vendor/friedolinfoerder/html-changer/src/EndingTag.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function describe() in wp-content/plugins/automatic-internal-links-for-seo/vendor/friedolinfoerder/html-changer/spec/filter.spec.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function describe() in wp-content/plugins/automatic-internal-links-for-seo/vendor/friedolinfoerder/html-changer/spec/tree.spec.php:5
    • > PHP Fatal error
      Trait 'Pagup\\AutoLinks\\Traits\\Helpers' not found in wp-content/plugins/automatic-internal-links-for-seo/admin/controllers/SettingsController.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'Pagup\\AutoLinks\\Controllers\\SettingsController' not found in wp-content/plugins/automatic-internal-links-for-seo/admin/controllers/PagesController.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: The official readme.txt is a good inspiration

automatic-internal-links-for-seo/automatic-internal-links-for-seo.php 85% from 13 tests

This is the main PHP file of "Internal Linking for SEO traffic & Ranking - Auto internal links (100% automatic)" version 1.1.2, 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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin39,265 lines of code in 200 files:
LanguageFilesBlank linesComment linesLines of code
PHP1679,07117,69537,321
CSS167473985
JavaScript13107112822
JSON30097
Markdown18040

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity69.24
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces7
Interfaces1
Traits1
Classes68
▷ Abstract classes22.94%
▷ Concrete classes6697.06%
▷ Final classes00.00%
Methods1,400
▷ Static methods23116.50%
▷ Public methods99270.86%
▷ Protected methods171.21%
▷ Private methods39127.93%
Functions191
▷ Named functions10253.40%
▷ Anonymous functions8946.60%
Constants149
▷ Global constants10268.46%
▷ Class constants4731.54%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
vendor/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
admin/assets/metabox.png44.99KB19.47KB▼ 56.71%