84% default-to-bbpress-dashboard-style

Code Review | Default to bbPress Dashboard Style

WordPress plugin Default to bbPress Dashboard Style scored84%from 54 tests.

About plugin

  • Plugin page: default-to-bbpres...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 20, 2012
  • Latest release: Oct 20, 2012
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: TheWebAtom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,569 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by Default to bbPress Dashboard Style
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.48 ▲0.71
Dashboard /wp-admin3.31 ▼0.0348.73 ▼21.68
Posts /wp-admin/edit.php3.36 ▲0.0148.33 ▼1.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.49 ▼19.91
Media Library /wp-admin/upload.php3.23 ▲0.0033.88 ▼4.72

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Default to bbPress Dashboard Style
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4814.23 ▼0.121.92 ▲0.0444.28 ▲0.40
Dashboard /wp-admin2,200 ▲265.58 ▲0.0188.09 ▼3.3342.63 ▲0.65
Posts /wp-admin/edit.php2,105 ▲51.99 ▼0.0435.02 ▼1.8339.58 ▲1.45
Add New Post /wp-admin/post-new.php1,531 ▲523.54 ▲0.22676.66 ▼46.3151.46 ▼5.04
Media Library /wp-admin/upload.php1,408 ▲84.21 ▼0.0097.01 ▼11.4845.51 ▼1.22

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/default-to-bbpress-dashboard-style/bbpress-dash-default.php:19

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === default-to-bbpress-dashboard-style === )
The official readme.txt might help

default-to-bbpress-dashboard-style/bbpress-dash-default.php 92% from 13 tests

"Default to bbPress Dashboard Style" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("default-to-bbpress-dashboard-style.php" instead of "bbpress-dash-default.php")

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 detected14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161214

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin