78% opensimulator-bridge

Code Review | OpenSimulator Bridge

WordPress plugin OpenSimulator Bridge scored78%from 54 tests.

About plugin

  • Plugin page: opensimulator-bridge
  • Plugin version: 0.1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Sep 2, 2020
  • Latest release: Dec 15, 2022
  • Number of updates: 11
  • Update frequency: every 75.8 days
  • Top authors: soupbowl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /905 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
Installer ran successfully

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

This is a short check of server-side resources used by OpenSimulator Bridge
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1237.21 ▲1.83
Dashboard /wp-admin3.42 ▲0.1246.86 ▲2.11
Posts /wp-admin/edit.php3.54 ▲0.1846.21 ▲1.14
Add New Post /wp-admin/post-new.php6.01 ▲0.1182.05 ▼7.95
Media Library /wp-admin/upload.php3.35 ▲0.1134.93 ▲1.29
OpenSimulator /wp-admin/options-general.php?page=wpos_settings3.3135.33

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for OpenSimulator Bridge
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.17 ▼0.261.72 ▲0.0537.48 ▼4.36
Dashboard /wp-admin2,199 ▲225.49 ▼0.1885.38 ▼2.4340.16 ▼4.11
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0234.01 ▼2.5335.89 ▲0.06
Add New Post /wp-admin/post-new.php1,529 ▲323.36 ▲0.23693.78 ▲17.4658.84 ▲2.13
Media Library /wp-admin/upload.php1,401 ▲14.23 ▼0.01105.12 ▲8.7045.08 ▼1.94
OpenSimulator /wp-admin/options-general.php?page=wpos_settings8102.0226.6632.55

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/opensimulator-bridge/vendor/phpxmlrpc/phpxmlrpc/debugger/index.php
    • > /wp-content/plugins/opensimulator-bridge/vendor/phpxmlrpc/phpxmlrpc/debugger/action.php
    • > /wp-content/plugins/opensimulator-bridge/vendor/phpxmlrpc/phpxmlrpc/debugger/controller.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wposbridge\\add_action() in wp-content/plugins/opensimulator-bridge/class-profile.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'PhpXmlRpc\\Exception\\PhpXmlrpcException' not found in wp-content/plugins/opensimulator-bridge/vendor/phpxmlrpc/phpxmlrpc/src/Exception/HttpException.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
5 plugin tags: opensimulator, second life, metaverse, opensim, xmlrpc

opensimulator-bridge/opensimulator-bridge.php 92% from 13 tests

The principal PHP file in "OpenSimulator Bridge" v. 0.1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected7,132 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP348992,8786,042
Markdown33720706
Pascal366305263
JSON300121

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity47.62
▷ Minimum class complexity1.00
▷ Maximum class complexity230.00
Average method complexity5.91
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods224
▷ Static methods4921.88%
▷ Public methods19787.95%
▷ Protected methods2410.71%
▷ Private methods31.34%
Functions11
▷ Named functions436.36%
▷ Anonymous functions763.64%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin