73% internal-link-flow-topical-authority-topical-map

Code Review | Internal Link Flow & Topical Authority & Topical Map

WordPress plugin Internal Link Flow & Topical Authority & Topical Map scored 73% from 54 tests.

About plugin

  • Plugin page: internal-link-flo...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Jan 16, 2023
  • Latest release: Jan 17, 2023
  • Number of updates: 8
  • Update frequency: every 2.4 days
  • Top authors: nusert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 390 total downloads

Benchmarks

Plugin footprint 65% 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.23MB] [CPU: ▼14.15ms] 75% from 4 tests

This is a short check of server-side resources used by Internal Link Flow & Topical Authority & Topical Map
Please take the time to fix the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,766.41ms on /wp-admin/admin.php?page=internal-link-flow--topical-authority--topical-map)
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5942.10 ▲1.31
Dashboard /wp-admin3.55 ▲0.2429.02 ▼21.20
Posts /wp-admin/edit.php3.62 ▲0.2735.78 ▼6.79
Add New Post /wp-admin/post-new.php5.98 ▲0.0968.30 ▼24.96
Media Library /wp-admin/upload.php3.57 ▲0.3429.28 ▼3.64
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius3.9936.34
Internal Link Flow & Topical Authority & Topical Map /wp-admin/admin.php?page=internal-link-flow--topical-authority--topical-map4.161,766.41

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 189 new files
Database: 1 new table, 11 new options
New tables
wp_internal_link_flow
New WordPress options
internal_link_flow_version
widget_theysaidso_widget
fs_gdpr
widget_recent-posts
fs_debug_mode
widget_recent-comments
theysaidso_admin_options
fs_accounts
fs_active_plugins
db_upgraded
...

Browser metrics Passed 4 tests

Checking browser requirements for Internal Link Flow & Topical Authority & Topical Map
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲12813.27 ▼1.101.74 ▼0.3433.24 ▼15.22
Dashboard /wp-admin2,285 ▲975.86 ▲0.83103.16 ▼12.8042.54 ▼1.66
Posts /wp-admin/edit.php2,178 ▲892.01 ▲0.0240.85 ▲4.8337.91 ▲5.33
Add New Post /wp-admin/post-new.php1,537 ▲1723.38 ▲0.25651.93 ▼10.6161.62 ▲10.57
Media Library /wp-admin/upload.php1,476 ▲944.23 ▲0.0298.30 ▲0.1343.83 ▼5.10
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius1,1351.8525.6526.42
Internal Link Flow & Topical Authority & Topical Map /wp-admin/admin.php?page=internal-link-flow--topical-authority--topical-map1,0401.6827.5057.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_internal_link_flow
  • Zombie WordPress options were found after uninstall: 11 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • internal_link_flow_version
    • db_upgraded
    • fs_gdpr
    • fs_debug_mode
    • fs_active_plugins
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/internal-link-flow-topical-authority-topical-map/includes/class_ilf_create_admin_menu.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/internal-link-flow-topical-authority-topical-map/includes/class_ilf_create_flow_routes.php:15
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/internal-link-flow-topical-authority-topical-map/includes/class_ilf_create_flow_routes.php on line 14

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: internal link, flow, external link, topical map, seo...

internal-link-flow-topical-authority-topical-map/internal-link-flow.php 77% from 13 tests

"Internal Link Flow & Topical Authority & Topical Map" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("internal-link-flow-topical-authority-topical-map.php" instead of "internal-link-flow.php")
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.4")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin34,664 lines of code in 143 files:
LanguageFilesBlank linesComment linesLines of code
PHP1248,01117,22033,223
CSS14771141,032
Markdown1680214
JavaScript43459195

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity85.96
▷ Minimum class complexity1.00
▷ Maximum class complexity3,089.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes00.00%
Methods1,268
▷ Static methods19415.30%
▷ Public methods88669.87%
▷ Protected methods171.34%
▷ Private methods36528.79%
Functions97
▷ Named functions97100.00%
▷ Anonymous functions00.00%
Constants149
▷ Global constants10268.46%
▷ Class constants4731.54%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/internal-link-flow--topical-authority--topical-map.png2.27KB1.05KB▼ 53.73%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%