78% outboundlinks

Code Review | OutBoundLinks

WordPress plugin OutBoundLinks scored78%from 54 tests.

About plugin

  • Plugin page: outboundlinks
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 2, 2016
  • Latest release: Jan 5, 2021
  • Number of updates: 13
  • Update frequency: every 136.2 days
  • Top authors: pawaryogesh1989 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,677 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.07ms] Passed 4 tests

Server-side resources used by OutBoundLinks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.24 ▼4.18
Dashboard /wp-admin3.31 ▼0.0355.54 ▼7.78
Posts /wp-admin/edit.php3.36 ▲0.0146.65 ▼10.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.56 ▼5.66
Media Library /wp-admin/upload.php3.23 ▲0.0134.34 ▼1.48

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for OutBoundLinks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲12013.48 ▼1.259.45 ▲7.6442.58 ▼8.91
Dashboard /wp-admin2,198 ▲215.62 ▼0.0795.99 ▼9.5842.81 ▼0.38
Posts /wp-admin/edit.php2,097 ▼61.97 ▼0.1034.70 ▼11.7933.31 ▼6.41
Add New Post /wp-admin/post-new.php1,526 ▼023.33 ▲0.24612.47 ▼69.1357.07 ▲10.84
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0196.34 ▼11.7842.92 ▼0.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/outboundlinks/outboundlinks.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/outboundlinks/classes/class.outbound.links.php:15

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Requires at least: Version not formatted correctly
You can take inspiration from this readme.txt

outboundlinks/outboundlinks.php 92% from 13 tests

The entry point to "OutBoundLinks" version 3.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin76 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2253469
JavaScript1367

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin