84% bbpress-mark-as-read

Code Review | bbPress - Mark as Read

WordPress plugin bbPress - Mark as Read scored 84% from 54 tests.

About plugin

  • Plugin page: bbpress-mark-as-read
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2012
  • Latest release: Dec 17, 2014
  • Number of updates: 17
  • Update frequency: every 48.6 days
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 8,290 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.35ms] Passed 4 tests

A check of server-side resources used by bbPress - Mark as Read
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.06 ▼6.94
Dashboard /wp-admin3.36 ▲0.0645.10 ▼5.01
Posts /wp-admin/edit.php3.41 ▲0.0645.96 ▼2.53
Add New Post /wp-admin/post-new.php5.94 ▲0.0696.05 ▲4.38
Media Library /wp-admin/upload.php3.29 ▲0.0633.01 ▲1.09

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

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

Browser metrics Passed 4 tests

Checking browser requirements for bbPress - Mark as Read
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.58 ▼0.811.70 ▼0.4940.49 ▼6.05
Dashboard /wp-admin2,209 ▲244.85 ▼1.00106.21 ▼2.1142.68 ▼0.65
Posts /wp-admin/edit.php2,089 ▼02.06 ▼0.0040.24 ▲3.1134.12 ▼0.93
Add New Post /wp-admin/post-new.php1,528 ▼818.31 ▼4.90582.19 ▼94.8251.52 ▼6.50
Media Library /wp-admin/upload.php1,391 ▼04.17 ▼0.0893.88 ▼7.8842.17 ▼4.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/bbpress-mark-as-read/trunk/bbp-mark-as-read.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/bbpress-mark-as-read/bbp-mark-as-read.php:24

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot 1), #2 (Screenshot 2)
You can take inspiration from this readme.txt

bbpress-mark-as-read/bbp-mark-as-read.php 92% from 13 tests

The entry point to "bbPress - Mark as Read" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bbpress-mark-as-read.php" instead of "bbp-mark-as-read.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin402 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP110953238
PO File53355146
JavaScript10018

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity5.07
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
6 PNG files occupy 0.43MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
trunk/screenshots-1.png64.75KB25.54KB▼ 60.56%
trunk/screenshot-2.png89.78KB33.85KB▼ 62.30%
screenshot-2.png89.78KB33.85KB▼ 62.30%
screenshot-1.png64.75KB25.54KB▼ 60.56%
screenshots-1.png64.75KB25.54KB▼ 60.56%