84% wp2smfbridge

Code Review | WP2SMFBridge

WordPress plugin WP2SMFBridge scored 84% from 54 tests.

About plugin

  • Plugin page: wp2smfbridge
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.7
  • WordPress version: 6.3.1
  • First release: Jan 10, 2015
  • Latest release: Jan 31, 2017
  • Number of updates: 7
  • Update frequency: every 107.6 days
  • Top authors: x0DSR (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 3,213 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.73MB] [CPU: ▼54.95ms] Passed 4 tests

This is a short check of server-side resources used by WP2SMFBridge
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.169.64 ▼32.08
Dashboard /wp-admin2.26 ▼1.059.98 ▼47.73
Posts /wp-admin/edit.php2.26 ▼1.109.08 ▼47.52
Add New Post /wp-admin/post-new.php2.26 ▼3.638.91 ▼90.06
Media Library /wp-admin/upload.php2.26 ▼0.977.83 ▼34.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP2SMFBridge
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲2514.45 ▲0.072.15 ▼0.0042.52 ▲0.05
Dashboard /wp-admin2,206 ▼05.86 ▲1.03100.00 ▼7.3439.79 ▲0.74
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0339.80 ▲0.3735.68 ▲1.06
Add New Post /wp-admin/post-new.php1,416 ▼9817.71 ▲0.05721.28 ▲21.6246.26 ▼10.93
Media Library /wp-admin/upload.php1,382 ▼34.22 ▲0.0396.70 ▼9.7041.61 ▼1.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp2smfbridge/bridge.php:392

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp2smfbridge === )
You can look at the official readme.txt

wp2smfbridge/bridge.php 92% from 13 tests

The main PHP file in "WP2SMFBridge" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp2smfbridge.php" instead of "bridge.php")

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 plugin240 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP18197221
Markdown19019

PHP code Passed 2 tests

Analyzing 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.39
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.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
No PNG images were found in this plugin