93% find-broken-url

Code Review | Find broken url

WordPress plugin Find broken url scored 93% from 54 tests.

About plugin

  • Plugin page: find-broken-url
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.2
  • WordPress version: 5.8.1
  • First release: Nov 10, 2016
  • Latest release: May 10, 2019
  • Number of updates: 10
  • Update frequency: every 90.6 days
  • Top authors: classano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,386 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼146.74ms] Passed 4 tests

Analyzing server-side resources used by Find broken url
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0338.77 ▲2.11
Dashboard /wp-admin3.09 ▲0.0480.59 ▲27.86
Posts /wp-admin/edit.php3.14 ▲0.0457.90 ▲6.30
Add New Post /wp-admin/post-new.php5.45 ▲0.0299.00 ▼587.25
Media Library /wp-admin/upload.php3.03 ▲0.0331.11 ▼8.13

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 2 new tables, no new options
New tables
wp_nfbu_ignore
wp_nfbu_url

Browser metrics Passed 4 tests

This is an overview of browser requirements for Find broken url
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲11715.85 ▲0.2115.23 ▲3.6651.06 ▲4.35
Dashboard /wp-admin2,990 ▲565.96 ▼0.06159.27 ▲1.15124.38 ▲11.91
Posts /wp-admin/edit.php2,759 ▲202.72 ▲0.0072.84 ▲1.7297.24 ▲6.71
Add New Post /wp-admin/post-new.php1,696 ▲1318.82 ▲0.48419.33 ▲14.80114.83 ▲4.67
Media Library /wp-admin/upload.php1,827 ▲205.03 ▼0.00167.75 ▲13.98120.91 ▲2.00

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/find-broken-url/index.php

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

find-broken-url/index.php 85% from 13 tests

Analyzing the main PHP file in "Find broken url" version 1.1.1
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("find-broken-url.php" instead of "index.php")

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin268 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP251108236
PO File17032

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin