78% bbcode-deluxe

Code Review | BBCode Deluxe

WordPress plugin BBCode Deluxe scored78%from 54 tests.

About plugin

  • Plugin page: bbcode-deluxe
  • Plugin version: 2020.08.01.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.5
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Aug 1, 2020
  • Number of updates: 17
  • Update frequency: every 105.9 days
  • Top authors: DevynCJohnson (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /7,416 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.27MB] [CPU: ▼1.93ms] Passed 4 tests

Analyzing server-side resources used by BBCode Deluxe
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2942.11 ▲1.45
Dashboard /wp-admin3.57 ▲0.2752.58 ▲1.75
Posts /wp-admin/edit.php3.68 ▲0.3352.48 ▼0.83
Add New Post /wp-admin/post-new.php6.15 ▲0.2690.22 ▼10.09
Media Library /wp-admin/upload.php3.49 ▲0.2640.59 ▲4.75
BBCode Deluxe /wp-admin/options-general.php?page=bbcode-deluxe3.4737.16

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

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

Browser metrics Passed 4 tests

A check of browser resources used by BBCode Deluxe
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.081.74 ▼0.0642.95 ▼1.07
Dashboard /wp-admin2,213 ▲255.85 ▼0.05114.84 ▼1.4941.54 ▲3.02
Posts /wp-admin/edit.php2,090 ▼22.03 ▲0.0336.62 ▼4.4032.20 ▼5.34
Add New Post /wp-admin/post-new.php1,527 ▼622.97 ▼0.35617.27 ▼82.7259.21 ▲9.63
Media Library /wp-admin/upload.php1,386 ▲44.24 ▲0.07100.96 ▼3.3547.38 ▼2.75
BBCode Deluxe /wp-admin/options-general.php?page=bbcode-deluxe1,1642.1823.2133.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/bbcode-deluxe/bbcode-deluxe.php
    • > /wp-content/plugins/bbcode-deluxe/options-form-template.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/bbcode-deluxe/options-form-template.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbcode-deluxe/bbcode-admin.php:8

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 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: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt is a good inspiration

bbcode-deluxe/bbcode-deluxe.php Passed 13 tests

The main PHP script in "BBCode Deluxe" version 2020.08.01.2 is automatically included on every request by WordPress
48 characters long description:
Adds support for BBCode to Wordpress and BBPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin810 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP48638810

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity107.00
▷ Minimum class complexity107.00
▷ Maximum class complexity107.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods51
▷ Static methods00.00%
▷ Public methods51100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
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
PNG images were not found in this plugin