10% osbn

Code Review | OSBN

WordPress plugin OSBN scored 10% from 54 tests.

About plugin

  • Plugin page: osbn
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 6, 2013
  • Latest release: Mar 27, 2016
  • Number of updates: 18
  • Update frequency: every 205.5 days
  • Top authors: simpson-fan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,588 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
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/osbn/osbn.php+314
    Function create_function() is deprecated

Server metrics [RAM: ▼1.84MB] [CPU: ▼50.70ms] Passed 4 tests

A check of server-side resources used by OSBN
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.315.39 ▼35.14
Dashboard /wp-admin2.17 ▼1.135.37 ▼43.27
Posts /wp-admin/edit.php2.17 ▼1.198.50 ▼38.46
Add New Post /wp-admin/post-new.php2.17 ▼3.725.50 ▼85.91
Media Library /wp-admin/upload.php2.17 ▼1.066.69 ▼29.10
OSBN /wp-admin/options-general.php?page=osbn-option-page2.175.92

Server storage [IO: ▲0.05MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options
osbn_data
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_osbn_widget
osbn_options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by OSBN
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.36 ▼1.021.89 ▲0.3143.91 ▲1.43
Dashboard /wp-admin2,210 ▲224.82 ▼1.08107.53 ▲3.7240.01 ▼1.02
Posts /wp-admin/edit.php2,096 ▲102.06 ▲0.0639.67 ▲5.6534.47 ▼1.99
Add New Post /wp-admin/post-new.php1,537 ▲1623.15 ▼0.05649.52 ▼11.5654.62 ▲1.08
Media Library /wp-admin/upload.php1,395 ▲44.24 ▲0.0997.09 ▲3.0238.71 ▼3.78
OSBN /wp-admin/options-general.php?page=osbn-option-page1,4153.3351.8148.14

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
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/osbn/osbn.php+314
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=osbn-option-page
    • > Deprecated in wp-content/plugins/osbn/osbn.php+314
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=osbn-option-page
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in Osbn_Widget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=osbn-option-page
    • > Notice in wp-content/plugins/osbn/osbn.php+87
    Undefined index: settings-updated
    • > GET request to /wp-admin/options-general.php?page=osbn-option-page
    • > User deprecated in wp-includes/functions.php+5737
    Function wp_editor() was called with an argument that is deprecated since version 3.9.0! TinyMCE editor IDs cannot have brackets.

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/osbn/osbn.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
There were not plugin tags detected

osbn/osbn.php Passed 13 tests

The main PHP script in "OSBN" version 1.1.5 is automatically included on every request by WordPress
100 characters long description:
Dies ist das offizielle WordPress-Plugin für Mitglieder des Open-Source-Blog-Netzwerkes (OSBN).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected346 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2102102346

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.80
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/osbn-button-rot.png3.77KB2.67KB▼ 29.23%
img/osbn-button-gruen.png4.44KB2.72KB▼ 38.84%
img/osbn-button-gelb.png4.25KB2.74KB▼ 35.56%
img/osbn-button-violett.png4.42KB2.73KB▼ 38.34%
img/osbn-button-blau.png4.31KB2.67KB▼ 38.22%