90% bbpress-digest

Code Review | bbPress Digest

WordPress plugin bbPress Digest scored90%from 54 tests.

About plugin

  • Plugin page: bbpress-digest
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8
  • WordPress version: 6.3.1
  • First release: Feb 29, 2012
  • Latest release: Dec 15, 2013
  • Number of updates: 44
  • Update frequency: every 15.1 days
  • Top authors: dimadin (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

90+ active /5,853 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.38ms] Passed 4 tests

An overview of server-side resources used by bbPress Digest
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.54 ▲2.20
Dashboard /wp-admin3.35 ▲0.0146.15 ▼11.69
Posts /wp-admin/edit.php3.40 ▲0.0548.04 ▼4.70
Add New Post /wp-admin/post-new.php5.93 ▲0.0581.31 ▼17.82
Media Library /wp-admin/upload.php3.27 ▲0.0434.61 ▲0.70

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress Digest
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.59 ▲0.241.70 ▲0.2243.56 ▲3.54
Dashboard /wp-admin2,189 ▲95.49 ▼0.1685.44 ▼0.3537.34 ▼3.56
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0437.30 ▼2.4239.72 ▲1.66
Add New Post /wp-admin/post-new.php1,526 ▼1123.58 ▲5.08683.37 ▲35.7051.37 ▼20.91
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0099.50 ▲1.0745.70 ▼0.34

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
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 shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: notification, digest, bbpress, notifications

bbpress-digest/bbpress-digest.php 92% from 13 tests

The principal PHP file in "bbPress Digest" v. 2.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,158 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10242835847
PO File295101311

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity14.00
▷ Minimum class complexity6.00
▷ Maximum class complexity22.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods00.00%
▷ Private methods233.33%
Functions29
▷ Named functions29100.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
PNG images were not found in this plugin