68% pro-links-maintainer-dev

Code Review | Pro Broken Links Maintainer

WordPress plugin Pro Broken Links Maintainer scored 68% from 54 tests.

About plugin

  • Plugin page: pro-links-maintai...
  • Plugin version: 1.1.7.5
  • PHP compatiblity: 5.6.40+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 5.9.2
  • First release: Aug 24, 2019
  • Latest release: Dec 5, 2019
  • Number of updates: 22
  • Update frequency: every 4.8 days
  • Top authors: maciejbak85 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

60+ active / 1,605 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲3.83MB] [CPU: ▼275.45ms] Passed 4 tests

Analyzing server-side resources used by Pro Broken Links Maintainer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /8.20 ▲4.68127.93 ▲73.16
Dashboard /wp-admin8.22 ▲4.8164.59 ▲29.38
Posts /wp-admin/edit.php8.22 ▲4.58110.73 ▲64.74
Add New Post /wp-admin/post-new.php8.22 ▲1.2555.14 ▼1,214.35
Media Library /wp-admin/upload.php8.22 ▲4.9248.93 ▲18.43
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius8.2245.86

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 184 new files
Database: 2 new tables, 8 new options
New tables
wp_bs_urls
wp_bs_invalid_url
New WordPress options
fs_api_cache
pro_links_maintainer_version
pro_links_maintainer_parser_status
pro_links_maintainer_installed
fs_debug_mode
fs_active_plugins
fs_accounts
fs_gdpr

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pro Broken Links Maintainer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,814 ▲7015.82 ▼0.095.90 ▲0.132.58 ▼0.17
Dashboard /wp-admin2,940 ▲866.38 ▲0.09118.83 ▼17.84174.99 ▲11.27
Posts /wp-admin/edit.php2,739 ▲513.43 ▲0.0163.49 ▼0.70160.80 ▲14.01
Add New Post /wp-admin/post-new.php1,732 ▲4220.91 ▼0.04484.94 ▲22.11164.44 ▲5.86
Media Library /wp-admin/upload.php1,746 ▲485.73 ▲0.02139.89 ▲2.62204.41 ▲13.04
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius1,4862.9454.13130.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 2 tables
    • wp_bs_urls
    • wp_bs_invalid_url
  • Zombie WordPress options were found after uninstall: 8 options
    • pro_links_maintainer_installed
    • fs_active_plugins
    • pro_links_maintainer_parser_status
    • pro_links_maintainer_version
    • fs_api_cache
    • fs_accounts
    • fs_debug_mode
    • fs_gdpr

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/pro-links-maintainer-dev/freemius/templates/ajax-loader.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/pro-links-maintainer-dev/freemius/templates/account/partials/addon.php:9
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/pro-links-maintainer-dev/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/pro-links-maintainer-dev/freemius/templates/partials/network-activation.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pro-links-maintainer-dev/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/pro-links-maintainer-dev/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pro-links-maintainer-dev/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/pro-links-maintainer-dev/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pro-links-maintainer-dev/freemius/templates/account/partials/addon.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% 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
5 plugin tags: maintenance, broken links, links, seo, broken

pro-links-maintainer-dev/plugin.php 92% from 13 tests

The primary PHP file in "Pro Broken Links Maintainer" version 1.1.7.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pro-links-maintainer-dev.php" instead of "plugin.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin43,477 lines of code in 145 files:
LanguageFilesBlank linesComment linesLines of code
PHP1196,90415,38229,495
PO File105,7106,91312,558
JavaScript46183791,375
Markdown18033
CSS100013
JSON1003

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
These items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,609)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity64.28
▷ Minimum class complexity1.00
▷ Maximum class complexity2,609.00
Average method complexity4.24
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes60
▷ Abstract classes23.33%
▷ Concrete classes5896.67%
▷ Final classes610.34%
Methods1,202
▷ Static methods17214.31%
▷ Public methods86972.30%
▷ Protected methods151.25%
▷ Private methods31826.46%
Functions93
▷ Named functions9298.92%
▷ Anonymous functions11.08%
Constants146
▷ Global constants12384.25%
▷ Class constants2315.75%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/pro-links-maintainer.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%