84% easy-broken-link-checker

Code Review | URL Shortener | Conversion Tracking | AB Testing | WooCommerce

WordPress plugin URL Shortener | Conversion Tracking | AB Testing | WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: easy-broken-link-...
  • Plugin version: 9.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 4, 2019
  • Latest release: Dec 13, 2020
  • Number of updates: 69
  • Update frequency: every 6.8 days
  • Top authors: tahminajannat (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /7,476 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
Installer ran successfully

Server metrics [RAM: ▼0.13MB] [CPU: ▼7.16ms] Passed 4 tests

A check of server-side resources used by URL Shortener | Conversion Tracking | AB Testing | WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.6815.35 ▼25.74
Dashboard /wp-admin3.35 ▲0.0554.29 ▲3.82
Posts /wp-admin/edit.php3.47 ▲0.1146.35 ▼9.27
Add New Post /wp-admin/post-new.php5.94 ▲0.05100.76 ▲2.57
Media Library /wp-admin/upload.php3.28 ▲0.0540.18 ▲7.63

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: 5 new tables, 9 new options
New tables
wp_eblc_redirection_links
wp_eblc_geo_redirection_links
wp_eblc_login_attempts_log
wp_eblc_link_clicks
wp_eblc_shorten_links
New WordPress options
widget_theysaidso_widget
widget_recent-posts
eblc_link_options
eblc_sec_options
theysaidso_admin_options
widget_recent-comments
eblc_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

URL Shortener | Conversion Tracking | AB Testing | WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7714.27 ▲0.061.79 ▼0.0734.74 ▼7.28
Dashboard /wp-admin2,211 ▲345.65 ▲0.0391.95 ▼5.9443.09 ▼2.17
Posts /wp-admin/edit.php2,116 ▲131.99 ▼0.0238.74 ▼3.1534.33 ▼1.68
Add New Post /wp-admin/post-new.php1,540 ▲1421.17 ▼2.40611.31 ▼12.0647.82 ▼11.21
Media Library /wp-admin/upload.php1,419 ▲224.27 ▲0.0599.36 ▼4.1243.62 ▼4.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/easy-broken-link-checker/shorten-links-table-core.php on line 8
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-broken-link-checker/shorten-links-table-core.php on line 8
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/easy-broken-link-checker/geo-redirection-links-table-core.php on line 8
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-broken-link-checker/geo-redirection-links-table-core.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/easy-broken-link-checker/checker-options-page-view.php:100
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-broken-link-checker/redirection-links-table-core.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-broken-link-checker/checker-core.php:11
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-broken-link-checker/geo-redirection-links-table-core.php on line 8
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-broken-link-checker/geo-redirection-links-table-core.php on line 8
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/easy-broken-link-checker/shorten-links-table-core.php on line 8

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #6 (Link Clicks Analytics), #7 (Link Clicks Analytics), #8 (Conversion Rate Analytics)
You can take inspiration from this readme.txt

easy-broken-link-checker/easy-broken-link-checker.php 92% from 13 tests

"URL Shortener | Conversion Tracking | AB Testing | WooCommerce" version 9.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)

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 plugin5,765 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP145223483,219
JavaScript6304932,013
CSS49530533

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity26.67
▷ Minimum class complexity24.00
▷ Maximum class complexity31.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods4081.63%
▷ Protected methods00.00%
▷ Private methods918.37%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.34MB with 0.18MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/ad.png81.54KB26.54KB▼ 67.45%
img/be on google.png267.20KB104.89KB▼ 60.75%
img/copy--v1.png1.33KB0.94KB▼ 29.60%