10% s2bd-bridge

Code Review | S2BD Bridge

WordPress plugin S2BD Bridge scored10%from 54 tests.

About plugin

  • Plugin page: s2bd-bridge
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 25, 2014
  • Latest release: Jan 14, 2016
  • Number of updates: 19
  • Update frequency: every 21.9 days
  • Top authors: webbud65 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /861 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/s2bd-bridge/s2bd-bridge.php+79
    Undefined variable: option_name

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

An overview of server-side resources used by S2BD Bridge
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.04 ▼0.83
Dashboard /wp-admin3.31 ▲0.0049.70 ▼5.13
Posts /wp-admin/edit.php3.36 ▲0.0050.70 ▲1.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.58 ▼17.06
Media Library /wp-admin/upload.php3.23 ▲0.0039.99 ▲0.94

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: 2 new tables, 6 new options
New tables
wp_sbd_options
wp_sbd_relations
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

S2BD Bridge: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.36 ▲0.161.63 ▼0.0741.28 ▼7.19
Dashboard /wp-admin2,198 ▲245.65 ▲0.1291.88 ▼6.4039.36 ▼3.14
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0339.43 ▲4.0436.46 ▲2.14
Add New Post /wp-admin/post-new.php1,526 ▼223.71 ▲0.43666.79 ▼20.8151.66 ▼1.47
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.08100.02 ▼4.9146.21 ▲0.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_sbd_options
    • wp_sbd_relations
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • 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
  • 9× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/s2bd-bridge/inscribe-members.php
    • > /wp-content/plugins/s2bd-bridge/fields-settings.php
    • > /wp-content/plugins/s2bd-bridge/general-settings.php
    • > /wp-content/plugins/s2bd-bridge/forums-settings.php
    • > /wp-content/plugins/s2bd-bridge/s2bd-bridge.php
    • > /wp-content/plugins/s2bd-bridge/s2bd-bridge-manager.php
    • > /wp-content/plugins/s2bd-bridge/forums-subscriptions-stats.php
    • > /wp-content/plugins/s2bd-bridge/forums-per-member.php
    • > /wp-content/plugins/s2bd-bridge/fields-per-member.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

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

The main file in "S2BD Bridge" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,251 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP981158907
PO File1134143344

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin