84% bbpress-notices

Code Review | bbPress - Notices

WordPress plugin bbPress - Notices scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-notices
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1
  • WordPress version: 6.3.1
  • First release: Jun 12, 2013
  • Latest release: Dec 17, 2014
  • Number of updates: 6
  • Update frequency: every 92.2 days
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

60+ active /7,712 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
Installer ran successfully

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

This is a short check of server-side resources used by bbPress - Notices
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.63 ▲3.61
Dashboard /wp-admin3.35 ▲0.0046.77 ▼15.35
Posts /wp-admin/edit.php3.40 ▲0.0446.32 ▲1.24
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.67 ▼5.09
Media Library /wp-admin/upload.php3.27 ▲0.0439.81 ▲6.52

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

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

Browser metrics Passed 4 tests

Checking browser requirements for bbPress - Notices
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.73 ▼1.024.45 ▲2.7441.17 ▼0.07
Dashboard /wp-admin2,209 ▲215.85 ▼0.05106.80 ▲1.1543.18 ▼3.14
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0439.30 ▲2.0437.07 ▲1.80
Add New Post /wp-admin/post-new.php1,519 ▼122.94 ▼0.17615.83 ▼38.0348.79 ▼3.53
Media Library /wp-admin/upload.php1,388 ▼04.25 ▼0.0193.58 ▼6.8342.89 ▼2.47

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 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 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-notices/bbpress-notices.php:306

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #3 (Screenshot 3) image missing
Please take inspiration from this readme.txt

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

"bbPress - Notices" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages/")

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
No dangerous file extensions were detected135 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP152124130
Markdown1205

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods763.64%
▷ Protected methods00.00%
▷ Private methods436.36%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png39.90KB11.95KB▼ 70.05%
assets/screenshot-1.png101.71KB33.46KB▼ 67.11%