73% broken-link-checker-seo

Code Review | Broken Link Checker by AIOSEO – Easily Fix/Monitor Internal and External links

WordPress plugin Broken Link Checker by AIOSEO – Easily Fix/Monitor Internal and External links scored73%from 54 tests.

About plugin

  • Plugin page: broken-link-check...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 29, 2023
  • Latest release: Aug 9, 2023
  • Number of updates: 23
  • Update frequency: every 6.7 days
  • Top authors: arnaudbroes (78.26%)benjaminprojas (26.09%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /4,097 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲2.61MB] [CPU: ▲17.09ms] Passed 4 tests

Server-side resources used by Broken Link Checker by AIOSEO – Easily Fix/Monitor Internal and External links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /6.06 ▲2.6062.10 ▲23.11
Dashboard /wp-admin5.93 ▲2.5965.92 ▲2.94
Posts /wp-admin/edit.php5.98 ▲2.6376.53 ▲32.45
Add New Post /wp-admin/post-new.php8.76 ▲2.87106.83 ▲12.70
Media Library /wp-admin/upload.php5.85 ▲2.6262.92 ▲29.61
Setup Wizard /wp-admin/index.php?page=broken-link-checker-setup-wizard5.8751.91
SEO Settings /wp-admin/admin.php?page=broken-link-checker-seo-settings6.1154.94
About Us /wp-admin/admin.php?page=broken-link-checker-about6.1154.86
Broken Links /wp-admin/admin.php?page=broken-link-checker6.0861.14

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 321 new files
Database: 9 new tables, 11 new options
New tables
wp_actionscheduler_groups
wp_aioseo_blc_link_status
wp_aioseo_blc_notifications
wp_actionscheduler_actions
wp_aioseo_blc_cache
wp_aioseo_blc_posts
wp_actionscheduler_logs
wp_actionscheduler_claims
wp_aioseo_blc_links
New WordPress options
widget_recent-posts
schema-ActionScheduler_StoreSchema
schema-ActionScheduler_LoggerSchema
aioseo_blc_options_internal
can_compress_scripts
widget_theysaidso_widget
db_upgraded
action_scheduler_hybrid_store_demarkation
action_scheduler_lock_async-request-runner
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for Broken Link Checker by AIOSEO – Easily Fix/Monitor Internal and External links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13313.24 ▼1.141.92 ▲0.2442.49 ▲0.32
Dashboard /wp-admin2,263 ▲714.91 ▼0.9599.03 ▼9.2038.91 ▼3.01
Posts /wp-admin/edit.php2,143 ▲542.03 ▲0.0440.86 ▲0.2833.99 ▼2.65
Add New Post /wp-admin/post-new.php1,558 ▲3923.03 ▼0.23691.00 ▲6.1766.61 ▲9.98
Media Library /wp-admin/upload.php1,439 ▲514.22 ▲0.03100.17 ▼9.2342.64 ▼4.35
Setup Wizard /wp-admin/index.php?page=broken-link-checker-setup-wizard1892.7532.1222.11
SEO Settings /wp-admin/admin.php?page=broken-link-checker-seo-settings1,2134.0451.2728.69
About Us /wp-admin/admin.php?page=broken-link-checker-about1,7454.7644.4046.31
Broken Links /wp-admin/admin.php?page=broken-link-checker1,5325.1538.7336.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure failed, leaving 9 tables in the database
    • wp_actionscheduler_logs
    • wp_actionscheduler_actions
    • wp_aioseo_blc_links
    • wp_aioseo_blc_cache
    • wp_aioseo_blc_notifications
    • wp_actionscheduler_groups
    • wp_aioseo_blc_posts
    • wp_actionscheduler_claims
    • wp_aioseo_blc_link_status
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • db_upgraded
    • action_scheduler_hybrid_store_demarkation
    • schema-ActionScheduler_LoggerSchema
    • schema-ActionScheduler_StoreSchema
    • theysaidso_admin_options
    • can_compress_scripts
    • action_scheduler_lock_async-request-runner
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • ...

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 71× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/broken-link-checker-seo/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/broken-link-checker-seo/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/broken-link-checker-seo/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Store\\StoreInterface' not found in wp-content/plugins/broken-link-checker-seo/vendor/vlucas/phpdotenv/src/Store/StringStore.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/broken-link-checker-seo/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\ReaderInterface' not found in wp-content/plugins/broken-link-checker-seo/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _n() in wp-content/plugins/broken-link-checker-seo/languages/aioseo-broken-link-checker.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/broken-link-checker-seo/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Action_Scheduler\\Migration\\LogMigrator' not found in wp-content/plugins/broken-link-checker-seo/vendor/woocommerce/action-scheduler/classes/migration/DryRun_LogMigrator.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_FinishedAction' not found in wp-content/plugins/broken-link-checker-seo/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: links, external link, check links, bad links, internal link...

broken-link-checker-seo/aioseo-broken-link-checker.php 69% from 13 tests

Analyzing the main PHP file in "Broken Link Checker by AIOSEO – Easily Fix/Monitor Internal and External links" version 1.0.5
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("broken-link-checker-seo.php" instead of "aioseo-broken-link-checker.php")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin21,435 lines of code in 293 files:
LanguageFilesBlank linesComment linesLines of code
PHP2184,30712,45720,282
JSON800879
Markdown6570139
JavaScript3673574
SVG70043
CSS180018

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity12.78
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces33
Interfaces12
Traits12
Classes171
▷ Abstract classes179.94%
▷ Concrete classes15490.06%
▷ Final classes4126.62%
Methods1,354
▷ Static methods25018.46%
▷ Public methods1,07379.25%
▷ Protected methods14410.64%
▷ Private methods13710.12%
Functions195
▷ Named functions13066.67%
▷ Anonymous functions6533.33%
Constants69
▷ Global constants1115.94%
▷ Class constants5884.06%
▷ Public constants4679.31%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 2.65MB with 1.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/assets/images/instagram.e7ef455b.png1.65KB0.79KB▼ 51.95%
dist/assets/images/monsterinsights.51233def.png4.62KB2.49KB▼ 46.10%
dist/assets/images/youtube.738aaae9.png0.64KB0.47KB▼ 27.62%
dist/assets/images/optinmonster.091a3fa5.png5.70KB2.78KB▼ 51.31%
dist/assets/images/facebook.630db56b.png1.28KB0.69KB▼ 45.60%