90% bbp-api

Code Review | bbPress API

WordPress plugin bbPress API scored90%from 54 tests.

About plugin

  • Plugin page: bbp-api
  • Plugin version: 1.0.14
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 6.3.1
  • First release: Jan 18, 2017
  • Latest release: Jul 20, 2017
  • Number of updates: 67
  • Update frequency: every 2.7 days
  • Top authors: casiepa (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /2,807 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.69MB] [CPU: ▼16.58ms] Passed 4 tests

An overview of server-side resources used by bbPress API
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.65 ▼0.73
Dashboard /wp-admin3.31 ▲0.0148.49 ▼2.82
Posts /wp-admin/edit.php3.36 ▲0.0043.57 ▼0.06
Add New Post /wp-admin/post-new.php3.13 ▼2.7634.85 ▼62.71
Media Library /wp-admin/upload.php3.23 ▲0.0034.55 ▲3.77

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for bbPress API
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.341.78 ▲0.1743.76 ▼0.01
Dashboard /wp-admin2,206 ▲175.84 ▼0.06111.69 ▼4.8343.40 ▼0.41
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0432.77 ▼4.2932.21 ▲0.00
Add New Post /wp-admin/post-new.php45 ▼1,4690.44 ▼16.980.06 ▼675.859.87 ▼42.19
Media Library /wp-admin/upload.php1,388 ▼34.15 ▼0.0696.50 ▲1.8458.70 ▲18.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: rest, bbpress, rest api, api

bbp-api/bbp-api.php Passed 13 tests

This is the main PHP file of "bbPress API" version 1.0.14, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
19 characters long description:
A bbPress REST API.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin520 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1173.33%
▷ Anonymous functions426.67%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin