10% display-vbulletin-node

Code Review | Display vBulletin Node

WordPress plugin Display vBulletin Node scored10%from 54 tests.

About plugin

  • Plugin page: display-vbulletin...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: Jan 28, 2014
  • Latest release: Jan 28, 2014
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: anybuy.vn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /861 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-includes/class-wpdb.php+2035
    mysqli_real_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO)

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.86ms] Passed 4 tests

Analyzing server-side resources used by Display vBulletin Node
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.05 ▲0.77
Dashboard /wp-admin3.31 ▼0.0453.70 ▼5.44
Posts /wp-admin/edit.php3.36 ▲0.0044.95 ▼5.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.12 ▼13.12
Media Library /wp-admin/upload.php3.23 ▲0.0033.73 ▲3.95

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Display vBulletin Node
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.58 ▼0.711.84 ▲0.0343.95 ▲2.77
Dashboard /wp-admin2,206 ▲184.88 ▼0.02106.48 ▼4.8242.64 ▲2.64
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0234.49 ▼3.9232.93 ▼0.70
Add New Post /wp-admin/post-new.php1,533 ▲723.27 ▼0.04594.58 ▼60.8954.01 ▼4.47
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.01101.85 ▲2.6941.96 ▼2.25

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/display-vbulletin-node/wpdvbn_admin.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-vbulletin-node/wpdvbn_main.php:10
    • > PHP Notice
      Undefined index: wpdvbn_hidden in wp-content/plugins/display-vbulletin-node/wpdvbn_admin.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Tested up to: Version not formatted correctly
You can take inspiration from this readme.txt

display-vbulletin-node/wpdvbn_main.php 85% from 13 tests

Analyzing the main PHP file in "Display vBulletin Node" version 1.0.0
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("display-vbulletin-node.php" instead of "wpdvbn_main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin127 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2415127

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin