84% bbpress-pencil-unread

Code Review | bbPress Pencil Unread

WordPress plugin bbPress Pencil Unread scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-pencil-un...
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 30, 2013
  • Latest release: Jan 14, 2020
  • Number of updates: 53
  • Update frequency: every 47.9 days
  • Top authors: grosbouff (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

300+ active /14,999 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼4.44ms] Passed 4 tests

Server-side resources used by bbPress Pencil Unread
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1835.97 ▼7.24
Dashboard /wp-admin3.49 ▲0.1444.34 ▼10.97
Posts /wp-admin/edit.php3.60 ▲0.2546.55 ▲1.92
Add New Post /wp-admin/post-new.php6.07 ▲0.1889.84 ▲4.50
Media Library /wp-admin/upload.php3.41 ▲0.1835.35 ▼1.47
bbPress Pencil Unread /wp-admin/options-general.php?page=bbppu3.3832.25

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

bbPress Pencil Unread: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.21 ▼1.191.84 ▲0.2638.89 ▼1.14
Dashboard /wp-admin2,213 ▲254.85 ▼0.0798.99 ▼0.5338.09 ▼2.04
Posts /wp-admin/edit.php2,096 ▲72.17 ▲0.2039.75 ▼1.9034.27 ▼2.37
Add New Post /wp-admin/post-new.php1,539 ▲2523.45 ▲5.85657.70 ▼4.6148.17 ▼7.94
Media Library /wp-admin/upload.php1,386 ▲14.18 ▼0.0298.24 ▼8.8141.50 ▼5.97
bbPress Pencil Unread /wp-admin/options-general.php?page=bbppu8502.0223.0530.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-pencil-unread/bbppu-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bbpress-pencil-unread/bbpress-pencil-unread.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-pencil-unread/bbppu-bookmarks.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-pencil-unread/bbppu-forum-marks.php:8

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Requires at least: Invalid version format
You can look at the official readme.txt

bbpress-pencil-unread/bbpress-pencil-unread.php 92% from 13 tests

The main PHP script in "bbPress Pencil Unread" version 1.3.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,143 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP7418224845
PO File24556146
Sass111057
CSS101246
JavaScript1221541
Ruby1108

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity34.25
▷ Minimum class complexity6.00
▷ Maximum class complexity83.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods61
▷ Static methods46.56%
▷ Public methods6098.36%
▷ Protected methods00.00%
▷ Private methods11.64%
Functions6
▷ Named functions6100.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
There are no PNG files in this plugin