90% bbp-post-first

Code Review | bbPress Post First

WordPress plugin bbPress Post First scored90%from 54 tests.

About plugin

  • Plugin page: bbp-post-first
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jul 10, 2017
  • Latest release: Jan 15, 2018
  • Number of updates: 8
  • Update frequency: every 23.9 days
  • Top authors: casiepa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,033 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▲1.82ms] Passed 4 tests

This is a short check of server-side resources used by bbPress Post First
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0247.62 ▲5.37
Dashboard /wp-admin3.31 ▲0.0152.74 ▲4.11
Posts /wp-admin/edit.php3.37 ▲0.0148.99 ▼2.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.91 ▲1.16
Media Library /wp-admin/upload.php3.24 ▲0.0139.65 ▲4.01

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by bbPress Post First
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.10 ▼0.552.00 ▼0.0841.04 ▼0.88
Dashboard /wp-admin2,198 ▲185.64 ▼0.0292.10 ▼0.3842.88 ▲0.97
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0340.86 ▲2.5536.67 ▲1.57
Add New Post /wp-admin/post-new.php1,536 ▼123.17 ▲4.89677.82 ▲61.8854.70 ▼9.95
Media Library /wp-admin/upload.php1,400 ▲34.26 ▲0.07110.67 ▲7.2546.89 ▲3.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: post first, bbpress

bbp-post-first/bbp-post-first.php Passed 13 tests

"bbPress Post First" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
93 characters long description:
A member should first post a bbPress topic before (s)he can see the other posts in that forum

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
No dangerous file extensions were detected197 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12035197

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin