84% eighties-bbpress

Code Review | Eighties bbPress

WordPress plugin Eighties bbPress scored 84% from 54 tests.

About plugin

  • Plugin page: eighties-bbpress
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 2, 2014
  • Latest release: Jul 2, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Kopepasah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,002 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Eighties bbPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.03 ▼6.62
Dashboard /wp-admin3.31 ▲0.0051.75 ▲3.45
Posts /wp-admin/edit.php3.36 ▲0.0048.53 ▼0.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.79 ▲5.48
Media Library /wp-admin/upload.php3.23 ▲0.0034.89 ▲1.33

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Eighties bbPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.251.78 ▼0.4038.00 ▼3.07
Dashboard /wp-admin2,206 ▲245.88 ▲1.02109.14 ▼7.8242.07 ▲3.37
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0040.81 ▼1.0435.41 ▼2.28
Add New Post /wp-admin/post-new.php1,514 ▼1917.44 ▼3.80656.00 ▼2.7854.93 ▲0.76
Media Library /wp-admin/upload.php1,382 ▼94.20 ▲0.0898.48 ▼7.5041.95 ▼3.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 54× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/eighties-bbpress/template/functions.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/eighties-bbpress/template/bbpress/form-topic-tag.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/eighties-bbpress/template/bbpress/feedback-no-forums.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/eighties-bbpress/template/bbpress/user-subscriptions.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/eighties-bbpress/template/bbpress/form-user-roles.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/eighties-bbpress/template/bbpress/feedback-no-topics.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/eighties-bbpress/template/bbpress/form-topic-split.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbp_topic_id() in wp-content/plugins/eighties-bbpress/template/bbpress/loop-search-topic.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbp_wp_login_action() in wp-content/plugins/eighties-bbpress/template/bbpress/form-user-login.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbp_set_query_name() in wp-content/plugins/eighties-bbpress/template/bbpress/content-search.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: eighties, bbpress

eighties-bbpress/eighties-bbpress.php Passed 13 tests

"Eighties bbPress" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
98 characters long description:
This add-on pairs the power and functionality of bbPress with the modern, sleek design of Eightes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,888 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
PHP569324101,612
CSS434761,258
Markdown19010
JavaScript1218

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin