84% report-broken-links

Code Review | Links/Problem Reporter

WordPress plugin Links/Problem Reporter scored84%from 54 tests.

About plugin

  • Plugin page: report-broken-links
  • Plugin version: 2.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-3.6.0
  • WordPress version: 6.3.1
  • First release: Nov 19, 2012
  • Latest release: Aug 13, 2013
  • Number of updates: 59
  • Update frequency: every 4.5 days
  • Top authors: RaminMT (98.31%)Otto42 (3.39%)

Code review

54 tests

User reviews

11 reviews

Install metrics

400+ active /14,159 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.90ms] Passed 4 tests

Analyzing server-side resources used by Links/Problem Reporter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1341.56 ▼2.13
Dashboard /wp-admin3.42 ▲0.1243.49 ▼3.12
Posts /wp-admin/edit.php3.53 ▲0.1744.11 ▼8.71
Add New Post /wp-admin/post-new.php6.00 ▲0.1184.15 ▼0.81
Media Library /wp-admin/upload.php3.34 ▲0.1135.57 ▼1.63
Reports /wp-admin/admin.php?page=RBL-reports3.3133.28
Support /wp-admin/admin.php?page=RBL-support3.3132.00
Setting /wp-admin/admin.php?page=RBL-Setting3.3132.46
About Plugin /wp-admin/admin.php?page=RBL-about3.3128.98
How To Use /wp-admin/admin.php?page=RBL-learn3.3132.06

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: 1 new table, 18 new options
New tables
wp_ReportedLinks
New WordPress options
RBL_Submit
RBL_BTC
db_upgraded
widget_recent-comments
theysaidso_admin_options
RBL_Mail
can_compress_scripts
RBL_BCS
RBL_msg
RBL_SDB
...

Browser metrics Passed 4 tests

Links/Problem Reporter: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,036 ▲27913.95 ▼0.4510.51 ▲8.6538.54 ▼4.73
Dashboard /wp-admin2,281 ▲1075.88 ▲0.99110.65 ▼5.6640.53 ▼1.70
Posts /wp-admin/edit.php2,130 ▲412.00 ▲0.0336.09 ▼0.5132.10 ▼0.09
Add New Post /wp-admin/post-new.php1,559 ▲2518.47 ▼4.80612.61 ▼94.5354.38 ▼20.11
Media Library /wp-admin/upload.php1,432 ▲474.20 ▼0.0394.98 ▼7.9844.55 ▼3.05
Reports /wp-admin/admin.php?page=RBL-reports8302.0424.1733.46
Support /wp-admin/admin.php?page=RBL-support8162.1725.5027.97
Setting /wp-admin/admin.php?page=RBL-Setting9112.0324.0430.74
About Plugin /wp-admin/admin.php?page=RBL-about8352.0524.2725.75
How To Use /wp-admin/admin.php?page=RBL-learn8522.1124.4226.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/report-broken-links/RBL_Ajax.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/report-broken-links/RBL_Admin.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/report-broken-links/ReportBrokenLinks-Core.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: broken links, problem, dead, report, dead links...

report-broken-links/ReportBrokenLinks-Core.php 92% from 13 tests

The main PHP script in "Links/Problem Reporter" version 2.6.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("report-broken-links.php" instead of "ReportBrokenLinks-Core.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected543 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP42224368
PO File15157147
CSS5141628

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
imgs/adm_close.png3.96KB1.37KB▼ 65.48%
imgs/ui_close.png0.74KB0.74KB0.00%