84% open-links-in-sl

Code Review | Open Links in SL

WordPress plugin Open Links in SL scored84%from 54 tests.

About plugin

  • Plugin page: open-links-in-sl
  • Plugin version: 0.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Sep 10, 2021
  • Latest release: Apr 22, 2022
  • Number of updates: 5
  • Update frequency: every 55.4 days
  • Top authors: coderocketstudios (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Open Links in SL
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.51 ▲5.25
Dashboard /wp-admin3.31 ▲0.0147.35 ▲0.26
Posts /wp-admin/edit.php3.36 ▲0.0048.48 ▼0.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.84 ▼17.17
Media Library /wp-admin/upload.php3.23 ▲0.0033.84 ▼1.08

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Open Links in SL: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14914.03 ▼0.668.86 ▲6.8343.14 ▼21.11
Dashboard /wp-admin2,203 ▲125.81 ▲0.93100.50 ▼5.8939.06 ▼4.45
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0236.39 ▼0.3535.15 ▲0.37
Add New Post /wp-admin/post-new.php1,514 ▼2023.60 ▲0.61658.87 ▲4.3361.54 ▲8.64
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0798.59 ▲4.4742.09 ▲1.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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 everything seems fine, this is not 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/open-links-in-sl/open-links-in-sl.php:25

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: virtual world, slurl, second life

open-links-in-sl/open-links-in-sl.php 92% from 13 tests

The principal PHP file in "Open Links in SL" v. 0.9 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 188 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin60 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript15355
PHP13175

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin