84% bbcode-widget-titles

Code Review | BBCode Widget Titles

WordPress plugin BBCode Widget Titles scored 84% from 54 tests.

About plugin

  • Plugin page: bbcode-widget-titles
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 6, 2012
  • Latest release: Oct 6, 2012
  • Number of updates: 12
  • Update frequency: every 0.6 days
  • Top authors: christopher.su (66.67%)Christopher Su (41.67%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,360 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.66ms] Passed 4 tests

A check of server-side resources used by BBCode Widget Titles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.24 ▼3.28
Dashboard /wp-admin3.31 ▲0.0047.83 ▲5.34
Posts /wp-admin/edit.php3.36 ▲0.0043.36 ▼3.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.52 ▼13.21
Media Library /wp-admin/upload.php3.23 ▲0.0036.45 ▲0.98

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for BBCode Widget Titles
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.451.71 ▲0.0340.69 ▼14.44
Dashboard /wp-admin2,206 ▲184.87 ▼0.17108.23 ▲5.9843.32 ▲3.20
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0236.20 ▲3.1532.97 ▼1.10
Add New Post /wp-admin/post-new.php1,519 ▼123.26 ▼0.15662.87 ▼21.4665.54 ▲8.46
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0796.09 ▼6.1441.91 ▼3.50

Uninstaller [IO: ▲0.00MB] [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 does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • 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)
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bbcode-widget-titles/bbcode-widget-titles.php:59

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare 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 ( === bbcode-widget-titles === )
You can take inspiration from this readme.txt

bbcode-widget-titles/bbcode-widget-titles.php Passed 13 tests

"BBCode Widget Titles" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
105 characters long description:
Allows for the use of BBCode in styling widget titles. Supports [b], [i], [u], [s], [url=], and [color=].

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142126

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin