10% mushraider-bridge

Code Review | MushRaider Bridge

WordPress plugin MushRaider Bridge scored 10% from 54 tests.

About plugin

  • Plugin page: mushraider-bridge
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Sep 20, 2014
  • Latest release: Jul 28, 2016
  • Number of updates: 26
  • Update frequency: every 26.2 days
  • Top authors: mushtitude (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 3,212 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/mushraider-bridge/mushraider-bridge.php+38
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.87ms] Passed 4 tests

An overview of server-side resources used by MushRaider Bridge
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.03 ▼36.98
Dashboard /wp-admin2.05 ▼1.265.64 ▼39.84
Posts /wp-admin/edit.php2.05 ▼1.316.39 ▼41.11
Add New Post /wp-admin/post-new.php2.05 ▼3.845.94 ▼93.53
Media Library /wp-admin/upload.php2.05 ▼1.185.66 ▼28.14
Bridge settings /wp-admin/admin.php?page=mushraider-bridge/mushraider-bridge.php2.056.88
Roles mapping /wp-admin/admin.php?page=mushraider-bridge/mushraider-bridge-roles.php2.054.37

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-comments
mushraider_css
can_compress_scripts
db_upgraded
widget_mushraider_bridge_events_widget
widget_theysaidso_widget
widget_recent-posts
mushraider_api_key
mushraider_api_url
theysaidso_admin_options
...

Browser metrics Passed 4 tests

MushRaider Bridge: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.25 ▼1.341.94 ▲0.3041.49 ▼5.83
Dashboard /wp-admin2,232 ▲475.86 ▼0.1097.58 ▼3.4067.87 ▲25.76
Posts /wp-admin/edit.php2,121 ▲322.02 ▲0.0039.34 ▼0.4034.29 ▼1.03
Add New Post /wp-admin/post-new.php1,554 ▲2118.06 ▼5.10708.36 ▲40.5257.54 ▼5.64
Media Library /wp-admin/upload.php1,414 ▲264.17 ▼0.02115.63 ▲17.2351.24 ▲3.62
Bridge settings /wp-admin/admin.php?page=mushraider-bridge/mushraider-bridge.php8822.0223.5328.48
Roles mapping /wp-admin/admin.php?page=mushraider-bridge/mushraider-bridge-roles.php1,0222.0123.8222.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/mushraider-bridge/mushraider-bridge.php+38
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 11 options
    • mushraider_css
    • can_compress_scripts
    • mushraider_roles_mapping
    • mushraider_api_key
    • mushraider_api_url
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_mushraider_bridge_events_widget
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mushraider-bridge/mushraider-bridge-roles.php
    • > Deprecated in wp-content/plugins/mushraider-bridge/mushraider-bridge.php+38
    Function create_function() is deprecated

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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mushraider-bridge/src/widget_events.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mushraider-bridge/src/widget_events.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt is a good inspiration

mushraider-bridge/mushraider-bridge.php Passed 13 tests

Analyzing the main PHP file in "MushRaider Bridge" version 1.0.6
68 characters long description:
MushRaider Bridge allows you to integrate MushRaider into wordpress.

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
Good job! No executable or dangerous file extensions detected525 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP45866413
PO File13843112

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity6.80
▷ Minimum method complexity1.00
▷ Maximum method complexity12.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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icone.png1.53KB1.09KB▼ 28.71%